Skip to content

IFTTT actions

The Send data to IFTTT webhook action passes data from a recipe to IFTTT, where it starts an applet. IFTTT’s webhook setup has more steps than most webhook-based integrations, so follow the three parts below in order: get the webhook details from IFTTT, create the applet, then build the recipe. For the other direction, starting a recipe from IFTTT, see IFTTT triggers.

The action is in the free plugin, and no account connection is needed inside Uncanny Automator; the two sides are linked by the webhook URL.

Set up an IFTTT webhook

  1. Sign in to your IFTTT account. In the Explore section, search for and select Webhooks.
  2. Click the Documentation link to see your webhook details.

The IFTTT Webhooks service page with the Documentation link

  1. Near the top of the Trigger an Event section, click the {event} field and enter a recognisable event name using only letters and underscores, such as new_order.
  2. The URL near the bottom of the section updates to the form https://maker.ifttt.com/trigger/{event}/with/key/{YOUR_IFTTT_KEY}, with your event name and key filled in. Copy it; this is the URL the recipe sends to, and the event name in it is what the applet listens for.

Create an applet

  1. Return to the IFTTT homepage and click Create.
  2. In the If This box, click Add.
  3. Search for and choose Webhooks as the service, then Receive a web request.
  4. In Event Name, enter the same event name you used above.

The IFTTT Receive a web request trigger with the Event Name field filled in

  1. Click Create trigger, then add your Then That actions to the applet.

Create the Automator recipe

  1. Open the recipe at Automator > Recipes, or create one from Automator > Add new recipe, and add its trigger; see Creating a recipe.
  2. Click the + at the end of the flow. In the picker, type IFTTT in the search box and select IFTTT, then Send data to IFTTT webhook.
  3. In the Set up step, paste the URL you copied from IFTTT into URL.
  4. Check the Request method. The field opens on POST, which is what IFTTT needs: it reads the values for your applet from the body of the request. With POST, a Data format field is shown, set to JSON; keep it unless IFTTT tells you otherwise (the other choice is x-www-form-urlencoded).
  5. Leave Authorization empty, and keep the Headers row the action adds (Accept, application/json) as it is. The key in the IFTTT URL identifies your account, so IFTTT needs no credentials in the request header. If IFTTT ever asks for a header, click Add header and enter its Name and Value.
  6. In Body, click Add pair for each piece of data to send. Key is the label IFTTT will see, Data type is the kind of value (Text suits names, email addresses and dates), and Value is the data. IFTTT’s webhook trigger exposes three standard ingredients, so use value1, value2, and value3 as the keys to pass data straight into the applet. For dynamic data, click the ∗ button at the end of the Value field and pick a token: common tokens such as the user’s first name are available in every recipe, and trigger tokens such as a course title come from the recipe’s triggers. The token appears in the field as a labelled chip, such as User first name.

The Set up step of the Send data to IFTTT webhook action with a maker.ifttt.com URL, Request method POST, Data format JSON, empty Authorization and Headers, and Body rows value1, value2 and value3 holding the User first name, User email and User registered date tokens

To send nested data, write the key as a path with a forward slash between the levels, for example order/total, and keep Data format set to JSON.

  1. Click Test. The Test step offers two tests: Validate data format, which shows the exact payload the action will send without sending it, and Send webhook, which sends a real request to IFTTT. Run Send webhook; when IFTTT accepts the request, the test shows Test passed. Token values are not replaced during a test, so the placeholders arrive in IFTTT as written. See Testing triggers and actions.
  2. Click Save changes. To skip the test, click Save without testing instead; the action still runs normally.
  3. Make sure the action and the trigger are On, then switch Recipe on in the top bar.

The recipe now sends a request to IFTTT each time its triggers complete, and the applet runs with the values you passed.

Related: IFTTT triggers, Send data to a webhook, Testing triggers and actions

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top