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": "FunctionItem",
"type": "n8n-nodes-base.functionItem",
"color": "#067325",
"position": [
860,
680
],
"parameters": {
"functionCode": "item.myVariable = 1;\nitem.myVariable2 = \"this is exciting\";\nreturn item;"
},
"typeVersion": 1
},
{
"name": "2 hours Interval",
"type": "n8n-nodes-base.interval",
"color": "#FF2A00",
"notes": "It is the 4 hours interval in which this node gets executed",
"position": [
630,
680
],
"parameters": {
"unit": "hours",
"interval": 2
},
"typeVersion": 1
},
{
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
1040,
680
],
"parameters": {
"values": {
"string": [
{
"name": "data",
"value": "={{$node[\"FunctionItem\"].data[\"myVariable2\"]}}"
}
]
},
"keepOnlySet": true
},
"typeVersion": 1
}
],
"connections": {
"FunctionItem": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"2 hours Interval": {
"main": [
[
{
"node": "FunctionItem",
"type": "main",
"index": 0
}
]
]
}
}
}
About this workflow
Getting Started. Uses functionItem, interval. Manual trigger; 3 nodes.
Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →