Creating Block Variables

Creating Block Variables

What are variables?

Variables are placeholders that store user input, data from external systems, or other important information that needs to be saved and reused later in the bot conversation.
They help maintain the context of the conversation, allowing the chatbot to retrieve data and respond appropriately based on previous interactions.
For example, collect the customer’s name, email address, and phone number, then have the bot automatically use these details in future interactions by storing them as variables.
These are categorized based on their scope, which determines where the variable is to be used. Variables are only accessible within their defined scope. There are four types used here: block variables, local variables, global variables, and session variables.
By using variables, you can personalize and tailor conversations within your GC chatbot, allowing for flexible and customized interactions.

Why use variables?

  • Helps maintain the context of the conversation, allowing the bot to refer to previous user inputs and respond accurately.
  • Allows the bot to retrieve and use data dynamically, making conversations more flexible and responsive to user needs.
  • Retrieves crucial information, such as user preferences or data from external systems, which can be used later in the conversation or across multiple interactions.
  • Variables help streamline conversation flows by reducing redundancy and ensuring that relevant data is easily accessible when needed.
  • By categorizing variables based on their scope (block variables, local variables, global variables, and session variables), they ensure that data is used appropriately within the intended parts of the conversation. 

What are block variables and why use them?

The information received in a block during a conversation is stored in block variables. They allow you to utilize the stored data at various points within the flow, enabling its reuse as often as needed. This flexibility ensures that the data can be consistently applied throughout the block’s operations.
Additionally, it helps in maintaining the modularity and organization of the flow, as each block can manage its own set of variables without affecting others.

How to create block variables

You can create block variables through the responses received from the end-user.
For example, the user's name collected from the question block is stored as a block variable, which can then be used in the following block to display their name.

Input given in GC builder:

1. Creating a question card.
 
Question blocks include an option that allows you to rename block variables. By default, the block name you provide is used as the variable's name. For example, if you name the block Name, the default variable name will be Name_. However, you can edit and customize the variable name if needed.
2. Selecting the required block variable.
3. Creating the next block where the entered name has to be displayed.
 

 Output in GC:

How can you use block variables in your flow:

  1. Personalized greetings: A block variable can store the user's name received in an earlier block, allowing the bot to greet the user by name in subsequent messages within the same flow.
  2. Order details: In an ecommerce chatbot, block variables can store order details, such as the product name, quantity, or price collected from the user, which can then be referenced to confirm the order in the same flow.
  3. Survey responses: During a survey, each response collected from the user can be stored as a block variable. These responses can be used to provide personalized feedback or results at the end of the survey.
  4. Conditional logic: Block variables can be used to store user preferences or selections, which can then be used to guide the conversation. For instance, if a user selects a particular service, the next steps in the conversation can be tailored accordingly.
  5. Appointment scheduling confirmation: In a chatbot designed to schedule appointments, block variables can store the chosen date and time, which can then be displayed for confirmation before finalizing the booking.
Points to note:
  1. If the block variable is being edited, it will automatically be reflected in wherever it has been used.
  1. The block variables can be re-used used multiple times according to the requirement.
The response you receive from an API call made through webhooks block can be used/stored as variables in the GC flow.


        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

                                TypeformWCAG


                                      All-in-one knowledge management and training platform for your employees and customers.

                                                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

                                                                                                                                  • Components of the GC Flow Builder

                                                                                                                                    The GC flow builder comprises three components: Blocks Paths Variables Blocks Blocks are the fundamental units of the flow builder. A text message that you want to display, a set of options that you want the customer to choose, the step where you ...
                                                                                                                                  • Building Blocks Using Automation Studio

                                                                                                                                    We are opening Automation Studio on a request basis for Professional and Enterprise editions. Kindly raise a request using the Early Access Form. A flow in Automation Studio is built using two essential elements - Events that trigger the rule, and ...
                                                                                                                                  • FAQs: Automation Studio

                                                                                                                                    1. What is Automation Studio? Automation Studio is a user-friendly, no-code automation solution in Zoho Desk that provides a visual interface to design, view, and control automation flows. It allows administrators to see the complete sequence and ...
                                                                                                                                  • POST Method in Webhook Block

                                                                                                                                    Want your bot to send data to another system, like creating a support ticket, logging feedback, or saving a form response? That’s exactly what the POST method in the Webhook block is designed for. It allows your bot to push data to external tools ...
                                                                                                                                  • Creating Local Variables

                                                                                                                                    What are variables? Variables are placeholders that store user input, data from external systems, or other important information that needs to be saved and reused later in the bot conversation. They help maintain the context of the conversation, ...
                                                                                                                                    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