Custom Chat Duration

August 9, 2023 ยท View on GitHub

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)
});