Train a chatbot on a web page
add_knowledge_urlAdd one web page to a chatbot's knowledge. The page is fetched, extracted, and embedded in the background — no need to call anything else afterwards.
Use this for a page the original crawl missed, or a page on a different site (a docs host, a help centre, a pricing page). Demo chatbots accept up to 5 pages in total.
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": {
"chatbot_id": "<chatbot_id>",
"url": "<url>"
},
"name": "add_knowledge_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public page address, such as example.com/faq or https://example.com/faq. Use a full domain, not a search phrase. | |
| chatbot_id | Yes | The token or chatbot_id returned by create_chatbot. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| added | Yes | ||
| message | No | ||
| sources | Yes | ||
| training | No | ||
| source_id | No | ||
| chatbot_id | Yes | ||
| source_type | No |