# IFTTT

> Run your IFTTT applets from a workflow by firing a Webhooks event, with up to three values or any JSON object.

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/ifttt

## Actions

### Trigger an applet

Fire a Webhooks event with up to three values, which runs every applet whose trigger is Webhooks' Receive a web request for that event name. The applet reads the values as Value1 to Value3.

**Inputs**

- Event name (`event_name`, text, required): The event name in your applet's Webhooks trigger, exactly as typed there, such as front_door_opened. Every applet listening for it runs.
- Value 1 (`value1`, text): Text the applet can use as its Value1 ingredient. Left out when blank.
- Value 2 (`value2`, text): Text the applet can use as its Value2 ingredient. Left out when blank.
- Value 3 (`value3`, text): Text the applet can use as its Value3 ingredient. Left out when blank.

**Outputs**

- `event_name` (text): The event fired
- `message` (text): IFTTT's answer, such as "Congratulations! You've fired the front_door_opened event". It comes whether or not an applet listens.
- `sent` (object): The values sent, value1 to value3

**Example output**

```json
{
  "event_name": "front_door_opened",
  "message": "Congratulations! You've fired the front_door_opened event",
  "sent": {
    "value1": "Front door",
    "value2": "opened",
    "value3": "8:02"
  }
}
```

### Trigger an applet with JSON

Fire a Webhooks event with any JSON object, which runs every applet whose trigger is Webhooks' Receive a web request with a JSON payload for that event name. The applet reads it in its filter code.

**Inputs**

- Event name (`event_name`, text, required): The event name in your applet's Webhooks trigger, exactly as typed there, such as front_door_opened. Every applet listening for it runs.
- JSON payload (`payload`, object, required): A JSON object to send, such as {"temperature": 21, "room": "kitchen"}, or an object from an earlier step.

**Outputs**

- `event_name` (text): The event fired
- `message` (text): IFTTT's answer, such as "Congratulations! You've fired the front_door_opened event". It comes whether or not an applet listens.
- `sent` (object): The JSON object sent

**Example output**

```json
{
  "event_name": "front_door_opened",
  "message": "Congratulations! You've fired the front_door_opened event",
  "sent": {
    "room": "kitchen",
    "temperature": 21
  }
}
```
