ragchat_widget
Generate an embeddable chat widget script that adds a floating chat bubble to any webpage, connecting to your RAG-powered chat server for AI-driven answers.
Instructions
Generate an embeddable chat widget. Returns a tag that creates a floating chat bubble on any webpage. Connects to the chat server started with ragchat_serve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name (used in widget title) | |
| chatUrl | No | Chat server URL (default: http://localhost:3456). Change this when deploying to production. | |
| title | No | Widget header title (default: 'Chat with us') | |
| color | No | Accent color hex (default: '#22c55e') |