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 FormsRetailOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceForms for Solopreneurs
                              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
                              Forms for Government
                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic FormsInsurance
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsWufoo alternativeEncrypted Forms
                              Accessible FormsTypeform alternativeSecure Forms

                              WCAG

                                          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

                                                                  Use cases

                                                                  Make the most of Zoho Desk with the use cases.

                                                                   
                                                                    

                                                                  eBooks

                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho Desk.

                                                                   
                                                                    

                                                                  Videos

                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho Desk.

                                                                   
                                                                    

                                                                  Webinar

                                                                  Sign up for our webinars and learn the Zoho Desk basics, from customization to automation and more

                                                                   
                                                                    
                                                                  • Desk Community Learning Series


                                                                  • Meetups


                                                                  • Ask the Experts


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner



                                                                    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

                                                                                                                            • Request Timeout in Webhook Block

                                                                                                                              When your chatbot connects to an external service, it uses a webhook block to send a request to that service’s API. Now imagine the service takes too long to respond. What should your chatbot do? Wait forever? Give up too early? That’s exactly what ...
                                                                                                                            • 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 ...
                                                                                                                            • URL Field in Webhook Block

                                                                                                                              Where it knows to go! You’ll need to enter the exact REST API endpoint of the third-party app you want to interact with in the URL field; whether you’re sending data, fetching it, updating something, or deleting it. Think of this field as the ...
                                                                                                                            • PATCH Method in Webhook Block

                                                                                                                              Do you need to update just one or two pieces of information in another system, such as changing a ticket’s priority or updating a user’s phone number, without touching anything else? Use the PATCH method in your Webhook block to make precise, partial ...
                                                                                                                            • Multipath in Webhook Block

                                                                                                                              Not every API call ends the same way. When your chatbot interacts with external systems using a Webhook block, you often expect different types of responses. Some API calls are successful, like when the system finds a customer’s data, while others ...
                                                                                                                              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