https://github.com/uglyrobot/docsbot-chat-widget
Embeddable chat widget to integrate with DocsBot.ai
https://github.com/uglyrobot/docsbot-chat-widget
Last synced: 4 months ago
JSON representation
Embeddable chat widget to integrate with DocsBot.ai
- Host: GitHub
- URL: https://github.com/uglyrobot/docsbot-chat-widget
- Owner: uglyrobot
- License: mit
- Created: 2023-03-11T17:41:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T03:56:42.000Z (5 months ago)
- Last Synced: 2024-11-21T04:26:01.466Z (5 months ago)
- Language: JavaScript
- Size: 428 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - uglyrobot/docsbot-chat-widget - Embeddable chat widget to integrate with DocsBot.ai (JavaScript)
README
# DocsBot AI Chat Widget
Embeddable chat widget to integrate with DocsBot.ai
Full documentation can be found at https://docsbot.ai/docs/embeddable-chat-widget
## Development
- `npm install` to install dependencies.
- `npm run start` to spin up a local server with hot reloading that can be accessed at http://localhost:3005/. The html for this page is found in `public/index.html`, and is used to test the embeddable chat widget on a local server. The embed code is using a test bot from the DocsBot.ai staff account.## Production Deployment
A Github action is configured that on pushes to main builds the `build/chat.js` file, uploades it to BunnyCDN storage, and purges the CDN zone that is used by the embeddable chat widget.
## CDN
The embeddable chat widget is hosted on our CDN at https://widget.docsbot.ai/chat.js. The CDN caches this file for 1 day, and instructs browsers to cache it for 1hr as well. This means that if you update the embeddable chat widget, it may take up to 1hr for the changes to be reflected on customer sites after we automatically purge the CDN cache.