Upload documents to your knowledge base for personas to reference during conversations
tags field in the request body.
Once created, you can add the document to your personas (see Create Persona) and your conversations (see Create Conversation).
crawl parameter. This allows the system to follow links from your starting URL and process multiple pages into a single document.
crawl object, the system will:
| Parameter | Type | Description |
|---|---|---|
depth | integer (1-10) | How many levels deep to follow links from the starting URL. A depth of 1 means only pages directly linked from the starting URL. |
max_pages | integer (1-100) | Maximum number of pages to crawl. Processing stops once this limit is reached. |
The URL of the document or website to be processed
"https://docs.example.com/"
Optional name for the document. If not provided, a default name will be generated.
"Example Docs"
Optional URL that will receive status updates about the document processing
"https://your-server.com/webhook"
Optional array of tags to categorize the document
["docs", "website"]Optional configuration for website crawling. When provided with a website URL, the system will follow links from the starting URL and process multiple pages. Without this parameter, only the single page at the URL is scraped.
Document created successfully
Unique identifier for the created document
"d8-5c71baca86fc"
Name of the document
"Example Docs"
URL of the document or website
"https://docs.example.com/"
Current status of the document processing
"started"
Progress indicator for document processing
null
ISO 8601 timestamp of when the document was created
"2024-01-01T12:00:00Z"
ISO 8601 timestamp of when the document was last updated
"2024-01-01T12:00:00Z"
URL that will receive status updates
"https://your-server.com/webhook"
Array of document tags
["docs", "website"]The crawl configuration used for this document (only present for crawled websites)
List of URLs that were crawled (only present for crawled websites after processing completes)
[
"https://docs.example.com/",
"https://docs.example.com/getting-started",
"https://docs.example.com/api"
]ISO 8601 timestamp of when the document was last crawled
"2024-01-01T12:00:00Z"
Number of times the document has been crawled
1