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?

  1. Streamline the process by automatically performing arithmetic operations, reducing the need for manual input or external tools in your bot.
  2. Provides immediate results for operations like bill calculations, discounts, or conversions, improving user satisfaction to the end-user.
  3. Speeds up interactions by handling complex arithmetic directly within the conversation, saving time for both users and support agents.
  4. Minimizes the risk of human error in calculations, ensuring accurate and reliable data processing. 

Operation Block

Field

Mandatory field

Character limit

Additional details

Block name

Yes

100

<, >, ", ' , are not allowed

Variable name

Yes

250 max, can input up to 260

Cannot start with a number; Only a-z, A-Z, 0-9, , @, ., {}, () allowed; Special chars not allowed except underscore (_)

Validation error message

No

1000

Malicious attack scripts are checked and removed if present

Expression

Yes

-

Must be a valid expression



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.
4. Enter or choose the required combination of integers, variables, and functions in the Expression field.
  1. You can either type or choose the arithmetic expression
  2. 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.
  1. You can either proceed with the given error message or change it, if required.
  2. 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.

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

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 (+).  
Info
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.
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.
  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 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:
 




Idea
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:
Notes
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.

        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 ...
                                                                                                                                • Fork Block

                                                                                                                                  What is a fork block? A fork block splits the conversation flow into two or more paths based on predefined conditions. The customer input received via a block is stored under a placeholder called "Block variables." Conversation flows can take ...
                                                                                                                                • Webhook Block

                                                                                                                                  The webhook block is one of the four action blocks available in the Guided Conversations bot builder. This block enables the conversation flow to interact with Zoho Desk processes or other Zoho or third-party services. The webhook block uses APIs ...
                                                                                                                                • 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, ...
                                                                                                                                • 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 ...
                                                                                                                                  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