Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.05 KB

File metadata and controls

27 lines (20 loc) · 1.05 KB

Custom Chat Duration

Set custom total duration of the newly started chat session. This enables you to define how long your customers have to resume a chat interaction before it expires.

Learn more about chat duration: StartChatContact#ChatDurationInMinutes

Reference

Configuration

Set custom chatDurationInMinutes in the initiateChat() config:

connect.ChatInterface.initiateChat({
    name: customerName,
    region,
    apiGatewayEndpoint,
    instanceId,
    contactFlowId,
    // ...
+   chatDurationInMinutes: 1500, // default 1500 (25 hours) - min 60 (1 hour), max 10080 (7 days)
});