Webhook Block

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 from Zoho or third-party services to make this interaction possible. Therefore, any data that can be accessed or any action that can be performed using APIs can be included in the conversation flow through webhook blocks. 

Why use a webhook block in your GC flow?

Webhooks significantly enhance the functionality and responsiveness of a chatbot by allowing it to interact with external systems and services in real-time, offering a more dynamic, scalable, and efficient chatbot experience. 

1. Real-time communication with external systems  
  • Webhooks allow chatbots to fetch and post data to external systems (e.g., CRMs, databases, APIs) instantly, without waiting for manual input leading to cross-integration with services.
  • This ensures that the chatbot provides timely and relevant information, enhancing user experience.
2. Dynamic response generation  
  • Instead of static responses, webhooks enable the chatbot to deliver personalized and dynamic responses based on external data.

Idea
A chatbot in E-commerce could fetch the latest order status or shipping details dynamically.

3. Handling complex requests  
  • Some user queries may require complex actions, like triggering workflows in other systems.
Idea
For example, sending an email, creating a ticket, or retrieving user-specific data.
  • Webhooks enable the chatbot to handle these requests efficiently by calling external services and returning results.
4. Scalability  
  • Chatbots integrated with webhooks can scale more easily and would not require to store or process any data.  
  • Webhooks allow chatbots to interact with multiple platforms by syncing with external systems, ensuring consistency across all platforms.
5. Automating business processes  
  • Chatbots using webhooks can automate repetitive tasks, such as updating CRM records, sending notifications, or processing payments, making business operations more efficient.
6. Speedy responses
  • By using webhooks, chatbots can instantly communicate with third-party services, reducing the delay in response time and improving the overall speed of interactions.
7. Improved error handling  
  • In case of errors or system down times, webhooks provide detailed and precise error responses that allow the chatbot to handle exceptions with ease. For example, showing an error message or retrying the request.
8. Managing event-driven triggers  
  • Webhooks can be used to trigger specific actions in response to real-time events.
Idea
For example, user purchases and form submission.
  • This allows the chatbot to stay proactive, sending alerts or updating information as soon as new events happen.  

Business scenario  

Imagine John is visiting the Zylker website to request a zPad replacement because his screen is broken. Since he's already bought a Zylker product, the Webhook block will try to find his name or email in their database using API calls. If John is already a contact in their system, the bot will create a ticket for him and send the ticket ID as confirmation. If he's not in their system, the bot will create a new contact for John and then generate a ticket ID. The webhook block helps by checking if John is an existing customer and, if so, retrieving his details to make ticket creation easier. 

Steps to add a webhook block

1. Navigate to Setup > Self Service > Guided Conversations.
2. Select the Flow in which you want to add the Webhook block.
3. On the Guided Conversations builder, click the Add Block icon ( ).
The Add Block panel will appear on the right.
4. On this panel, click Action Cards and select Webhook.

5. In the Webhook block panel that appears, enter the following details:
                a) Block name: Enter a name for the block. For example, 'Fetch Contact.'
Notes
If you input the name of a block that already exists, the following error message will appear.
                 b) Method: Choose an API call method from the list.
List of methods:
  1. Get: Fetches resources from existing contacts.
  2. Patch: Makes partial changes to be applied to an existing resource.
  3. Post: Creates or updates an existing resource.
  4. Put: Modifies a singular resource which is already a part of resources.
  5. Delete: Deletes an existing resource.
After this API is executed, the URL in the webhook stops receiving event information.

                c) Enter the REST API URL of the third-party application in the URL to notify the field.

1. In the Query Params field, click and enter the parameters to sort or filter the resources criteria. For example: @email
2. When you choose an API call, you must enter the header, which is the organization ID or the portal ID. This has to be passed as the Header value.
The API call will then perform its action from this portal ID.


3. In the Body section, select JSON or File Upload to add fields or upload files, respectively.
  1. Do the following if you choose JSON:
                  a. Mandatory variables: Add the ones marked as mandatory in the API document. These are the fields that are available in the third-party or Zoho Services portal and those that need to be mapped by the GC component. To enter a variable value, you must enter a variable and type @, and then choose a variable from the pick-list
                  b. Custom fields: Include any custom field available in the third-party or Zoho Services portal to the Body section, if required.
  1. Do the following if you choose File Upload:
                 c. Enter the Key and the Value for the file to be uploaded.
4. Click Save.
5. Choose one of the following to create a Connection with the Desk portal.
  1. Pick Your Service: To create a connection from existing services
  2. Custom Service: To choose to create a completely new connection
