replies
- The bot can handle the visitor on its own by providing replies to the visitor's queries. replies accept only a collection(i.e. a list) as the value. The collection can, in turn, have one or more strings.
- Whenever there is a delay in the bot's reply to a visitor's message, you can send also out a delay information message.
Channel compatibility
One or more strings replies
Copied//Syntax
response.put
("replies",
{"Text1","Text2"}
);
//Example
response.put
("replies",
{"Hi","Welcome to Zylker!"}
);
Delay replies
Copiedresponse.put("action","reply");
response.put("replies",
[
{
"text":"Welcome to Zylker",
"delay_config":
{
"enabled":true,
"info_messages":["Loading","Fetching slots"],
"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
Multiple maps - in case of display cards such as articles, images, and links
Copiedresponse.put("replies",{"Today's hot deal! ,
{
"text": "Cliq - Classic Black Smart watch", "20% Off - $899 Only"
"image": "http://zylker.com/cliq-classicblack.jpg/23454433445",
"image_position" : "fit|fill"
}
});