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": [
{
"parameters": {
"cronExpression": "*/1 * * * *"
},
"id": "Schedule Trigger",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"values": {
"string": [
{
"name": "symbol",
"value": "AAPL"
},
{
"name": "userId",
"value": "test-user"
}
],
"number": [
{
"name": "thresholdAmount",
"value": 150
},
{
"name": "quantity",
"value": 1
},
{
"name": "price",
"value": 140
}
]
},
"options": {}
},
"id": "Set",
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
450,
300
]
},
{
"parameters": {
"functionCode": "// Buy logic\nconst price = $json[\"price\"];\nconst threshold = $json[\"thresholdAmount\"];\nconst shouldBuy = price < threshold;\nreturn [{\n json: {\n shouldBuy,\n symbol: $json[\"symbol\"],\n thresholdAmount: $json[\"thresholdAmount\"],\n quantity: $json[\"quantity\"],\n userId: $json[\"userId\"]\n }\n}];"
},
"id": "Function",
"name": "Buy Logic",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
650,
300
]
},
{
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{$json[\"shouldBuy\"]}}",
"value2": true
}
]
}
},
"id": "IF",
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
850,
300
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "http://localhost:5000/api/trades/buy",
"jsonParameters": true,
"options": {},
"bodyParametersJson": "{\n \"userId\": \"{{$json[\"userId\"]}}\",\n \"symbol\": \"{{$json[\"symbol\"]}}\",\n \"thresholdAmount\": {{$json[\"thresholdAmount\"]}},\n \"quantity\": {{$json[\"quantity\"]}}\n}"
},
"id": "HTTP Request",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
1050,
200
]
}
],
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "Buy Logic",
"type": "main",
"index": 0
}
]
]
},
"Buy Logic": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
],
[]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Buyauto. Uses httpRequest. Scheduled trigger; 5 nodes.
Source: https://github.com/ManojKumar-A-17/Thresh_Bot/blob/6ffc2c82f0587019026b39664cfe80e980cecd9a/n8n/buyauto.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.
Birthday Automation - Production (Fixed). Uses stopAndError, httpRequest, emailSend, bannerbear. Scheduled trigger; 86 nodes.
This template runs two scheduled workflows to govern Microsoft Entra ID (Azure AD) guest accounts by detecting stale users via Microsoft Graph, staging deletions in SharePoint with a 72-hour window, n
Jira-Allure-Auto-Qa. Uses httpRequest, jira. Scheduled trigger; 68 nodes.
Spotify-Sync-Surrealdb-V1. Uses httpRequest, n8n-nodes-surrealdb, spotify. Scheduled trigger; 62 nodes.
As n8n instances scale, teams often lose track of sub-workflows—who uses them, where they are referenced, and whether they can be safely updated. This leads to inefficiencies like unnecessary copies o