swml_transfer
swml_transfer
Transfer the call to a SWML endpoint and configure an AI response for when
control returns to the agent (relevant only when final=False).
For simple phone-number or SIP transfers, use connect() instead.
Use swml_transfer() when you need to hand off to another SWML document and
set up a return message.
Parameters
dest
Destination URL for the transfer (a SWML endpoint, SIP address, etc.).
ai_response
Message the AI speaks when the transfer completes and control returns to the
agent. Only meaningful when final=False.
final
Whether this is a permanent transfer (True) or temporary (False).
Returns
FunctionResult — self, for chaining.