Using Query Parameters in Webhook Block | Zoho Bot Builder Guide

Query Params in Webhook Block


When you want to pass extra information along with your API request, like a ticket ID, customer email, or a specific status, query parameters come in handy. These small but powerful additions to your API URL help external systems understand exactly what you’re trying to fetch, filter, or send.

Let’s understand what they are, how to use them, and why they matter.


Learn more about webhooks: Introduction to Webhook Block in GC 

What are Query Parameters? 

Query parameters are key-value pairs added at the end of an API URL. They help fine-tune your API request to get the specific data you want or send relevant details to the server.

You’ll recognize them by the way they appear in URLs, such as:
https://api.example.com/tickets?ticketId=12345

In this example:
  1. ticketId is the key
  2. 12345 is the value
You can also pass multiple parameters by separating them with an ampersand (&)
https://api.example.com/tickets?ticketId=12345&status=Open&priority=High

This way, you’re telling the system: “Give me ticket 12345 that is Open and marked as High priority.”



Why use Query Parameters? 

Query parameters help you:
  1. Get only the data you need instead of fetching everything
  2. Filter results based on conditions like status, priority, or date
  3. Pass user or ticket-specific details dynamically during a bot conversation
  4. Avoid sending unnecessary information in the request body

Where do you use them? 

In the Webhook block of your bot flow, you’ll see an option to add Query Parameters. This is where you can enter the key and value pairs you need.

Here’s what that might look like:
  1. Key: ticketId
  2. Value: @ticket.id
  3. This tells the bot to take the current ticket’s ID and pass it to the API dynamically.
 You can add up to 20 query parameters in one Webhook request. 
 
Examples
Examples
1. If you want to get the details of a specific ticket using an external system:

API URL: https://api.example.com/tickets
Query Param:
  1. Key: ticketId
  2. Value: {{ticket.id}}
Final request:
https://api.example.com/tickets?ticketId={{ticket.id}}
 
2. Let’s say you only want to fetch tickets that are currently “Open”:

API URL: https://api.example.com/tickets
Query Param:
  1. Key: status
  2. Value: Open
Final request:
https://api.example.com/tickets?status=Open
 
3. Fetch Multiple Associated Details
Some APIs (like Zoho Desk’s) allow you to include related modules like contacts or products along with the main request.

For example:
https://desk.zoho.com/api/v1/tickets/1892000000143237?include=contacts,products,assignee,departments,team

Here, the include parameter is used to ask Zoho Desk to return extra data related to the ticket, such as:
  1. Contact associated with the ticket
  2. Products linked
  3. Assigned agent
  4. Department and team involved

Benefits of using Query Parameters 


  1. Keep your API requests clean and simple
  2. Avoid over-fetching data; get only what you need
  3. Make your bot more dynamic by passing real-time user inputs
  4. Stay aligned with best practices for most REST APIs


Tips 


  1. Always refer to the API documentation to know what parameters are supported.
  2. Use variables (like {{ticket.id}} or {{user.email}}) to personalize requests.
  3. Query parameters are optional but very useful; don’t ignore them if you need filtering.


Learn more about webhooks: Introduction to Webhook Block in GC 


        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

                                                                                                                                • Introduction to Webhook Block in GC

                                                                                                                                  We know it’s frustrating to jump between tools just to get simple tasks done. You might find yourself copying data from one app to another, waiting for updates, or refreshing dashboards manually. It’s not just time-consuming, it’s exhausting. That’s ...
                                                                                                                                • Connections in Webhook Block

                                                                                                                                  When you’re working with webhooks in a bot flow, whether you’re retrieving data, updating a record, or triggering a third-party service, you often need to establish a secure connection with an external application. That’s where Connections come into ...
                                                                                                                                • 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 ...
                                                                                                                                • 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 ...
                                                                                                                                • 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 ...
                                                                                                                                  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