Create an agent.
Changed onCreates 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.
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Example request
{
"project_name": "Support Assistant",
"sitemap_path": "https://example.com/sitemap.xml",
"is_anonymized": 0
}Response
Agent has been created
Example response
{
"status": "success",
"data": {
"id": 1,
"project_name": "My Agent",
"sitemap_path": "https://www.example.com/sitemap.xml",
"is_chat_active": true,
"user_id": 1,
"team_id": 1,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"deleted_at": "2021-01-01 00:00:00",
"type": "SITEMAP",
"is_shared": true,
"shareable_slug": "1234567890abcdef1234567890abcdef",
"are_licenses_allowed": true
}
}Changes
- breaking
request property
was restricted to a list of enum values - breaking
the
request property type changed frombooleantointeger - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new
0.00enum value to the request property - info
added the new
1.00enum value to the request property - info
added the new
2.00enum value to the request property - info
added the non-success response with the status
- info
added the optional property
/to the response with the status
- breaking
- warning
added the new
Agent name can't be emptyenum value to the/response property for the response status - warning
added the new
You have reached your agent limitenum value to the/response property for the response status - info
api tag
Agentsadded - info
api tag
Projectsremoved - info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
removed the
Project name can't be emptyenum value from the/response property for the response status - info
removed the
You have reached your monthly project limitenum value from the/response property for the response status
- warning