WFH Tip: 24 Objects in the Zobot

WFH Tip: 24 Objects in the Zobot

Before you start building a Zobot for your business, you need to know about the objects that are available inside the Zobot. This tip aims to give you an idea of the core objects that are found throughout the custom bot implementation. These objects serve as a guideline for input parameters and output response formats for the scripts used in the bots. The following are the actions that can be performed by the Zobot:
  1. Handling visitor chats
  2. Forwarding chats to humans
  3. Blocking a visitor
  4. Collecting inputs via Calendar
  5. Multiple input collection for one response, etc.
So, we'll take a look at all of these object one by one.

Request:

‌The request object is a map that contains the details of a request. You can retrieve details such as 
  • the request ID that is unique to each action
  • the embed inside which the chat is going on
  • the OS and browser used by the visitor
  • the location of the visitor and
  • the IP address of the visitor.
Syntax:
  1. {
  2.   "id" : "4fhgtd-hbnjwj-hbewjd-gyywye6" ,
  3.   "app_id" : "800009278986899",
  4.   "os" : "Apple Macintosh",
  5.    "browser" :"Apple Safari" 
  6.     "ip" : "127.89.077.12",
  7.     "location" : {
  8.     "country" : "US",
  9.     "city": "Los Angeles",
  10.     "state": "California",
  11.     "lat" : "51.023",
  12.     "long" : "12.34"
  13.   }
  14. }

Visitor:

Then comes the visitor object which is a map that contains all of the profile information of the website visitor. Using this, you can get details like
  • Name, email, phone, browser, IP address of the visitor
  • URL of the page where the visitor is currently accessing
  • Title of the visitor's current website page
  • Count on number of past chats with the visitor
  • Source from where the visitor is referred from
  • Category and potential of the visitor in CRM and
  • Custom information about the visitor.

Attachment:

The attachment is a collection object, which contains the files and the respective details of the file that were shared by the visitor during the conversation, as a message. It contains attributes like:
  • The details of the visitor who has sent the file
  • The type of file
  • The JSON object containing details of the file shared
  • Time at which the file was shared in milliseconds and
  • The comment attached with the file
  • It also contains some file object properties like 
  • Size of the file
  • The name and type of the file that has been shared by the visitor.

Message:

Each text message in the conversation between the Zobot and the visitor will be considered as the message object. It has two major attributes.
  • text which is mandatory. This is the content of the conversation.
  • And meta which is not a mandatory attribute. These are the details of the visitor message such as card data, type, etc

Responses:

  • Then, finally, we have the response object. This contains the output responses given by the bot during the conversation. It has four attributes.
  • action - Action performed by the bot
  • replies - The replies given by the bot for the particular action
  • input - The input type displayed to the visitor by the Zobot
  • suggestions - The response suggestions given by the Zobot to the visitor. When a response contains both input and suggestions, the Zobot will consider only the input and ignore the suggestions. Any interaction can have one type of input - either an input widget or free form text supported by suggestions.Also, you need to remember that visitors cannot enter any text manually when suggestions are displayed in the chat widget.
Note: Out of these four attributes, action and replies are mandatory ones.

To learn more about using objects, start building your own Zobot right away.
We also have Sample Scripts that use all of the response types mentioned above. 
For more information, check out our Help Documentation.

Regards,
Michelle




                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                              Zoho TeamInbox Resources

                                                Zoho DataPrep Resources



                                                  Zoho CRM Plus Resources

                                                    Zoho Books Resources


                                                      Zoho Subscriptions Resources

                                                        Zoho Projects Resources


                                                          Zoho Sprints Resources


                                                            Qntrl Resources


                                                              Zoho Creator Resources


                                                                Zoho WorkDrive Resources



                                                                  Zoho Campaigns Resources

                                                                    Zoho CRM Resources

                                                                    • CRM Community Learning Series

                                                                      CRM Community Learning Series


                                                                    • Tips

                                                                      Tips

                                                                    • Functions

                                                                      Functions

                                                                    • Meetups

                                                                      Meetups

                                                                    • Kbase

                                                                      Kbase

                                                                    • Resources

                                                                      Resources

                                                                    • Digest

                                                                      Digest

                                                                    • CRM Marketplace

                                                                      CRM Marketplace

                                                                    • MVP Corner

                                                                      MVP Corner

                                                                    





                                                                    




                                                                        Design. Discuss. Deliver.

                                                                        Create visually engaging stories with Zoho Show.

                                                                        Get Started Now