​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"channelData": {
      "zohosalesiq": {
        "action": "end",
        "replies": [
            {
                "text": "Ok, I'll be ending this chat soon anytime now",
                "delay_config": {
                    "enabled": true,
                    "info_messages": [
                        "Ending chat"
                    ],
                    "type": "all",
                    "time": 5
                }
            }
        ]
    }
}
//The "time" is given in seconds
//When more than one delay info messages are given. The "type" can be set as "random" or "all" to define the message order

Delay info message

Copied{    
"action" : "reply",    
"delay" : "5", // time in seconds    
"info" : ["Finding slots for you..."],   
"info_type" : "all|random",    
"replies" : ["We have found the following slots for you", "Please select one"],    
"input" : {"type" : "timeslots","slots" : ["12:00", "13:00"]}
}