Skip to main content
ActionsVersion: v3

Attach Action to Agent

POST/conversation-ai/agents/{agentId}/actions

Creates and attach a new action for an AI agent. Actions define specific tasks or behaviors that the agent can perform, such as booking appointments, sending follow-ups, collecting information, or making an external API call via the customApi ("API Call") type. For customApi, put the config in details (details.apiConfig is required) and a per-agent limit (up to 5) applies.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:conversation-ai.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

agentIdstringrequired

The unique identifier of the AI agent

Example:ve9EPM428h8vShlRW1KT

Body

typestringrequired

Type of action to perform

Available optionstriggerWorkflowupdateContactFieldappointmentBookingstopBothumanHandOveradvancedFollowuptransferBotcustomApi
Example:triggerWorkflow
namestringrequired

Name of the action (3-50 characters)

Example:Trigger a Workflow
detailsobjectrequired

Action-specific details. The structure depends on the action type. For TRIGGER_WORKFLOW use triggerWorkflowDto, for UPDATE_CONTACT_FIELD use updateContactFieldDto, for APPOINTMENT_BOOKING use appointmentBookingDto, for STOP_BOT use stopBotDto, for HUMAN_HAND_OVER use humanHandOverDto, for ADVANCED_FOLLOWUP use advancedFollowupDto, for TRANSFER_BOT use transferBotDto, and for CUSTOM_API use CustomApiDetailsDTO (the API Call config).

Example
{
  "workflowIds": [
    "workflow123"
  ],
  "triggerCondition": "When user requests appointment"
}

Response

Successful response

dataobjectrequired

Created action details (classic action or customApi API Call action)

successbooleanrequired

Success status of the request

Example:true