Add a question and answer pair
add_qaAdd an exact question-and-answer pair to a chatbot. Use this when the answer must be worded a particular way — pricing, refunds, guarantees, anything where paraphrasing from a page would be risky.
question_variations lets you list other phrasings of the same question so retrieval catches them all. Demo chatbots accept up to 50000 characters of training content 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>",
"question": "<question>",
"answer": "<answer>"
},
"name": "add_qa"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional label for this pair. | |
| answer | Yes | The exact answer to give. | |
| question | Yes | The question a visitor would ask. | |
| chatbot_id | Yes | The token or chatbot_id returned by create_chatbot. | |
| question_variations | No | Other ways someone might ask the same question. |
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 |