post_message

Post message allows posting a custom message to the visitor while performing an action. 

Note: 

  1. It is executed only during the ongoing chat. 
  2. When this return type is invoked, a confirmation popup box containing the message to be displayed to the visitor along with the Cancel/ Share button. If the operator selects "Share", the message will be sent to the visitor.
ParameterDescriptionDatatypeMax Limit
typeType of action that has to be performed - post_messageString-
messageThe list of messages to be sent in the conversationList-

Sample Script (Deluge):

{
  "type":"post_message",
  "message":[
    {
        "text": "Your order" + ordered_product + "has been canceled successfully.",
    }
  ]
}