Handling API Responses with Multipath in Webhook Block | Zoho Bot Builder Guide

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 return errors due to invalid input, missing data, or server issues.

Instead of treating every response the same, your Guided Conversation can become smarter and more helpful by handling each response type differently. That’s where Multipath comes in.


Learn more about webhooks: Introduction to Webhook Block in GC 
 

What is multipath in the Webhook Block? 

Multipath is a feature in the Webhook block of Guided Conversations that allows your chatbot to follow different paths based on the HTTP response status codes returned by an API call.

For example:
  1. If the response is 200 (OK), the chatbot might continue to show subscription details.
  2. If the response is 404 (Not Found), it can gently ask the user to double-check their input.
  3. If it gets a 500 (Server Error), it can apologize and suggest trying again later.
This ability to branch out into different flows based on what happens in the API response is what makes Multipath so valuable.

 

How does Multipath work? 

The best part about Multipath is that you don’t need to enable anything manually. It's automatically activated when you define more than one expected response code in the Response List of the Webhook block.

Here’s a step-by-step breakdown of how it works:
  1. Add a Webhook Block
  2. Configure it to connect with your API.
  3. Define Multiple Response Status Codes
  4. In the Response List section, enter all the response codes your API might return, for example: 200, 400, 404, and 500.
  5. Multipath is Automatically Enabled
  6. As soon as you list multiple response codes, the Webhook block understands that different outcomes are possible. It activates the Multipath feature and shows separate paths for each response code.
  7. Customize Each Path.
  8. You can now add specific conversation blocks under each path. For example:
    1. Under 200: Add a Message block that shows the customer’s subscription details.
    2. Under 404: Add a block that says “We couldn’t find that. Could you double-check your email?”
    3. Under 500: Display a polite error message and offer a retry.

Example use case
Example use case
Let’s say you’ve built a chatbot that helps users check their subscription status for a product. You use a Webhook block to connect with your subscription system’s API.

You configure these status codes:
  1. 200: Everything is good. The user exists and has an active subscription.
  2. 404: The email provided doesn’t match any customer records.
  3. 401: The authentication token is missing or expired.
  4. 500: Something went wrong on the server side.
 
Here’s how your chatbot can handle each:
  1. 200 Shows a message: “Great! You have an active subscription until September 30.”
  2. 404 Asks the user: “We couldn’t find any subscription under that email. Want to try a different one?”
  3. 401 Suggests: “Looks like there’s a login issue. Let’s reauthenticate first.”
  4. 500 Displays: “Oops, looks like our system is having a hiccup. Please try again in a few minutes.”

Benefits of using Multipath


Personalized Responses
Each user gets a message that matches their situation, reducing confusion and improving clarity
Smoother Error Handling
Instead of showing vague or technical error messages, you guide users calmly through alternate options
Professional Experience
It makes your chatbot feel polished, intelligent, and attentive, like a real support agent
Saves Time
When users are guided correctly, they don’t need to reach out to support manually, saving time for both them and your agents
Scalable Design
As your API evolves or new response codes are added, you can expand the paths easily without disrupting your existing flows


Tips


Focus on handling the most likely responses first, usually 200 (success), 404 (not found), and 500 (error).
If multiple errors (like 400 or 401) lead to the same action (like asking to re-login), you can reuse the same block across paths.
Don’t overload users with technical details. Keep responses simple, helpful, and reassuring.
Use the Preview and Test feature to simulate different API responses and ensure each path works as expected.


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

                              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


                                                                • 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

                                                                                                                          • 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 ...
                                                                                                                          • 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 ...
                                                                                                                          • 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 ...
                                                                                                                          • Response in Webhook Block

                                                                                                                            Once your webhook sends a request to an external API, it often receives a response. This is where the Response List in the webhook block becomes incredibly useful. It lets you capture and use the data that comes back from the API, right inside your ...
                                                                                                                          • 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 ...
                                                                                                                            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