WFH Tip 19: Did you know that there are two different ways of defining replies in the Zobot?
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 1:
Defining replies as a collection -"replies" which can be a collection of strings that display only text messages.
- replies = Collection();
- replies.insert("Here is the list of newly launched cars with their specification");
- replies.insert("Astra - January 2020 - ₹ 8- 14 lakhs");
- replies.insert("Beta - March 2020 - ₹ 8- 14 lakhs");
- response = Map();
- response.put("replies", replies);
- response.put("action","reply");
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
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Qualify Potential Leads Automatically with SalesIQ Chatbots
Your website may have a lot of visitors every day, but are you struggling to identify your potential leads? You may not know who your ideal leads are just by looking at a website visitor, right? To qualify a lead, you need to know their needs, interests,
OpenAI Alert! Plug Sample #11 - Next-generation chatbots, Zobot + ChatGPT Assistant
Hi Everyone! We have great news for all AI enthusiasts and ChatGPT users! The much anticipated Zobot integration with ChatGPT Assistant is now available with Plugs. OpenAI has introduced 'ChatGPT Assistants' to customize GPT models as per your requirement.
Get live insights on business performance with the SalesIQ TV App - Now available for Apple and Android TVs!
Hello everyone! Let's start with a question - What do you think is the key to a thriving business? Yes, I hear you. It's all about the customers. Success in business often starts with understanding customer needs. But wouldn't you agree that achieving
Deprecation of Google Drive and Sheets connections in Scripts (Deluge)
Hello Everyone, We have an important update for those using the Script (Deluge) platform to build chatbots, widgets, and forms. Google has alerted us about sensitive scopes within the Google Drive and Google Sheets default connections in Deluge. As a
Plug Sample #10 - Simplify Ticket Management (Zoho Desk) with Chatbots
Hi everyone! We're here with another simple yet effective plug for your chatbot to integrate with Zoho Desk. When a customer reports an issue/request during chat, it's logged as a ticket on Desk. When they return for updates, you end up searching through
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.