AutomationFlowsData & Sheets › Logyca - Sales Daily Summary

Logyca - Sales Daily Summary

LOGYCA - Sales Daily Summary. Uses postgres. Scheduled trigger; 2 nodes.

Cron / scheduled trigger★☆☆☆☆ complexity2 nodesPostgres
Data & Sheets Trigger: Cron / scheduled Nodes: 2 Complexity: ★☆☆☆☆ Added:

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 →

Download .json
{
  "name": "LOGYCA - Sales Daily Summary",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 1
            }
          ]
        }
      },
      "id": "schedule-trigger",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "INSERT INTO sales_daily_summary (date, total_sales, last_updated)\nSELECT s.date, SUM(s.total) AS total_sales, CURRENT_TIMESTAMP\nFROM sales s\nINNER JOIN jobs j ON s.job_id = j.id\nWHERE j.status = 'COMPLETED'\nGROUP BY s.date\nON CONFLICT (date)\nDO UPDATE SET\n    total_sales = EXCLUDED.total_sales,\n    last_updated = CURRENT_TIMESTAMP;",
        "options": {}
      },
      "id": "postgres-upsert",
      "name": "Upsert Daily Summary",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.5,
      "position": [
        500,
        300
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Upsert Daily Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [],
  "triggerCount": 0,
  "updatedAt": "2026-04-01T15:00:00.000Z",
  "versionId": "1"
}

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.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

LOGYCA - Sales Daily Summary. Uses postgres. Scheduled trigger; 2 nodes.

Source: https://github.com/JuanSebastianrs/Logyca/blob/faca8b927108cb7e680e012b59e3b613307443c8/n8n/workflow_export.json — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

AsaasAutomatic. Uses postgres. Scheduled trigger; 7 nodes.

Postgres
Data & Sheets

WF-CB-circuit-breaker-reset. Uses postgres. Scheduled trigger; 6 nodes.

Postgres
Data & Sheets

BTC_Poll. Uses start, httpRequest, postgres. Scheduled trigger; 5 nodes.

Start, HTTP Request, Postgres
Data & Sheets

Recordatorio de Citas - 24 horas antes. Uses postgres, emailSend, httpRequest. Scheduled trigger; 5 nodes.

Postgres, Email Send, HTTP Request