18min

Webhooks | Incoming

What are incoming webhooks?

Webhooks are user-defined HTTP callbacks. They are automated messages sent from external systems to PROCESIO when something happens in the external platform. Webhooks have messages (called payload) and are sent to a unique URL in PROCESIO.

Webhooks can be used to receive data from external apps and services when an event occurs. Also, webhooks can be used as triggers for process flows when we want to receive data and use it to kick off a process based on the data received. This allows several different services to connect to PROCESIO and run a process when data is received.

Please keep the webhook URLs private. They can be accessed directly by anyone having the link.

Creating a webhook

From the menu, go to Automation โ†’ Webhooks tab. By pressing Create webhook, the configuration side panel will open and you will see the following:

Document image

1. Webhook Name - this field is mandatory and it has a limit of max length 32 characters.

Webhook names must be unique.

2. Webhook URL - generated by default when opening a new webhook configuration panel, this is the webhook URL that users must provide to the external platform when configuring the webhook there.

To set up your webhook, there are 2 options:

  • start listening and send an example data set to the unique URL from third-party services; the data model will be automatically created;

  • manually add the payload to generate the data model.

Document image

Listening for data

Step 1: Copy the unique webhook URL and paste it in the webhook configuration in the external service/app;

Step 2: Press Start listening. PROCESIO is now listening for the webhook data in order to determine the data structure automatically;

Once you start listening, you will see this page until data is received or until the timer ends, if no data is received.

Document image

Step 3: Generate an event in the external service/app that will call the webhook, like updating a record, creating a ticket etc.

Step 4: Once the data is received, you will be able to see the tree structure of the created data model, collapse & expand attributes or search within the structure.

Document image

๏ปฟ

โ€œListen for another eventโ€ will trigger the loading state again. You can generate in the meantime another event from the other platform. If the data structure of the event received is different, the attributes are merged and duplicates removed. The data structure is updated, growing incrementally.

Adding manually the payload

If you choose to manually define the webhook payload, you will see the following screen, where you can add your structure and generate the data model.

Document image

The payload structure is taken from the external platformโ€™s webhook documentation.

Editing a webhook

You can edit an existing webhook by selecting the option from the contextual menu, but please be aware that you can only edit the webhook in the same way it was created.

Document image

If the webhook was originally created by listening for data, it can only be updated by listening for another event.

Document image

If the webhook was originally created by manually adding a payload, it can only be updated by manually manipulating the payload and regenerating the data model.

Document image

Deleting a webhook

You can delete an existing webhook by selecting the option from the contextual menu, but please be aware you can only delete a webhook that is not used in a process.

Document image

To delete a webhook, please remove it first from any processes that might be using it.

Assigning a webhook

To trigger a process with webhooks, please go to Process Designer and select the process to be triggered.

From the top bar, open up the webhooks panel.

Document image
Document image

You can select one webhook to kick off a process. Once you select a webhook from the dropdown list, it will populate the:

  • local variable name
  • webhook data model

(Optional) Filter Rulesย allow you to filter or apply conditions on the data set that will be triggering the process.

Document image

Here's an example. Letโ€™s say you have an event โ€œissue updatedโ€ that happens in Jira and the payload of a ticket is sent to PROCESIO. If there are no filter rules applied, all event payloads for โ€œissue updatedโ€ will trigger your process, no matter what property has changed.ย 

But you may want only payloads with name.old != name.new to be relevant, not all tickets that suffered an update within the Description. By using the complex condition builder, you can build a rule by creating conditions that use the attributes of the data model generated when saving the payload of the event.ย 

You can add unlimited rules and if the conditions are met, the process will be launched.

Unassigning a webhook

To remove a webhook from a process, please open up the "Assign webhook" panel and, from the "Select webhook" field, remove the assigned webhook to clear the input.

Document image

๏ปฟ

๏ปฟ

๏ปฟ