Transfers a conversation to an another worker, a queue or a workflow.
The SID of the task the conversation belongs to.
Worker SID or Workflow SID or Queue SID to which the conversation should be transferred.
Optional configuration parameters for customizing the conversation transfer.
A promise that resolves when the conversation is successfully transferred.
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { StartConversationTransfer } from "@twilio/flex-sdk/actions/Conversation";async function startConversationTransfer() { const client = await createClient("SDK_TOKEN"); const startConversationTransferAction = new StartConversationTransfer( "WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ); await client.execute(startConversationTransferAction);} Copy
import { createClient } from "@twilio/flex-sdk";import { StartConversationTransfer } from "@twilio/flex-sdk/actions/Conversation";async function startConversationTransfer() { const client = await createClient("SDK_TOKEN"); const startConversationTransferAction = new StartConversationTransfer( "WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ); await client.execute(startConversationTransferAction);}
Transfers a conversation to an another worker, a queue or a workflow.
Param: taskSid
The SID of the task the conversation belongs to.
Param: to
Worker SID or Workflow SID or Queue SID to which the conversation should be transferred.
Param: options
Optional configuration parameters for customizing the conversation transfer.
Returns
A promise that resolves when the conversation is successfully transferred.
Throws
FlexSdkError with the following error code(s):
Example