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.
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"}
oneOf
triggerWorkflowDto
updateContactFieldDto
appointmentBookingDto
stopBotDto
humanHandOverDto
advancedFollowupDto
transferBotDto
CustomApiDetailsDTO
details.workflowIdsstring[]required
Array of workflow IDs to trigger
Example:["workflow123","workflow456"]
details.triggerConditionstringrequired
Condition that triggers the workflow
Example:When user requests appointment
details.triggerMessagestring
Optional message to send when triggering the workflow
Example:Workflow triggered successfully
Response
application/json
Successful response
dataobjectrequired
Created action details (classic action or customApi API Call action)
oneOf
ActionDataDTO
CustomApiActionDataDTO
data.idstringrequired
Unique identifier for the action
Example:actionId123
data.namestringrequired
Name of the action
Example:Trigger Workflow
data.typestringrequired
Type of the action
Available optionstriggerWorkflowupdateContactFieldappointmentBookingstopBothumanHandOveradvancedFollowuptransferBotcustomApi
Example:triggerWorkflow
data.agentIdstring
Agent ID where the action belongs
Example:agentId123
data.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, and for TRANSFER_BOT use transferBotDto.
oneOf
triggerWorkflowDto
updateContactFieldDto
appointmentBookingDto
stopBotDto
humanHandOverDto
advancedFollowupDto
transferBotDto
data.details.workflowIdsstring[]required
Array of workflow IDs to trigger
Example:["workflow123","workflow456"]
data.details.triggerConditionstringrequired
Condition that triggers the workflow
Example:When user requests appointment
data.details.triggerMessagestring
Optional message to send when triggering the workflow