Operation Block

Operation Block

What is an operation block?

This block allows us to perform arithmetic operations and display the result during the chat session. Operation block can also be used to calculate the values retrieved from the block variable, local variable, and global variable

For example, a user has placed an order in the Zylker Grocery store and has added various items. At the end of their purchase, they would expect to see the total bill amount. GC does this through the operation block by using mathematical operations such as addition, subtraction, multiplication, or division to calculate it.

For example, if a user places a bulk order at the Zylker Electronics online store, you can calculate and display the total cost based on the price of a single item. GC does this through the operation block by using mathematical operations such as addition, subtraction, multiplication, or division to calculate it.

Why use an operation block?

  • Streamline the process by automatically performing arithmetic operations, reducing the need for manual input or external tools in your bot.

  • Provides immediate results for operations like bill calculations, discounts, or conversions, improving user satisfaction to the end-user.

  • Speeds up interactions by handling complex arithmetic directly within the conversation, saving time for both users and support agents.

  • Minimizes the risk of human error in calculations, ensuring accurate and reliable data processing. 

Steps to create an operation block

To add the Operation block to the flow:


1. Click the add block icon (+)

2. Choose Operation under the Action Cards section.


3. Add a unique name for the block in the Block name field.

If you input the name of a block that already exists, the following error message will appear.


 

4. Enter or choose the required combination of integers, variables, and functions in the Expression field.

 You can either type or choose the arithmetic expression. You can also make arithmetic expressions using the created variables.
5. Enter an appropriate error message in the Error Message field, or proceed with the given error message.

You can either proceed with the given error message or change it, if required. This message will be showcased to the end-user if the given expression fails to give the solution for the added arithmetic expression during the end-user conversation.


The displayed variables for selection can involve block variables, local variables, global variables, and session variables that are in the form of numerals.

6. Click Save

7. Publish the flow.

If you try to close the block listing without saving the text block, all the unsaved changes will be lost permanently.

Steps to edit an operation block

You can edit an operation block whenever required, even after the flow is published or in the drafts section, by following these steps:

1. Open the flow and click Edit.




2. Click the
Operation Block, which you may have named differently.

3. Choose Edit Block from the displayed options.




4. Make the required changes to the block and click Save.

 

5. Click Save

6. Publish the flow.


 

To be noted while editing an operation block:

  1. If you edit a block while an end user is engaged in a live session with the bot, the previous version of the flow will be rendered until they restart the conversation.

  2. After making changes, you will need to publish the flow for those changes to be reflected in an end user's session.

  3. If a change is made to an input variable, it will be updated automatically across all flows where the variable is used. 

Steps to copy the operation block  

The copy block option can be used when you need to reuse a block that you previously created; you can copy that block and add it to your flow as it is or edit it according to the requirement.

1. Click the Operation Block you wish to copy.
2. Choose the Copy Block option. The block will be pasted on the clipboard.
3. When you require to paste that block, click the Add block icon (+).  

The pasted block would appear on the block listing section and be stated as From Clipboard.

4. Make any required edits, then click Paste.

 

 


To be noted while copying an operation block:

  1. The copied operation block can be pasted multiple times. If you no longer need to paste it, you can clear the clipboard by clicking the close icon corresponding to the clipboard option.

  2. When copying an existing operation block, all of its content, including any variables, will be copied as is. You can edit it as needed before adding it to the flow. Since the names of each block must be unique, the word '_copy' will be added to the copied blocks automatically; this can be changed if required.

  3. If you have copied a block and it is in the clipboard, deleting the copied block later will also remove it from the clipboard.

 

Steps to delete an operation block

1. Open the flow and click Edit.



2. Click the Operation block, which you may have named differently.
3. Select Delete Block from the displayed options.


4. Click Yes, Delete it to confirm.



You can use the undo option to restore a deleted block as your following action, but not otherwise.



5. Click Save.

6. Publish the flow.


 

To be noted while deleting an operation block:

  1. If you delete an operation block while an end user is engaged in a live session with the bot, the previous version of the flow will be rendered until they restart the conversation.
  1. After making changes, you will need to publish the flow for those changes to be reflected in an end user's session.

If the deleted block has dependencies, such as those given below, errors will be displayed.  

Path below the block:

 

 

 

If the block was used to jump to a different flow:

 



Use case

 

A user is purchasing tickets for two people through a chat bot available on Zylker Cinemas website. They want to know the total price to pay and book the movie tickets.


Input given in GC:


Here, the variable, which is the number of the tickets, is supposed to multiply with the cost of one ticket, which is $20.



 GC output:


 

Supported channels  

The operation block is supported in the following channels:

  1. WhatsApp
  2. Telegram
  3. Facebook Messenger
  4. LINE
  5. Instagram 
  6. Business Messaging
A total of 500 blocks can be added in a flow. If you reach that count, you can use the jump block to create a new flow or delete unnecessary flows.

    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









                                            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

                                                                                                              • 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, ...
                                                                                                              • 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 ...
                                                                                                              • Button Block

                                                                                                                What is a button block? The button block is a type of choice block that presents users with one or more options in the form of buttons. This block enhances user interaction by allowing them to select their preferred option from a predefined list of ...
                                                                                                              • Number Block

                                                                                                                What is a number block? A number block allows you to ask questions and receive answers in the form of numbers. For example, if a customer has questions about their order and needs to provide an order ID, a number block can be incorporated into the ...
                                                                                                              • Text Block

                                                                                                                What is a text block? Text block lets you ask questions and receive answers in the form of a text. If the user wants to give a gist about a specific problem or positive feedback after using the product, incorporating a text block is an ideal method ...
                                                                                                                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