What are replies?
When the Zobot can handle the visitor on its own, the reply action can be used to provide replies to the visitors' queries. replies accept only a collection(i.e. a list) as the value. The collection can, in turn, have one or more strings or maps. There are two options available when this action is used.
- It can be used when there are one or more text replies to be displayed.
- In case of multiple maps when display cards such as articles, images, and links are used.
This post will talk about one of the lesser-known, more useful methods of defining replies inside the Zobot
Syntax:
- response.put("replies",["Text1","Text2"]);
How can you define replies?
There are two ways of defining replies inside the Zobot.
Example 2:
A combination of strings and multiple maps - In case the developer wants the bot to display cards like images, videos, links,etc as replies, rather than simple text messages, a collection of reply map can be used.
To learn more about connections, start building your own Zobot right away.
Related Topics:
Regards,
Michelle