AI Agents
Hire an AI Agent from the Job Market
Hires an AI Agent in a Project using a ready-made template (templateId) with predefined skills for a specific job. You can optionally override an existing AI Agent using overrideAiAgentReferenceId to adapt it to your needs. The method returns a task tracking the status of the hiring process.
post/v2.0/aiagents/hire
Request
- Base URLhttps://api-trial.cognigy.ai/testing
- Auth
- API key in header X-API-Key
- or API key in query parameter api_key
- or API key in header x-cxone-authorization
- or OAuth 2Authorization code/auth/oauth2/authorizePasswordToken URL/auth/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Accept'application/json' | 'application/hal+json' | 'application/xml' | 'text/xml' | 'text/csv'
The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.
Request body
Example request
{
"templateId": "airline-support-agent-en",
"overrideAiAgentReferenceId": "5f7b1b1b-7b1b-4b1b-9b1b-7b1b1b1b1b1b"
}Response
Successfully created a Task to hire the AI Agent.
Example response
{
"status": "queued",
"type": "trainIntents",
"lastChangedAt": 1594243850,
"lastCreatedAt": 1594243850,
"totalStep": 100
}Changes
No recorded changes to this operation across all 1 revision of this API.