Configure and assign webhook [example]
Follow our setup guide to configuring and assigning a webhook to a process in PROCESIO. 🎉
Read on for a hands-on example on webhook configuration in PROCESIO and how to assign it to a process. For the purpose of this example, we will be using Postman to mimic an event and send data from another platform to PROCESIO.
To configure your webhook, go to Automation section, then switch to Webhooks tab.
If you have not added a webhook already, click Create webhook.
1. Give the webhook a name.
2. Copy the unique URL
3. Go to Postman and paste the webhook URL (generated by PROCESIO)
4. Select POST verb
For the purpose of this article, we will send over a simple JSON object:
Once you’ve entered your JSON object you can click the blue “Send” button to send a POST request to the PROCESIO webhook.
After you send the example webhook, you should see a success message (200 OK).
In the meantime, the JSON object was passed and received in PROCESIO and you can see the data structure was determined correctly:
Press Save to save your webhook.
Each webhook can be configured with one or more event types. Press "Listen for another event" to add up attributes from other events to the data structure.
The webhook created can now be assigned to a process.
- 1. Go to Process Designer.
2. Select a process you want to trigger when data is received.
3. Open process.
4. Go to Webhooks
5. In Assign Webhook panel, select the webhook created, to trigger this process
6. A local variable is automatically created based on the data structure received in webhook.
7. You can use attributes in data structure to filter the data sets that will trigger your process.
Based on the example below, only data sets where age > 25 will trigger the process:
Save the configuration.
You are now all set. Congrats! 🎉
Sending data to PROCESIO to this unique webhook URL will automatically start the process.