n8n
Workflow
Demonstrates The Use Of The Item Index Method
This n8n workflow automates tasks and integrates with various services. Demonstrates The Use Of The Item Index Method - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow automates tasks and integrates with various services. Demonstrates The Use Of The Item Index Method - ready to import and run in your n8n instance.
Features:
- Makes HTTP requests to external APIs
Source Code
{
"nodes": [
{
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
250,
300
],
"parameters": [],
"typeVersion": 1,
"id": "a0d77271-9208-4995-8363-51be2b1f1066"
},
{
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
450,
300
],
"parameters": {
"values": {
"string": [
{
"name": "apiKey",
"value": "n8n-secret-keey"
}
]
},
"options": [],
"keepOnlySet": true
},
"typeVersion": 1,
"id": "d1a28c14-cae0-463e-a937-4c4bba313f10"
},
{
"name": "Customer Datastore",
"type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
"position": [
650,
300
],
"parameters": {
"operation": "getAllPeople",
"returnAll": true
},
"typeVersion": 1,
"id": "a3e4011a-2670-4891-ba53-814e8224272f"
},
{
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"position": [
850,
300
],
"parameters": {
"url": "https://webhook.site/f99d65ab-8959-4466-a427-cdd0ad482220",
"options": [],
"requestMethod": "POST",
"bodyParametersUi": {
"parameter": [
{
"name": "name",
"value": "={{$json[\"name\"]}}"
}
]
},
"headerParametersUi": {
"parameter": [
{
"name": "api-key",
"value": "={{ $item(0).$node[\"Set\"].json[\"apiKey\"] }}"
}
]
}
},
"typeVersion": 1,
"id": "26be9d9b-4367-44bd-9ff9-2b6dace3b3d7"
}
],
"connections": {
"Set": {
"main": [
[
{
"node": "Customer Datastore",
"type": "main",
"index": 0
}
]
]
},
"Customer Datastore": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"On clicking 'execute'": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
}
},
"n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n
#automation
#workflow