mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
1.6 KiB
1.6 KiB
To Start Chatwoot Extension:
-
Prepare and Start DocsGPT:
- Launch DocsGPT using the instructions in our wiki.
- Make sure to load your documentation.
-
Get Access Token from Chatwoot:
- Navigate to Chatwoot.
- Go to your profile (bottom left), click on profile settings.
- Scroll to the bottom and copy the Access Token.
-
Set Up Chatwoot Extension:
-
Navigate to
/extensions/chatwoot. -
Copy
.env_sampleand create a.envfile. -
Fill in the values in the
.envfile:docsgpt_url=<docsgpt_api_url> chatwoot_url=<chatwoot_url> docsgpt_key=<openai_api_key or other llm key> chatwoot_token=<from part 2>
-
-
Start the Extension:
- Use the command
flask runto start the extension.
- Use the command
-
Optional: Extra Validation
-
In
app.py, uncomment lines 12-13 and 71-75. -
Add the following lines to your
.envfile:account_id=(optional) 1 assignee_id=(optional) 1These Chatwoot values help ensure you respond to the correct widget and handle questions assigned to a specific user.
-
Stopping Bot Responses for Specific User or Session:
- If you want the bot to stop responding to questions for a specific user or session, add a label
human-requestedin your conversation.
Additional Notes:
- For further details on training on other documentation, refer to our wiki.
Feel free to test it out, and let me know if there's anything more you'd like to add or adjust!