SIP PBX icon

SIP PBX

AI → Attach Voice Agent

AI-generated

Summary

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

Links

Discussion