skip to Main Content

IFTTT

Sending records from WordPress to IFTTT to trigger applets requires a few steps to get started. This one is less intuitive than other webhook-based integrations, so make sure to follow the instructions below carefully.

Set up an IFTTT webhook

To begin, make sure you have an IFTTT account. Then you’ll want to start by getting the webhook details you can use inside Automator and an IFTTT applet.

  1. After signing into your IFTTT account, visit the homepage. In the Explore section, search for and select Webhooks.
  2. Click the Documentation link to see your webhook details.
  3. You will now see a URL near the top of the Trigger an Event section with a clickable {event} field.
  4. Enter an identifiable event name here using only letters and underscores, like “new_order”.
  5. This will populate a URL near the bottom of the section that looks like https://maker.ifttt.com/trigger/{event}/with/key/{YOUR_IFTTT_KEY}. This is the webhook we will use in Automator later and it includes the event (“new_order” here) that will be used in the applet.

Create an Applet

Now that we have defined an event name and have the webhook URL, it’s time to create an applet.

  1. After returning to the IFTTT homepage, create a new applet by clicking the Create button at the top of the IFTTT page.
  2. In the If This box, click the Add button.
  3. Search for and choose Webhooks as the service.
  4. Choose Receive a web request.
  5. In the Event Name field, enter the name that matches the event name you set up in the section above.IFTTT Event Name
  6. Click Create trigger to finish setting up the trigger.
  7. You can now proceed to ad your Then That actions to the applet.

Create an Automator Recipe

Create your Automator recipe next:

  1. Create your new Automator recipe and add IFTTT as an action. Choose Send data to IFTTT webhook.
  2. Click the webhook box in the action to set the webhook parameters.
  3. In the URL field, paste the URL you copied over from IFTTT in the first section. This goes in the top field in the screenshot below.
  4. If you know what Request method IFTTT requires, select it from the dropdown. Otherwise, leave this as default (POST).
  5. If you know what Data format your receiving service requires, select it from the dropdown. Otherwise, leave this as default (JSON).
  6. If you know what Headers IFTTT requires, add them as Key and Value pairs. Otherwise, leave this as default.
  7. If you want to pass data from WordPress to IFTTT, enter the Key and Value fields in the Body section. Think of a Key as a label for the value.
    1. Enter a text label in the Key field first.  By default, IFTTT provides three standard fields. You can directly pass the data by entering value1, value2, and value3 as the “Keys” in your body along with the values as shown in the screenshot above.
    2. 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.
  8. If you want to pass nested data from WordPress to IFTTT, enter Keys as a parent/child pair, separated by forward-slash / in the Body section. Please ensure that the Data format is set to JSON.
  9. If you want to preview your outgoing data, click Check data format.
  10. If you want to send a test webhook to IFTTT, click Send test.
  11. 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.

And that’s it! You now have a recipe that triggers an action in IFTTT.

Back To Top