Teach the bot
add_knowledgeAdd knowledge to a bot: a web page/site address (type "url") or text such as an FAQ, price list, policies or the contents of a document (type "text"). The bot answers from this.
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": {
"bot_id": "<bot_id>",
"type": "<type>"
},
"name": "add_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| text | No | For text: the content (up to ~500,000 characters). | |
| type | Yes | ||
| title | No | For text: a short title, e.g. "FAQ". | |
| bot_id | Yes | The bot id, like b_AbC123xyz789 (from create_bot or list_my_bots). | |
| edit_key | No | The bot's edit key, like bsk_… (from create_bot). Not needed when the user is signed in and the bot is in their account. Keep it private. |