​Delay in "end" action

You can schedule a delay for the end of a chat. The delay will be unscheduled if the visitor types a message/ sends a message/ agents join the chat/  chat is handed off to the agent. 

The minimum delay that can be set is 30 seconds and the maximum is 10800 seconds(3 hours).

Channel compatibility

     

Output

Use Case

Copied{
    "delay_config": {
        "enabled": true,
        "info_messages":["Ending chat"],
        "type":"all", 
        "time": 30
    },
    "replies": [
        {
            "text": "Thank you! Have a nice day."
        }
    ],
    "action": "end"
}

//The "time" is provided in seconds
//When multiple delay info messages are given, the "type" can be set as "random" or "all" to determine the message sequence