AutomationFlowsData & Sheets › Scheduled Data Pipeline with Postgres

Scheduled Data Pipeline with Postgres

Original n8n title: Project Genji - Complete Data Pipeline

Project Genji - Complete Data Pipeline. Uses schedule, executeCommand, postgres. Scheduled trigger; 4 nodes.

Cron / scheduled trigger★★☆☆☆ complexity4 nodesScheduleExecute CommandPostgres
Data & Sheets Trigger: Cron / scheduled Nodes: 4 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": "Project Genji - Complete Data Pipeline",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "number": 4,
              "unit": "hours"
            }
          ]
        }
      },
      "name": "Schedule Every 4 Hours",
      "type": "n8n-nodes-base.schedule",
      "typeVersion": 1,
      "position": [
        300,
        300
      ]
    },
    {
      "parameters": {
        "command": "cd /home/coder/startup/genji && python python-analysis-module/data_collector.py"
      },
      "name": "Collect Data",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "command": "cd /home/coder/startup/genji && python python-analysis-module/main.py"
      },
      "name": "Run AI Analysis",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        700,
        300
      ]
    },
    {
      "parameters": {
        "operation": "database",
        "query": "SELECT COUNT(*) as processed_articles FROM market_insights WHERE analyzed_at > NOW() - INTERVAL '1 hour'",
        "additionalFields": {}
      },
      "name": "Check Processing Status",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 1,
      "position": [
        900,
        300
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Schedule Every 4 Hours": {
      "main": [
        [
          {
            "node": "Collect Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect Data": {
      "main": [
        [
          {
            "node": "Run AI Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run AI Analysis": {
      "main": [
        [
          {
            "node": "Check Processing Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "timezone": "Asia/Tokyo"
  }
}

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

Project Genji - Complete Data Pipeline. Uses schedule, executeCommand, postgres. Scheduled trigger; 4 nodes.

Source: https://github.com/sivaadityacoder/Genji/blob/83e52c14eebb8177bf5cc5fe4f53a74b75d7c29a/n8n-workflows/genji-pipeline.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

Automated Knowledge Management Backup & Recovery. Uses executeCommand, postgres, httpRequest, googleDrive. Scheduled trigger; 30 nodes.

Execute Command, Postgres, HTTP Request +1
Data & Sheets

Marcel - Sauvegarde Automatique. Uses executeCommand, awsS3, postgres. Scheduled trigger; 17 nodes.

Execute Command, AWS S3, Postgres
Data & Sheets

Synchronize Your Google Sheets With Postgres. Uses scheduleTrigger, compareDatasets, splitOut, googleSheets. Scheduled trigger; 10 nodes.

Google Sheets, Postgres
Data & Sheets

Synchronize your Google Sheets with Postgres. Uses scheduleTrigger, compareDatasets, splitOut, googleSheets. Scheduled trigger; 10 nodes.

Google Sheets, Postgres
Data & Sheets

AsaasAutomatic. Uses postgres. Scheduled trigger; 7 nodes.

Postgres