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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>"
},
"name": "ragchat_widget"
}
}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') |