Skip to main content
Version: v3

Create Agent Action

POST 

/voice-ai/actions

Create a new action for a voice AI agent. Actions define specific behaviors and capabilities for the agent during calls.

Request

Version stringrequired

API Version

Available optionsv3
application/json

Bodyrequired

    agentIdstringrequired

    Agent ID to attach the action to

    locationIdstringrequired

    Location ID

    actionTypestringrequired

    Type of action

    Available optionsCALL_TRANSFERDATA_EXTRACTIONIN_CALL_DATA_EXTRACTIONWORKFLOW_TRIGGERSMSAPPOINTMENT_BOOKINGCUSTOM_ACTIONKNOWLEDGE_BASE
    namestringrequired

    Human-readable name for this action

    actionParametersobjectrequired

    Action parameters - structure varies by actionType

application/json

Action created successfully

Schema
    idstringrequired

    Unique identifier for the created action

    actionTypestringrequired

    Type of action

    Available optionsCALL_TRANSFERDATA_EXTRACTIONIN_CALL_DATA_EXTRACTIONWORKFLOW_TRIGGERSMSAPPOINTMENT_BOOKINGCUSTOM_ACTIONKNOWLEDGE_BASE
    namestringrequired

    Human-readable name for this action

    actionParametersobjectrequired

    Action parameters - structure varies by actionType