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
transfers
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 withaddress.address(str) — Phone number or SIP address for direct connect. Mutually exclusive withurl.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, defaultTrue) — Whether to process message with AI before saying.final(bool, defaultTrue) — Whether transfer is permanent (True) or temporary (False).from_addr(str, optional) — Caller ID for connect action.
description
Description for the transfer tool.
parameter_name
Name of the parameter that accepts the transfer type.
parameter_description
Description for the transfer type parameter.
default_message
Message when no pattern matches.
default_post_process
Whether to process the default (no-match) message with AI.
required_fields
Additional required fields to collect before transfer. Keys are field names, values
are descriptions. Collected values are saved under call_data in global data.