Model & Flow of Actions

Model & Flow of Actions


An Action of a Zia bot is characterized by its Sample sentences, Params and Functions.


Params

Params are the input data that are required to fulfill or execute an action. If we consider the execution of an action analogous to filling a form, then the fields in the form are considered as the params for the action.

For example, the params of an action written to create an event would typically be title, start time, end time and so on.

Sample sentences

Sample sentences are the example invocations that end users would say to invoke a particular action in their natural language. These Sample sentences constitute to Zia's intelligence in understanding a user input.

Typical sample sentences for the create event action would be the following.
  1. Create an event
  2. Schedule a meeting

Practically, people would speak out data as part of invoking instructions and hence sample sentences may also include certain param values. As in the examples below, user may say the event title, start time and end time as a part of their initial invoking sentence while trying to schedule an event.
  1. Create an event from 5 PM to 6 PM to discuss about the Zylker deal.
  2. Schedule a meeting with John at 5 PM.

If the invoking sentence does not contain all the required params, the bot will prompt the user for those param values. 


Thus Sample Sentences define the intention of a particular action and the Params define what are all the entities that would be required to fulfill that action. The data model of an Action for Zia’s intelligence is formed by the combination of the Sample sentences and Params.


Functions

Functions are the custom hooks to be written by developers that are executed by the bot during execution of an action. Functions control the flow of an Action. The business logic of an action are defined in these Functions.


All the functions must be written in Deluge, the native online scripting language of the Zoho cloud environment.  All the declared params of an action are passed as input arguments to these functions, in addition to some other environmental data that would be needed to execute the business logic.

Every action can have the below functions, that are executed at their respective invocation points during an action execution.
  1. Action Execution (mandatory) — invoked at the end of an action, after all params are filled.
  2. Context handler (optional) — invoked for every user input in the course of an action.

Action execution flow

  1. Whenever a user inputs a sentence in a Zia bot, Zia tries to understand the user input to detect the intention of the user input.
  2. If the intention matches with any one of the intentions of the configured actions, then Zia will prompt the user for the params that are required to fulfill that action, in the form of a conversation.
  3. For every user input, the Context Handler Function will be invoked, if enabled.
  4. Once all the configured params are received from the user, Zia executes the Action Execution Function.
  5. The return value of the execution function is sent as a reply message to the user.

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              WCAG



                                        Create. Review. Publish.

                                        Write, edit, collaborate on, and publish documents to different content management platforms.

                                        Get Started Now







                                                          You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                              Manage your brands on social media


                                                                • Desk Community Learning Series


                                                                • Digest


                                                                • Functions


                                                                • Meetups


                                                                • Kbase


                                                                • Resources


                                                                • Glossary


                                                                • Desk Marketplace


                                                                • MVP Corner


                                                                • Word of the Day


                                                                • Ask the Experts


                                                                  Zoho Sheet Resources

                                                                   

                                                                      Zoho Forms Resources


                                                                        Secure your business
                                                                        communication with Zoho Mail


                                                                        Mail on the move with
                                                                        Zoho Mail mobile application

                                                                          Stay on top of your schedule
                                                                          at all times


                                                                          Carry your calendar with you
                                                                          Anytime, anywhere




                                                                                Zoho Sign Resources

                                                                                  Sign, Paperless!

                                                                                  Sign and send business documents on the go!

                                                                                  Get Started Now




                                                                                          Zoho TeamInbox Resources





                                                                                                    Zoho DataPrep Demo

                                                                                                    Get a personalized demo or POC

                                                                                                    REGISTER NOW


                                                                                                      Design. Discuss. Deliver.

                                                                                                      Create visually engaging stories with Zoho Show.

                                                                                                      Get Started Now









                                                                                                                          • Related Articles

                                                                                                                          • What are Actions?

                                                                                                                            An Action is a single ability or a task that the bot performs when you give an instruction as a part of your conversation. For example, you can ask the bot to fetch your appointments for the day or ask it to schedule a meeting to your calendar. Note ...
                                                                                                                          • Zoho SalesIQ: A sample Zobot powered by Zia Skills

                                                                                                                            Zobot is Zoho SalesIQ's virtual chat agent that is designed to interact with website visitors conversationally. Zobot automates the process of interacting with website visitors and helps to maintain the presence of a helping hand, even when all the ...
                                                                                                                          • Action Followups

                                                                                                                            Action Followups defines what the bot should recommend the user after executing an action, in order to engage the user further in conversation. The bot can display a list of suggestions or ask if it can invoke another action, that might be ...
                                                                                                                          • Zoho SalesIQ: Building a Zobot with Zia Skills

                                                                                                                            Zia Skills can be used as a bot building platform for a Zobot in Zoho SalesIQ. A bot-building platform is a layer where you define the abilities and business logic of your chatbots. A bot-building platform has the following roles. Handling Natural ...
                                                                                                                            Wherever you are is as good as
                                                                                                                            your workplace

                                                                                                                              Resources

                                                                                                                              Videos

                                                                                                                              Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                              eBooks

                                                                                                                              Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                              Webinars

                                                                                                                              Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                              CRM Tips

                                                                                                                              Make the most of Zoho CRM with these useful tips.



                                                                                                                                Zoho Show Resources