N3squik
02/19/2025, 9:21 AM"type": "say"
and the recommended prompt, but AI ends up repeating the message and not calling the tool.
I am confident there is another way to call ControlUrl, but it is not documented (e.g. with "type": "end-call"
to end call, is there equivalent for transfer call?).N3squik
02/19/2025, 9:23 AMa4040dfc-a542-4186-b3a1-9c1d3774fbf1
Kyle Brunker
02/19/2025, 11:01 PMClientInboundMessageTransfer
interface:
export interface ClientInboundMessageTransfer {
/\*\* This is the type of the message. Send "transfer" message to transfer the call to a destination. \*/
type: 'transfer';
/\*\* This is the destination to transfer the call to. \*/
destination?: TransferDestinationNumber | TransferDestinationSip;
/\*\* This is the content to say. \*/
content?: string;
}
Key Points:
1\. The message must have type: "transfer"
2\. The destination object must specify either:
- For phone numbers: type: "number" with a number field
- For SIP: type: "sip" with a sipUri field
3\. You can optionally include a content field with a message to speak before the transferKyle Brunker
02/19/2025, 11:04 PMN3squik
02/21/2025, 8:10 PM