Skip to content

Commit a8fc5b4

Browse files
committed
fix: lint and formatting
1 parent f688d77 commit a8fc5b4

File tree

1 file changed

+37
-29
lines changed
  • sources/platform/integrations/workflows-and-notifications

1 file changed

+37
-29
lines changed

sources/platform/integrations/workflows-and-notifications/n8n.md

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
32
title: n8n integration
43
description: Connect Apify with n8n to automate workflows by running Actors, extracting data, and responding to Actor or task events.
54
sidebar_label: n8n
65
sidebar_position: 7
76
slug: /integrations/n8n
8-
-----------------------
7+
---
98

109
**Connect Apify with n8n to automate workflows by running Actors, extracting structured data, and responding to Actor or task events.**
1110

@@ -47,26 +46,29 @@ If you’re using n8n Cloud, installing community nodes is even simpler:
4746

4847
:::note
4948

50-
On n8n cloud users can choose not to show verified community nodes. Instance owners can toggle this in the Cloud Admin Panel. To install the Apify node, make sure the installation of verified community nodes is enabled.
49+
On n8n cloud users can choose not to show verified community nodes. Instance owners can toggle this in the Cloud Admin Panel. To install the Apify node, make sure the installation of verified community nodes is enabled.
5150

5251
:::
5352

5453
## Authentication
55-
The Apify node supports two authentication methods:
5654

57-
1. API Key (cloud & self-hosted instance):
58-
- In the n8n Editor UI, click on **Create Credential**
59-
- Search for Apify API and click **Continue**
60-
- Enter your Apify API token. You can find the API token in the [console](https://console.apify.com/settings/integrations)
61-
- Click **Save**
55+
The Apify node supports two authentication methods:
56+
57+
### API Key (cloud & self-hosted instance)
58+
59+
1. In the n8n Editor UI, click on **Create Credential**
60+
2. Search for Apify API and click **Continue**
61+
3. Enter your Apify API token. You can find the API token in the [console](https://console.apify.com/settings/integrations)
62+
4. Click **Save**
6263

6364
![Apify Auth](../images/n8n-api-auth.png)
6465

65-
2. OAuth2 (cloud instance only):
66-
- In n8n Cloud, click on **Create Credential**
67-
- Search for Apify OAuth2 API and click **Continue**
68-
- Click **Connect my account** and authorize with your Apify account
69-
- n8n will retrieve and store OAuth2 tokens automatically
66+
### OAuth2 (cloud instance only)
67+
68+
1. In n8n Cloud, click on **Create Credential**
69+
2. Search for Apify OAuth2 API and click **Continue**
70+
3. Click **Connect my account** and authorize with your Apify account
71+
4. n8n will retrieve and store OAuth2 tokens automatically
7072

7173
![Apify Auth](../images/n8n-oauth.png)
7274

@@ -87,37 +89,43 @@ If you’re using n8n Cloud, installing community nodes is even simpler:
8789
![Apify Node](../images/n8n-list-of-operations.png)
8890

8991
## Use Apify node as trigger
92+
9093
1. Create a new workflow
9194
2. Click **Add Node**, search for **Apify**, and select it
9295
3. Select **On new Apify Event** trigger
93-
4. Configure it:
94-
- **Actor or Actor task**: select the Actor or task to listen for terminal events
95-
- **Event Type**: the status of the Actor or task run that should trigger the workflow
96-
5. Add subsequent nodes (e.g., HTTP Request, Google Sheets) to process or store the output
97-
6. Save and execute the workflow
96+
4. Configure it:
97+
98+
* **Actor or Actor task**: select the Actor or task to listen for terminal events
99+
* **Event Type**: the status of the Actor or task run that should trigger the workflow
100+
101+
1. Add subsequent nodes (e.g., HTTP Request, Google Sheets) to process or store the output
102+
2. Save and execute the workflow
98103

99104
![Apify Node](../images/n8n-trigger-example.png)
100105

101106
## Use Apify node as an action
107+
102108
1. Create a new workflow
103109
2. Click **Add Node**, search for **Apify**, and select it
104110
3. Select any operation. In this example we will use **Run Actor**
105-
4. Configure it:
106-
- **Custom input**: JSON input for the Actor run, which you can find on the Actor input page in Apify Console. See [Inputs](/platform/actors/running/input-and-output#input) for more information. If empty, the run uses the input specified in the default run configuration
107-
- **Timeout**: Timeout for the Actor run in seconds. Zero value means there is no timeout
108-
- **Memory**: Amount of memory allocated for the Actor run, in megabytes
109-
- **Build Tag**: Specifies the Actor build tag to run. By default, the run uses the build specified in the default run configuration for the Actor (typically `latest`)
110-
- **Wait for finish**: Whether to wait for the run to finish before continuing. If true, the node will wait for the run to complete (successfully or not) before moving to the next node
111+
4. Configure it:
112+
113+
* **Custom input**: JSON input for the Actor run, which you can find on the Actor input page in Apify Console. See [Inputs](/platform/actors/running/input-and-output#input) for more information. If empty, the run uses the input specified in the default run configuration
114+
* **Timeout**: Timeout for the Actor run in seconds. Zero value means there is no timeout
115+
* **Memory**: Amount of memory allocated for the Actor run, in megabytes
116+
* **Build Tag**: Specifies the Actor build tag to run. By default, the run uses the build specified in the default run configuration for the Actor (typically `latest`)
117+
* **Wait for finish**: Whether to wait for the run to finish before continuing. If true, the node will wait for the run to complete (successfully or not) before moving to the next node
111118

112119
![Apify Node](../images/n8n-run-actor-example.png)
113120

114-
5. Add another Apify operation called **Get Dataset Items**.
115-
- Set Dataset ID parameter as **defaultDatasetId** value received from the previous **Run Actor** node. This will give you the output of the Actor run
121+
1. Add another Apify operation called **Get Dataset Items**.
122+
123+
* Set Dataset ID parameter as **defaultDatasetId** value received from the previous **Run Actor** node. This will give you the output of the Actor run
116124

117125
![Apify Node](../images/n8n-get-dataset-items-example.png)
118126

119-
6. Add any subsequent nodes (e.g. Google Sheets) to process or store the output
120-
7. Save and execute the workflow
127+
1. Add any subsequent nodes (e.g. Google Sheets) to process or store the output
128+
2. Save and execute the workflow
121129

122130
![Apify Node](../images/n8n-workflow-example.png)
123131

0 commit comments

Comments
 (0)