You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DocsGPT/docs/pages/Extensions/Chatwoot-extension.md

30 lines
1.1 KiB
Markdown

1 year ago
### To start chatwoot extension:
1. Prepare and start the DocsGPT itself (load your documentation too). Follow our [wiki](https://github.com/arc53/DocsGPT/wiki) to start it and to [ingest](https://github.com/arc53/DocsGPT/wiki/How-to-train-on-other-documentation) data.
2. Go to chatwoot, **Navigate** to your profile (bottom left), click on profile settings, scroll to the bottom and copy **Access Token**.
3. Navigate to `/extensions/chatwoot`. Copy `.env_sample` and create `.env` file.
4. Fill in the values.
1 year ago
```
docsgpt_url=<docsgpt_api_url>
chatwoot_url=<chatwoot_url>
docsgpt_key=<openai_api_key or other llm key>
chatwoot_token=<from part 2>
```
5. Start with `flask run` command.
1 year ago
If you want for bot to stop responding to questions for a specific user or session, just add a label `human-requested` in your conversation.
1 year ago
### Optional (extra validation)
1. In `app.py` uncomment lines 12-13 and 71-75
1 year ago
2. in your `.env` file add:
1 year ago
```
account_id=(optional) 1
assignee_id=(optional) 1
```
1 year ago
Those are chatwoot values and will allow you to check if you are responding to correct widget and responding to questions assigned to specific user.