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 →
{
"name": "scheduler",
"nodes": [
{
"parameters": {
"workflowId": {
"__rl": true,
"value": "Uxm-SlghMh4gTtgUcR252",
"mode": "list",
"cachedResultUrl": "/workflow/Uxm-SlghMh4gTtgUcR252",
"cachedResultName": "ingestion"
},
"workflowInputs": {
"mappingMode": "defineBelow",
"value": {},
"matchingColumns": [],
"schema": [],
"attemptToConvertTypes": false,
"convertFieldsToString": true
},
"options": {}
},
"type": "n8n-nodes-base.executeWorkflow",
"typeVersion": 1.3,
"position": [
208,
0
],
"id": "7fc8e7b2-8329-4757-8e51-fe1f6bfa1a0a",
"name": "Call 'ingestion'"
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.3,
"position": [
-128,
0
],
"id": "86e2e077-8841-4482-a8bc-604605f732f8",
"name": "Schedule Trigger"
},
{
"parameters": {
"workflowId": {
"__rl": true,
"value": "eXwD1aDrKD0qlWdWhfAVH",
"mode": "list",
"cachedResultUrl": "/workflow/eXwD1aDrKD0qlWdWhfAVH",
"cachedResultName": "processing"
},
"workflowInputs": {
"mappingMode": "defineBelow",
"value": {},
"matchingColumns": [],
"schema": [],
"attemptToConvertTypes": false,
"convertFieldsToString": true
},
"options": {}
},
"type": "n8n-nodes-base.executeWorkflow",
"typeVersion": 1.3,
"position": [
416,
0
],
"id": "cbe2ebb9-5674-4e36-b04c-3826afc2f4bd",
"name": "Call 'processing'"
},
{
"parameters": {
"operation": "executeQuery",
"query": "INSERT INTO control.dw_pipeline_state (\n execution_id,\n started_at,\n status\n)\nVALUES (\n {{ $execution.id }},\n now(),\n 'RUNNING'\n);",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
32,
0
],
"id": "ad162147-cd51-471f-bf93-065caebe83eb",
"name": "Execute a SQL query",
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "executeQuery",
"query": "UPDATE control.api_ingestion_runs\nSET\n finished_at = now(),\n records_counter = (SELECT COUNT(*) FROM gold.enriquecimentos),\n status = 'SUCCESS'\nWHERE execution_id = '{{ $execution.id}}';",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
592,
0
],
"id": "1d685017-d140-4094-a356-c48e11730ebc",
"name": "Execute a SQL query1",
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT * FROM control.dw_pipeline_state",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
784,
0
],
"id": "8fe9dbce-5eaa-4d83-af3a-9f75f8de8e10",
"name": "Execute a SQL query2",
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Execute a SQL query",
"type": "main",
"index": 0
}
]
]
},
"Call 'ingestion'": {
"main": [
[
{
"node": "Call 'processing'",
"type": "main",
"index": 0
}
]
]
},
"Execute a SQL query": {
"main": [
[
{
"node": "Call 'ingestion'",
"type": "main",
"index": 0
}
]
]
},
"Call 'processing'": {
"main": [
[
{
"node": "Execute a SQL query1",
"type": "main",
"index": 0
}
]
]
},
"Execute a SQL query1": {
"main": [
[
{
"node": "Execute a SQL query2",
"type": "main",
"index": 0
}
]
]
},
"Execute a SQL query2": {
"main": [
[]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"availableInMCP": false
},
"versionId": "fc969e0e-88f8-4df1-988b-1ce0714a97b2",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "LZr4ay4Ilzg9ytoiGTjgP",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
postgres
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
scheduler. Uses postgres. Scheduled trigger; 6 nodes.
Source: https://github.com/kauangod/driva-technical-test/blob/49a7d374216e74cba1d66ee64a1ed2ee7c968076/workflows/scheduler.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.
Disparador 1.8. Uses itemLists, postgres, emailSend, httpRequest. Scheduled trigger; 85 nodes.
공유회_알림톡_크론. Uses postgres, httpRequest, n8n-nodes-solapi. Scheduled trigger; 39 nodes.
QuepasaAutomatic. Uses postgres, postgresTrigger, httpRequest. Scheduled trigger; 39 nodes.
QuepasaAutomatic. Uses postgres, postgresTrigger, httpRequest. Scheduled trigger; 39 nodes.
QuepasaAutomatic. Uses postgres, postgresTrigger, httpRequest. Scheduled trigger; 39 nodes.