operator_busy

When the bot doesn't know how to handle the visitor and it also doesn't want to forward the chat to human operators (reasons may include non-business hours or all the operators are busy with another chat.), the operator_busy action is used. In this case, the visitor will be prompted to leave a message and the chat will be marked as missed.

Syntax:

Copied{
  "action" : "operator_busy" ,
  "replies": [
    "Your text here"
  ]
}

Use Case:

Bot doesn't know how to handle the visitor and it also doesn't want to forward the chat to a human For Context handler function:

Copiedresult = Map();
response = Map();
response.put("action", "operator_busy");
response.put("replies",["Thanks for contacting us today, please leave a message and our operator will contact you shortly."]);
prompt = Map();
prompt.put("param_name", "operator_busy");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;

Execution Function:

Copiedresult = Map();
response = Map();
response.put("action", "operator_busy");
response.put("replies",["Thanks for contacting us today, please leave a message and our operator will contact you shortly."]);
result.put("data", response);
return result;