Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Update an existing action for a voice AI agent. Modifies the behavior and configuration of an agent action.
PUT https://services.leadconnectorhq.com/voice-ai/actions/{actionId}

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Path parameters

actionId
string
required
Unique identifier for the action

Body

agentId
string
default:"507f1f77bcf86cd799439011"
required
Agent ID to attach the action to
locationId
string
default:"507f1f77bcf86cd799439012"
required
Account ID
actionType
string
default:"CALL_TRANSFER"
required
Type of action Posibles valores: ‘CALL_TRANSFER’, ‘DATA_EXTRACTION’, ‘IN_CALL_DATA_EXTRACTION’, ‘WORKFLOW_TRIGGER’, ‘SMS’, ‘APPOINTMENT_BOOKING’, ‘CUSTOM_ACTION’, ‘KNOWLEDGE_BASE’
name
string
default:"Transfer to Manager"
required
Human-readable name for this action
actionParameters
object
required
Action parameters - structure varies by actionType

Respuestas

id
string
default:"507f1f77bcf86cd799439011"
required
Unique identifier for the created action
actionType
string
default:"CALL_TRANSFER"
required
Type of action Posibles valores: ‘CALL_TRANSFER’, ‘DATA_EXTRACTION’, ‘IN_CALL_DATA_EXTRACTION’, ‘WORKFLOW_TRIGGER’, ‘SMS’, ‘APPOINTMENT_BOOKING’, ‘CUSTOM_ACTION’, ‘KNOWLEDGE_BASE’
name
string
default:"Transfer to Manager"
required
Human-readable name for this action
actionParameters
object
required
Action parameters - structure varies by actionType
{
  "id": "507f1f77bcf86cd799439011",
  "actionType": "CALL_TRANSFER",
  "name": "Transfer to Manager"
}
{}
{}
{}

Ejemplo

curl -X PUT 'https://services.leadconnectorhq.com/voice-ai/actions/YOUR_actionId' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "agentId": "507f1f77bcf86cd799439011",
  "locationId": "507f1f77bcf86cd799439012",
  "actionType": "CALL_TRANSFER",
  "name": "Transfer to Manager"
}'