Skip to content

SetWhisperFlow

Configure whisper flows that play to agents or customers before connecting.

Signature

csharp
IFlowBuilder SetWhisperFlow(
    string flowName, 
    string whisperType = "Agent", 
    string? identifier = null)

Parameters

ParameterTypeRequiredDescription
flowNamestringYesName or ARN of the whisper flow
whisperTypestringNoType: "Agent", "Customer", or "Both" (default: "Agent")
identifierstring?NoOptional identifier for the action

Whisper Types

TypeDescription
AgentPlays to agent before connecting to customer
CustomerPlays to customer while waiting for agent
BothPlays to both parties

Examples

Agent Whisper for VIP

csharp
Flow.Create("VIP Routing")
    .InvokeLambda("GetCustomerInfo")
        .OnSuccess(s => s
            .CheckContactAttribute(check =>
            {
                check.Attribute(Attributes.External("Tier"))
                    .Equals("VIP", vip => vip
                        .SetWhisperFlow("VIPAgentWhisper", "Agent")
                        .TransferToQueue("VIPSupport"))
                    .Otherwise(regular => regular
                        .TransferToQueue("General"));
            }))
        .OnError(e => e.TransferToQueue("General"))
    .Disconnect();

Customer Whisper

csharp
Flow.Create("Customer Notification")
    .SetWhisperFlow("CustomerConnectingWhisper", "Customer")
    .TransferToQueue("Support")
    .Disconnect();

Creating a Whisper Flow

csharp
// Agent whisper flow
Flow.Create("VIPAgentWhisper")
    .SetType(FlowType.AgentWhisper)
    .SetDescription("Notifies agent of VIP customer")
    .PlayPrompt($"VIP customer: {Attributes.Contact("CustomerName")}. Account: {Attributes.Contact("AccountId")}.")
    .EndFlowExecution();

AWS Connect Block Type

This block generates the UpdateContactTargetQueue action with whisper configuration.

Best Practices

  1. Keep whispers short - 2-5 seconds maximum
  2. Include relevant info - Customer name, tier, issue summary
  3. Use SSML - Control timing and emphasis
  4. Test timing - Ensure whisper completes before connection

See Also

Preview release - Licensing terms TBD before 1.0