WFH Tip 20: How can you tweak the Zobot codes according to your requirements?

WFH Tip 20: How can you tweak the Zobot codes according to your requirements?

Greetings from Zoho SalesIQ!
As all of you know, Zoho SalesIQ has a wide range of code snippets and Sample Scripts that you can use as references when you start building a Zobot. These code structures have numerous possibilities in store for you. All you have to do is copy-paste the sample code from the respective section and make changes according to your requirements. 

Say, you own an online clothing store and are trying to set up a Zobot to assist your website visitors. You want the Zobot to start off with a welcome message and then ask your visitors what they need help with. 

Here's a sample code that you can start working with. This code snippet is from the E-Commerce Zobot Sample Script. This was designed to support any e-commerce store in general. You can make this code more specific in a few simple steps to fit your online clothing store needs.
 

Sample Code:

  1. response = Map();
  2. response.put("action", "reply");
  3. response.put("replies", {
  4. {
  5. "text": "Hey! Welcome to my store! Ahh..well I own it when my human friends aren't around. So tell me, what brings you here?"
  6. }
  7. });
  8. options = {
  9.   "Great deals of the day",
  10.   "Need any help with purchasing?",
  11.   "Have a query?",
  12.   "Just browsing"
  13. };
  14. response.put("suggestions", options);
  15. return response;

Tweaked Code:

  1. response = Map();
  2. response.put("action", "reply");
  3. response.put("replies", {
  4. {
  5. "text": "Hey there! Welcome to Zylker Clothing! What are you looking for today?"
  6.   }
  7. });
  8. options = {
  9.     "Summer Clothing",
  10.     "Winter Clothing",
  11.     "Women's Clothes",
  12.     "Men's Clothes"
  13. };
  14. response.put("suggestions", options);
  15. return response;
That's how easy it is to alter the Zobot code to fit your business needs! So, start building your own Zobot right away! 
For more information, check out our Help Documentation.

If you have any specific requirement, please feel free to leave your comments below. We'll share our ideas to help you tweak the bots available in our sample scripts according to your requirement.


Regards,
Michelle