Add knowledge
add_knowledgeTrain the AI agent by adding a knowledge source. type='url' crawls a website (up to 50 pages); type='qa' stores a single question/answer pair. Ingestion is asynchronous, the source starts as PENDING; poll list_knowledge for READY status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Website root URL to crawl. Required when type='url'. | |
| type | Yes | 'url' to crawl a website, or 'qa' to add a question/answer pair. | |
| answer | No | The answer. Required when type='qa'. | |
| question | No | The question. Required when type='qa'. |