Skip to main content
Version: 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, or collecting information.

Request

Version stringrequired

API Version

Available optionsv3
agentId stringrequired
application/json

Bodyrequired

    typestringrequired
    Available optionstriggerWorkflowupdateContactFieldappointmentBookingstopBothumanHandOveradvancedFollowuptransferBot
    namestringrequired
    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.

application/json

Successful response

Schema
    dataobjectrequired

    Created action details

    successbooleanrequired

    Success status of the request