|
1 | 1 | --- |
2 | 2 | title: IFTTT integration |
3 | | -description: Connect Apify Actors with IFTTT to automate workflows using actor run events, data queries, and task actions. |
| 3 | +description: Connect Apify Actors with IFTTT to automate workflows using Actor run events, data queries, and task actions. |
4 | 4 | sidebar_label: IFTTT |
5 | 5 | sidebar_position: 6 |
6 | 6 | slug: /integrations/ifttt |
7 | 7 | --- |
8 | 8 |
|
9 | | -**Learn how to integrate your Apify Actors in IFTTT Applets.** |
10 | | - |
11 | | -This guide explains how to use the Apify integration in IFTTT to build automations (Applets) triggered by actor or task runs and start new runs automatically. |
12 | | - |
13 | | -An Applet is built from three key parts: a trigger that kicks off the workflow, optional queries that fetch the data, and one or more actions that execute when the Applet runs. |
| 9 | +**Connect Apify Actors with IFTTT to automate workflows using Actor run events, data queries, and task actions.** |
14 | 10 |
|
15 | 11 | --- |
16 | 12 |
|
17 | | -With [Apify integration for IFTTT](https://ifttt.com/apify), you can connect your Apify Actors to hundreds of services like Twitter, Gmail, Google Sheets, Slack, and more. |
18 | | - |
19 | | -Your Applets can start Apify Actors or tasks, fetch items from a dataset and get records from key-value stores. |
20 | | - |
21 | | -## Connect Apify with IFTTT |
22 | | - |
23 | | -To use the Apify integration on IFTTT, you will need to: |
24 | | - |
25 | | -- Have an [Apify account](https://console.apify.com/). |
26 | | -- Have an [IFTTT account](https://ifttt.com/). |
27 | | - |
28 | | -To connect to Apify service: |
29 | | - |
30 | | -- visit [Apify service page](https://ifttt.com/apify) |
31 | | -- click "Connect" button |
32 | | -- you will be redirected to the Apify login page |
33 | | -- login to your Apify console |
34 | | - |
35 | | - |
36 | | - |
37 | | -### Step 1: Create an Applet with Apify service |
38 | | - |
39 | | -To create an Applet, go to the [Explore](https://ifttt.com/explore) section and find the "Create" button. |
40 | | - |
41 | | -In the create Applet form, you can choose whether you want to use Apify as the trigger or action. |
42 | | - |
43 | | -Click on "Add" button in "If This" part of the applet and find Apify using the search box. |
| 13 | +[IFTTT](https://ifttt.com) is a service that helps you create automated workflows called Applets. With the [Apify integration for IFTTT](https://ifttt.com/apify), you can connect your Apify Actors to hundreds of services like Twitter, Gmail, Google Sheets, Slack, and more. |
44 | 14 |
|
45 | | - |
| 15 | +This guide shows you how to integrate Apify Actors with IFTTT to build automated workflows. You'll learn how to create IFTTT Applets that can be triggered by Apify events or that can execute Apify tasks. |
46 | 16 |
|
47 | | -Then select which trigger you want to use. |
| 17 | +An IFTTT Applet consists of three key parts: |
| 18 | +- A _trigger_ that starts the workflow |
| 19 | +- Optional _queries_ that retrieve data |
| 20 | +- One or more _actions_ that execute when the Applet runs |
48 | 21 |
|
49 | | - |
| 22 | +The Apify integration lets you trigger workflows when an Actor or task run finishes, start Actor or task runs from other triggers, or retrieve data from datasets and key-value stores. |
50 | 23 |
|
51 | | -In case you didn't connect to the Apify account, you will be prompted to do so when you select a trigger. |
52 | | - |
53 | | -### Step 2: Set up your Apify action in an Applet |
| 24 | +## Prerequisites |
54 | 25 |
|
55 | | -You are able to use any action to follow your Apify trigger. For example, you can use Gmail to send an email about a finished Actor run. |
| 26 | +Before using the Apify integration with IFTTT, you need: |
56 | 27 |
|
57 | | -In this guide we'll show you how to use Apify as an action to start an Actor run. |
| 28 | +- An [Apify account](https://console.apify.com/) |
| 29 | +- An [IFTTT account](https://ifttt.com/) |
58 | 30 |
|
59 | | -After you select Apify as an action in the "Then That" part of the applet, you need to select the action you want to use. Let's use the "Run Actor" action for this example. |
| 31 | +## Connect Apify with IFTTT |
60 | 32 |
|
61 | | - |
| 33 | +To connect your Apify account to IFTTT: |
| 34 | +1. Visit the [Apify service page](https://ifttt.com/apify) on IFTTT. |
| 35 | +2. Click the **Connect** button. |
| 36 | +3. When redirected to the Apify login page, sign in to your Apify account. |
62 | 37 |
|
63 | | -In the next step, you need to select the Actor you want to use. You can choose one by selecting it from the dropdown. You can choose between your recently used Actors and Actors from the store. IFTTT only displays up to 50 items in a dropdown at a time. If the actor or item you're looking for doesn't show up, it's not necessarily missing — it just might not be in the top 50 results yet. |
| 38 | + |
64 | 39 |
|
65 | | ->To make an Actor appear in the dropdown, try using it at least once via API or in the console. |
| 40 | +## Create an Applet with Apify |
66 | 41 |
|
67 | | -We will use the Google Search Results Scraper Actor in this example. |
| 42 | +### Create an Applet |
68 | 43 |
|
69 | | - |
| 44 | +To create an Applet that starts when Apify event occurs: |
70 | 45 |
|
71 | | -You can customize how the Actor runs by filling out the following parameters: |
| 46 | +1. Go to the [Explore](https://ifttt.com/explore) section on IFTTT. |
| 47 | +1. Click the **Create** button. |
| 48 | +1. In the **If this** section, click **Add**. |
| 49 | +1. Search for and select **Apify** in the service list. |
72 | 50 |
|
73 | | -| Field | Description | Example Values | |
74 | | -| ------------- | --------------------------------------------------------------------------- | ------------------------- | |
75 | | -| `Wait until run finishes` | Defines how the actor should be executed. | `yes`, `no` | |
76 | | -| `Input overrides` | JSON input that will override actor's default input. | `{"key": "value"}` | |
77 | | -| `Build` | Specifies the Actor build to run. Can be build tag or build number. | `0.2.10`, `version-0` | |
78 | | -| `Memory` | Memory limit for the run in megabytes. | `256mb` | |
| 51 | +  |
79 | 52 |
|
80 | | -Once you're happy with the Actor customization, continue by pressing "Create action" button. |
| 53 | +1. Select a trigger from the available options: |
| 54 | + - **Actor Run Finished**: Triggers when a selected Actor run completes |
| 55 | + - **Task Run Finished**: Triggers when a selected Actor task run completes |
81 | 56 |
|
82 | | - |
| 57 | +  |
83 | 58 |
|
84 | | -Once the applet is created, wait for you trigger to run and inspect the results by pressing the "View activity" button in the Applet overview page. |
| 59 | +1. Configure the trigger by selecting the specif Actor or task. |
| 60 | +1. Click **Create trigger** to continue. |
85 | 61 |
|
86 | | - |
| 62 | +In case you didn't connect to the Apify account, you will be prompted to do so when you select a trigger. |
87 | 63 |
|
88 | | -## Triggers |
| 64 | +### Set up an Apify Action |
89 | 65 |
|
90 | | -### Actor Run Finished |
| 66 | +To use Apify as an action in your Applet: |
91 | 67 |
|
92 | | -> Triggers when a selected Actor run is finished. |
| 68 | +1. In the **Then That** section of your Applet, click **Add**. |
| 69 | +1. Search for and select **Apify**. |
| 70 | +1. Choose an action: |
| 71 | + - **Run Actor**: Starts an Actor run |
| 72 | + - **Run Task**: Starts an Actor Task run |
| 73 | + |
| 74 | +  |
| 75 | + |
| 76 | +1. Select the Actor or task you want to use from the dropdown menu. |
| 77 | + :::note |
| 78 | + |
| 79 | + IFTTT displays up to 50 recent items in a dropdown. If your Actor or task isn't visible, try using it at least once via API or in the Apify Console to make it appear in the list. |
| 80 | + |
| 81 | + ::: |
| 82 | + |
| 83 | +  |
| 84 | + |
| 85 | +1. Configure the action parameters: |
93 | 86 |
|
94 | | -### Task Run Finished |
| 87 | + | Parameter | Description | Example Values | |
| 88 | + |-----------|-------------|----------------| |
| 89 | + | **Wait until run finishes** | Defines how the Actor should be executed. | `yes`, `no` | |
| 90 | + | **Input overrides** | JSON input that overrides the Actor's default input. | `{"key": "value"}` | |
| 91 | + | **Build** | Specifies the Actor build to run. Can be a build tag or build number. See [Builds](/platform/actors/running/runs-and-builds#builds) for more information. | `0.2.10`, `version-0` | |
| 92 | + | **Memory** | Memory limit for the run in megabytes. See [Memory](/platform/actors/running/usage-and-resources#memory) for more information. | `256` | |
| 93 | + |
| 94 | +1. Click **Create action** to finish setting up the action. |
95 | 95 |
|
96 | | -> Triggers when a selected Actor task run is finished. |
| 96 | +  |
97 | 97 |
|
98 | | -## Actions |
| 98 | +1. Give your Applet a name and click **Finish** to save it. |
99 | 99 |
|
100 | | -### Run Actor |
| 100 | +## Monitor your Applet |
101 | 101 |
|
102 | | -> Runs a selected Actor. |
| 102 | +To check if your Applet is working properly: |
| 103 | +1. Go to your Applet's detail page. |
| 104 | +1. Clicke the **View activity** button to see the execution history. |
103 | 105 |
|
104 | | -### Run Task |
| 106 | +  |
105 | 107 |
|
106 | | -> Runs a selected Actor task. |
| 108 | +## Available triggers, actions, and queries |
107 | 109 |
|
| 110 | +### Triggers |
108 | 111 |
|
109 | | -## Queries |
| 112 | +- **Actor Run Finished**: Activates when a selected Actor run completes |
| 113 | +- **Task Run Finished**: Activates when a selected Actor task run completes |
110 | 114 |
|
111 | | -### Get Dataset Items |
| 115 | +### Actions |
112 | 116 |
|
113 | | -> Retrieves items from a [dataset](/platform/storage/dataset). |
| 117 | +- **Run Actor**: Starts a specified Actor with customizable parameters |
| 118 | +- **Run Task**: Executes a specified Actor task |
114 | 119 |
|
115 | | -### Scrape Single URL |
| 120 | +### Queries |
116 | 121 |
|
117 | | -> Runs a scraper for the website and returns its content. |
| 122 | +- **Get Dataset Items**: Retrieves items from a [dataset](/platform/storage/dataset) |
| 123 | +- **Scrape Single URL**: Runs a scraper for a specified website and returns its content |
| 124 | +- **Get Key-Value Store Record**: Retrieves a value from a [key-value store](/platform/storage/key-value-store) |
118 | 125 |
|
119 | | -### Get Key-Value Store Record |
| 126 | +## Troubleshooting |
120 | 127 |
|
121 | | -> Retrieves value from a [Key-value store](/platform/storage/key-value-store). |
| 128 | +- Ensure your JSON inputs in the "Input overrides" field are valid and properly formatted. |
| 129 | +- If an Applet fails to trigger, check your Apify API token permissions. |
122 | 130 |
|
123 | 131 | If you have any questions or need help, feel free to reach out to us on our [developer community on Discord](https://discord.com/invite/jyEM2PRvMU). |
0 commit comments