Webhooks are end points that are used to connect two different applications or end points. When a trigger is initiated via webhook, data is captured about that event and sent via a webhook URL from the application.
Workflows can be triggered via webhook using the following steps.
For example: Let’s see how we can create a webhook trigger for creating a ticket in ‘Freshservice’ application.
1. Click on ‘Create New’ under Workflow Builder homepage.
2. Click on ‘Create New’ and then name your workflow along with description.
3. Select ‘Webhook’ from the pop-up box.
4. Name your webhook on the ‘Name your webhook’ field and choose your ‘Authentication’ field.
5. Choose the type of authentication from ‘Authentication’ field. Admins can either choose the authentication between Basic or None.
Note: If the admin selects Basic, then admins have to provide Username and Password. If admins select ‘none’, webhooks will be executed by anyone without providing any authentication details.
6. Choose the condition you would want to execute (Post, Get) from the dropdown box.
7. Provide the input fields required to create a workflow (in this scenario, add the input fields required to create a ticket in Freshservice)
There are 3 different ‘Data Types’ available while creating an input field.
a. String- This input field accepts any characters (Number and Letters)
b. Number – This input fields accepts only numbers
c. Boolean – This input fields accepts True or False conditions
Once you have created all the input fields. Click on ‘Save’.
8. Click on ‘Add Action’ and choose the application from the List. (let’s select Freshservice)
9. Connect your application account and then Map the fields from the ‘Variable Picker box’ and click on ‘Save’.
10. Now, your webhook trigger for application (Freshservice) is complete. Admins can either test the trigger using the ‘Run’ function on top of the screen or deploy the workflow action using the ‘Deploy’ function on top right corner of the screen.
11. Once the automation is deployed, you need to activate the workflow using the activate button the workflow card on the homepage.
12. As the Webhook trigger is activated. Use the URL generated from Step -1 of the workflow action to call this webhook from a different application.
For example calls workflows automations in Workativ Automate from IBM Watson: Learn how to call a webhook in IBM Watson