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.

    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 Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          CRM Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal
                          Mobile App
                          Form Designer HR
                          Mobile Forms
                          Card Forms Food Offline Forms
                          Assign Forms Photography
                          Mobile Forms Features
                          Translate Forms Real Estate Kiosk in Mobile Forms
                          Electronic Forms

                          Notification Emails for Forms Alternatives Security & Compliance
                          Holiday Forms Google Forms alternative  GDPR
                          Form to PDF Jotform alternative HIPAA Forms
                          Email Forms
                          Encrypted Forms
                          Embeddable Forms
                          Secure Forms
                          Drag and Drop form builder
                          WCAG


                                            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

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      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 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

                                                                                                              • FAQ - Actions

                                                                                                                What is an action? 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 ...
                                                                                                              • 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 ...
                                                                                                              • Defining Deluge Functions

                                                                                                                If the chosen development platform of your skill is Deluge, you will have to define all your actions’ business logic in the pre-defined Deluge functions, hosted in Zoho’s cloud environment.    Deluge is the native online scripting language of the ...
                                                                                                              • Defining an Action

                                                                                                                Adding a New Action To add a new Action to a Skill, follow the steps as given below. In the Skill's details page, under the ACTIONS tab, click the + ADD ACTION option. The Create New Action page appears. Give a meaningful name for the action. Based ...
                                                                                                              • Deploying to production

                                                                                                                Any changes made to a bot or its underlying actions would only be saved as a draft in the development environment (which is provided to make the required changes on the bot and test) and these changes will not be available on the bot in production. ...
                                                                                                                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