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": "My workflow",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.3,
"position": [
0,
0
],
"id": "3cb3798e-3284-48c8-b02e-32e1a41976bb",
"name": "Schedule Trigger"
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT id, file_name FROM jobs WHERE status = 'COMPLETED'",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
208,
0
],
"id": "f76f3ef1-5d3e-4a54-b34c-3779368c249b",
"name": "Execute a SQL query",
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "executeQuery",
"query": "INSERT INTO sales_daily_summary (date, total_sales, total_quantity, record_count)\nSELECT date, SUM(total), SUM(quantity), COUNT(*)\nFROM sales\nGROUP BY date\nON CONFLICT (date) DO UPDATE SET\n total_sales = EXCLUDED.total_sales,\n total_quantity = EXCLUDED.total_quantity,\n record_count = EXCLUDED.record_count",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
416,
0
],
"id": "ae6cd825-8201-46d6-a94c-e6d5d64d7159",
"name": "Execute a SQL query1",
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Execute a SQL query",
"type": "main",
"index": 0
}
]
]
},
"Execute a SQL query": {
"main": [
[
{
"node": "Execute a SQL query1",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate"
},
"versionId": "870ec880-6018-4a06-ac23-991518574260",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "EOIbNwZp18ERn5zP",
"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
Pruebalogyca. Uses postgres. Scheduled trigger; 3 nodes.
Source: https://github.com/stg077/PruebaLOGYCA/blob/57b95053c76e56a6fa168c7b12b2a1839e4387cd/n8n/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.
QuepasaAutomatic. Uses postgres. Scheduled trigger; 6 nodes.
BTC_Poll. Uses start, httpRequest, postgres. Scheduled trigger; 5 nodes.
Recordatorio de Citas - 24 horas antes. Uses postgres, emailSend, httpRequest. Scheduled trigger; 5 nodes.
QuepasaAutomatic. Uses postgres. Scheduled trigger; 5 nodes.