An Integromat action in Uncanny Automator usually acts as a trigger for a Scenario.
Create a Scenario Trigger
You need to have an Integromat account to start with.
- On your dashboard, start by clicking + Create a new Scenario button.
- On the next screen, you’ll be prompted to select services. Search and locate Webhooks as a service:
- You may or may not select other services for your scenario at this point. On the scenario editor, click the Webhooks service to display a list of triggers and actions available for Webhooks:
- Select the Custom webhook trigger to reveal a form to select a webhook:
- . Click the Add button to reveal another form that allows adding a new webhook. Give it a sensible name:
- Hit Save to reveal a panel that generates a unique URL for this webhook trigger. Copy this URL for use inside your Automator recipe:
- You don’t have to set up any special data structures because Integromat will gather this information from whatever you set up in the Automator recipe in the next step. However, you can go ahead and set up specific structures if you need to. See more: https://support.integromat.com/hc/en-us/articles/360006249313-Webhooks
Connect Recipe Action with Scenario
- In your recipe, select Integromat under actions and select Send data to Integromat webhook.
- Click the webhook box in the action to set the webhook parameters.
- In the URL field, paste the URL you copied over from Integromat. This goes in the top field in the screenshot below.
- If you know what Request method Integromat requires, select it from the dropdown. Otherwise, leave this as default (POST).
- If you know what Data format Integromat requires, select it from the dropdown. Otherwise, leave this as default (JSON).
- If you know what Headers Integromat requires, add them as Key and Value pairs. Otherwise, leave this as default.
- If you want to pass data from WordPress to Integromat, enter match Key and Value fields in the Body section. Think of a Key as a label for the value.
- Enter a text label in the Key field first.
- For Values, you will probably want to pass in dynamic data related to the user and WordPress environment. To choose variables, click the * symbol to the right of the value. You’ll see drop-down lists for common tokens as well as tokens related to the triggers in the recipe. An example of a common token is the user’s name, as it can be used in any recipe; a recipe token might be the name of a course associated with a course completion trigger. Choose a token to include by clicking it. You’ll see something like “{{user_firstname}}”. Make sure that you do not make any changes to the token format.
- If you want to pass nested data from WordPress to Integromat, enter Keys as a parent/child pair, separated by forward-slash / in the Body section. Ensure your Data format is set to JSON.
- If you want to preview your outgoing data, click Check data format.
- If you want to send a test webhook to Integromat, click Send test.
- Save the action. Now switch the action from Draft to Live. Don’t forget to set your triggers and the recipe to live as well.
That’s it. With these instructions, you should be able to connect your Automator Recipe to an Integromat Scenario such that triggers in the recipe set off scenarios in Integromat. Happy automation!