Create an agent.

Creates a new agent by importing content from a sitemap URL or uploading a file. The imported content becomes the agent's knowledge base, which it uses to answer questions. The agent will begin processing the content immediately after creation.

Notes: Processing time depends on the amount of content. Check the agent's status to know when it's ready.

Body Params

Create a new agent from a sitemap or a file

string

Agent name

string

The sitemap path

boolean

File data retension

integer
enum

OCR processing mode: 0 = Disabled, 1 = OCR enabled, 2 = AI Vision

Allowed:
boolean

Anonymized

boolean

Whether to enable vision processing for images in the file source.

boolean

Whether to compress images for vision processing.

file

The submitted file.

Responses

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json