@twilio/flex-sdk
    Preparing search index...

    Switches a supervisor (already joined via MonitorCall) into coach (whisper) mode for the specified agent on the task's conference. The supervisor becomes audible to that agent only — the customer does not hear the supervisor.

    The SID of the task

    Optional configuration for the coach call

    A promise that resolves when the coach call is established

    import { createClient } from "@twilio/flex-sdk";
    import { CoachCall } from "@twilio/flex-sdk/actions/Voice";

    async function example() {
    const client = await createClient("SDK_TOKEN");
    const coachCall = new CoachCall("WTXXXXXXXXXXXXXXXXXXXXXXXXX", { targetWorkerSid: "WRXXXXXXXXXXXXXXXXXXXXXXXXX" });
    const call = await client.execute(coachCall);
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • ctx: {}

      Returns Promise<void>