Create knowledge source
asks_create_sourceAdds knowledge the AI agent learns from, and starts training immediately — there is no separate train step. text: a named passage. qna: one answer for up to 50 phrasings of a question. website: crawls an https site (optionally only include_urls, skipping exclude_paths) in the background and returns syncing. The source comes back training/syncing; call asks_get_source until it is trained (or failed) before saying the agent knows it. File uploads are dashboard-only. Counts toward the plan's knowledge limits.
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": {
"type": "<type>"
},
"name": "asks_create_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | website: https URL to crawl. | |
| name | No | Source name (text: required; qna: optional, defaults to the first question; website: optional). | |
| type | Yes | ||
| answer | No | qna: the answer. | |
| content | No | text: the passage (plain text, newlines kept). | |
| max_pages | No | website: page cap (plan maximum applies). | |
| questions | No | qna: the question and its other phrasings. | |
| include_urls | No | website: crawl ONLY these pages. | |
| exclude_paths | No | website: skip these paths (e.g. "/blog") or ^regex. |