swml_transfer
swml_transfer
swml_transfer
Transfer calls between agents using SWML or direct connect, with regex pattern matching to route to different destinations from a single tool. Each transfer destination can use either a SWML endpoint URL or a phone number / SIP address.
Tools: transfer_call (default, customizable via tool_name)
Requirements: None
Multi-instance: Yes
Transfer configurations mapping regex patterns to destinations. Each key is a regex
pattern (e.g., /sales/i) and each value is an object with:
url (str) — SWML endpoint URL for agent transfer. Mutually exclusive with address.address (str) — Phone number or SIP address for direct connect. Mutually exclusive with url.message (str, default "Transferring you now...") — Message to say before transferring.return_message (str, default "The transfer is complete. How else can I help you?") — Message when returning from transfer.post_process (bool, default True) — Whether to process message with AI before saying.final (bool, default True) — Whether transfer is permanent (True) or temporary (False).from_addr (str, optional) — Caller ID for connect action.Description for the transfer tool.
Name of the parameter that accepts the transfer type.
Description for the transfer type parameter.
Message when no pattern matches.
Whether to process the default (no-match) message with AI.
Additional required fields to collect before transfer. Keys are field names, values
are descriptions. Collected values are saved under call_data in global data.