Create a new agent.
Create a new agent by importing data either from a sitemap or an uploaded file. This endpoint enables you to initiate the creation of a new agent by supplying the necessary agent data that will be used as the context. You can choose to import the agent knowledge and content from a sitemap url or upload a specific file format that contains the context can be any text, audio or video format. The system will process the provided data and generate a new agent based on the imported or uploaded information. Here is an example to create an agent using a sitemap: API SDK.
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
Changed in 4 of the 9 revisions of this API.22230
- ●
added the new
Agent name can't be emptyenum value to the/response property for the response statusresponse-property-enum-value-added
- ●
added the new
You have reached your agent limitenum value to the/response property for the response statusresponse-property-enum-value-added
- ○
api tag
Agentsaddedapi-tag-added
- ○
api tag
Projectsremovedapi-tag-removed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
removed the
Project name can't be emptyenum value from the/response property for the response statusresponse-property-enum-value-removed
- ○
removed the
You have reached your monthly project limitenum value from the/response property for the response statusresponse-property-enum-value-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ●
- ▲
removed the media type
application/jsonfrom the request bodyrequest-body-media-type-removed
- ○
added the media type
multipart/form-datato the request bodyrequest-body-media-type-added
- ▲
- ▲
removed the media type
multipart/form-datafrom the request bodyrequest-body-media-type-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
added the new
Project name can't be emptyenum value to the/response property for the response statusresponse-property-enum-value-added
- ●
added the new
You have reached your monthly project limitenum value to the/response property for the response statusresponse-property-enum-value-added
- ○
api tag
Projectsaddedapi-tag-added
- ○
api tag
Agentsremovedapi-tag-removed
- ○
added the media type
application/jsonto the request bodyrequest-body-media-type-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
removed the
Agent name can't be emptyenum value from the/response property for the response statusresponse-property-enum-value-removed
- ○
removed the
You have reached your agent limitenum value from the/response property for the response statusresponse-property-enum-value-removed
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