The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"nodes": [
{
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
250,
300
],
"parameters": {},
"typeVersion": 1
},
{
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
450,
300
],
"parameters": {
"values": {
"string": [
{
"name": "apiKey",
"value": "n8n-secret-keey"
}
]
},
"options": {},
"keepOnlySet": true
},
"typeVersion": 1
},
{
"name": "Customer Datastore",
"type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
"position": [
650,
300
],
"parameters": {
"operation": "getAllPeople",
"returnAll": true
},
"typeVersion": 1
},
{
"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
}
],
"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
}
]
]
}
},
"id": "1330",
"name": "Demonstrates the use of the $item(index) method"
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Demonstrates the use of the $item(index) method. Uses n8nTrainingCustomerDatastore, httpRequest. Event-driven trigger; 4 nodes.
Source: https://github.com/tommyshum/n8n_template_library/blob/87d0b7db31db00fcf781424ca7d9e86f1c9a9e1b/templates/official/template_1330/workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Manualtrigger Workflow. Uses httpRequest, shopify. Event-driven trigger; 13 nodes.
front. Uses n8n-nodes-wts, httpRequest. Event-driven trigger; 12 nodes.
Community Node Disclaimer: This workflow uses KlickTipp community nodes.
Restore your credentials from GitHub. Uses httpRequest, github, n8n. Event-driven trigger; 11 nodes.
This workflow takes an image URL and a description of the desired background, then uses the APImage AI API to produce a high-quality image, preserving the subject and applying a natural-looking new ba