Notes
Points to note on request body parameters:
  1. The option to send data via the request's body is unavailable for GET requests.

  2. It is important that the value you declare in the body section be the information that you get from the user. Otherwise, you must define a starting value for the variable in the body section. The @ symbol for a variable indicates that the information is retrieved from the user via chatbot, which means a block for that variable is created in the GC.
  3. All other values in orange are static values, which you are not going to retrieve from the user. These values indicate that you are directly going to pass these values to be posted as the actual values for the particular fields or variables.

Pick your Service  

To create a connection from existing services, perform the following steps:

1. Refer to steps 1 through 9 under Adding a webhook block and continue from there.
2. Click the Add button besides the Connections label.
    The DRE page will open on a new tab.
3. Under Pick Your Service, choose from the already available third-party services with Zoho, or you can choose one of Zoho services itself.
4. Enter a name for the connection and the connection link.
Notes
You may need to choose the scopes applicable to the service when prompted.
5. Click Create and Connect.
6. Click Accept to allow your organization/portal to connect with the workflow.
The connection summary page will display, as shown below:


7. In the Connections section of the Webhook Block panel, click Refresh to populate the connection name in the drop-down list.
8. From the Pick Your Service drop-down list, select the connection name.
9. In the Response section, click Status Code and do the following:
  1. Enter the expected status code, which you can get from the API document.
    The variable corresponding to the status code will be auto- generated.
  2. Enter the response value field, which includes the bot variable, response value, type, and data type.
  3. Click the Plus icon ( ) to add additional bot variables, if necessary.
  4. Click Save.
    Click Add New Response to add another status code and their corresponding bot variables.
10. Set a time for Request Timeout. Default time out is 8 seconds.
11. Click Save on the webhook block.
12. Click Save Draft on the flow to save your settings.
13. Click the Preview button to check if the flow is working.
NotesYou can copy or delete the webhook block by clicking the respective button on the upper-right side of the block. 

Custom Service 

To create a completely new connection, perform the following steps:
1. Refer to steps 1 through 9 under Adding a webhook block and continue from there.
2. Click the Add button next to the Connections label.
The DRE page will open in a new tab.
3. Choose the Custom Service tab.

4. In the Custom Connection page, enter the following service details:
    • Service Name
    • Service Link Name
    • Authentication Type - Choose the authentication type that you want to establish with the connection
    • Param Type
    • Connection Name
    • Connection Link Name
5. Click Create and Connect.
6. Click Accept to allow your organization/portal to connect with the workflow.
    The connection summary page will display.
7. In the "Connections" section of the Webhook Block panel, click Refresh to populate the connection name in the drop-down list.
8. From the Pick Your Service drop-down list, select the connection name.
9. In the "Response section", click Status Code and do the following:
  1. Enter the expected status code, which you can get from the API document.
    The variable corresponding to the status code will be auto- generated.
  2. Enter the response value field, which includes the bot variableresponse valuetype, and data type.
  3. Click the Plus icon (  ) to add additional bot variables, if necessary.
  4. Click Save.
  5. Click Add New Response to add another status code and their corresponding bot variables.
10. Set a time for Request Timeout. Default time out is 8 seconds.
11. Click Save on the webhook block.
12. Click Save Draft on the flow to save your settings.
13. Click the Preview button to check if the flow is working. 

Steps to edit a webhook block  

You can edit a webhook 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 Webhook 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.


Notes
To be noted while editing a webhook 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 webhook 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 Webhook 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 will appear on the block listing section and be stated as From Clipboard.
4. Make any required edits, then click Paste.
 
Notes
To be noted while copying a webhook block:
  1. The copied webhook 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 webhook 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 a webhook block 

1. Open the flow and click Edit.


2. Click the Webhook block, which you may have named differently.
3. Select Delete Block from the displayed options.
 
4. Click Yes, Delete it to confirm.
Info
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.
Notes
To be noted while deleting a webhook block: 
  1. If you delete a webhook 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.
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:
 
 

Supported channels     

The webhook block is supported in the following channels:
Notes
 If you exceed the limit of 500 blocks in a flow, you have a couple of options to continue building the flow:
  1. You can create a new flow and use a jump block to connect both flows.
  2. You can also remove any unnecessary blocks or paths to free up space within the existing flow.

    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 Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          Offline Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal

                          Form Designer HR

                          Card Forms Food
                          Assign Forms Photography

                          Translate Forms Real Estate
                          Electronic Forms

                          Notification Emails for Forms Alternatives
                          Holiday Forms Google Forms alternative 
                          Form to PDF Jotform alternative





                                            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

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