Actions25
- Call Actions
- Dial Actions
- Media Actions
- Queue Actions
- Global recording Actions
- AI Actions
- Respond Actions
AI → Attach Voice Agent
AI-generatedSummary
Attach a voice agent to the current workflow item, optionally overriding the AI leg ID.
Inputs
- options — Optional explicit websocket AI leg override; if empty the action resolves aiLegId first, then legId, from the current item.
Output shape
the updated workflow item with attached AI leg configuration
If an AI leg cannot be resolved the operation fails; otherwise it adds the AI leg configuration and returns the modified item.
Examples
Example 1: Add an AI leg using a specific leg ID
options.legId set to "agent-42"
Example 2: Use default resolution of AI leg ID and legId
options.legId left empty, relying on aiLegId and legId from the item