Uncanny Automator Pro supports both incoming webhooks specifically for OptinMonster, facilitating an easy way to pass lead data to your favourite plugins and apps.
Create an Uncanny Automator recipe
To use the OptinMonster webhook trigger, you’ll need to create a Recipe for Everyone, since a webhook can be passed anonymously and the trigger does not require that a user is signed in.
After selecting OptinMonster as the integration and the Receive data from OptinMonster webhook as the trigger, the recipe will populate with the trigger details. The trigger provides a webhook URL for you to copy and paste in OptinMonster to allow lead data to be passed into WordPress.
Configure the OptinMonster Webhook integration
Over on the OptinMonster side, we’ll need to start by setting up the webhook integration to the Automator recipe. After signing into your OptinMonster account, click your account name on the Campaign Dashboard (in the top right) and choose Integrations from the menu.
In the list of integrations, look for the Webhook option and click Add. Your page will look like this:
Add an account name first. Keep in mind that you will need to set up a webhook like this for every recipe you have that uses an OptinMonster webhook, so make sure the name is specific and descriptive.
In the Webhook URL field, paste in the webhook URL that was generated in the recipe above inside Uncanny Automator. Once that’s pasted, click the Get Samples back in your Uncanny Automator recipe trigger. Switch back to OptinMonster and click the Connect to Webhook button. If the webhook test is successful, Automator will show sample data and OptinMonster will add the webhook integration so that it’s available in your campaigns.
Set up the Automator trigger
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 webhook, organized into key/value pairs:
Now that you have sample data from OptinMonster, you can click Use these fields to populate the expect fields in the trigger. If everything looks good, you can go ahead and click Save for the recipe. This will make the trigger live.
Add the Webhook to a campaign
Now that the webhook integration has been set up, it’s time create or edit a campaign in OptinMonster. Inside the campaign builder, look for the Integrations menu at the top of the page and click it.
On the left side of the page, click the Add New Integration button. Choose Webhook as the Email Provider and choose the specific webhook name you used earlier in the Email Provider Account drop-down list. Click Connect to Webhook.
No other settings are needed, but you can review Lead Options in case you want to make any changes.
Now that everything is set up on the OptinMonster side and the recipe has the trigger set up, go ahead and add your actions, then you can take the recipe live and start testing.