skip to Main Content

Webhook Triggers

Uncanny Automator Pro supports both incoming webhooks and outgoing webhooks, giving your WordPress site a powerful tool for interfacing with external systems.

To use webhook triggers, you’ll need to create an Anonymous recipe, since a webhook is an anonymous incoming request that’s not triggered by a logged-in user.

There are different webhook triggers, but they all behave the same way.  For this example, we’ll use the WordPress > Receive data from webhook trigger.

The trigger provides a webhook URL for you to copy and paste in to the software or service that will be sending the webhook to your WordPress site.  Each webhook URL is specific to a recipe, and will trigger the actions of that recipe.

The data in a webhook is organized into key/value pairs.  The key describes what the value is.  Here’s an example of data you might receive from a webook, organized into key/value pairs:

Key Value
first_name Ken
last_name Smith
username kensmith

This example data could represent a user you want to create (or update) on your WordPress website.  If you know the keys your webhook will be sending, you can manually enter the webhook keys and value types:

Or, if the software or service you are using support sending a test webhook, you can use the “Get samples” button to automatically listen for an incoming webhook and set the keys automatically. (Note: You will still need to manually set the “Value type” for keys retrieved in this way.  The ability to automatically detect the value type is coming in a future release.)  If a webhook is received at the webhook URL within 60 seconds, you’ll see a dialog that shows the data received, and clicking Use these fields will add them to the trigger:

To create this user, you would set the Recipe to create a new user using the data from the webhook, then perform any desired Actions on the user.  You could also set the Recipe to select an existing user that matches that data, and perform the Actions on them instead.  See Anonymous recipes for more information.

Back To Top