AutomationFlowsData & Sheets › n8n Workflow Data Handoff to Postgres

n8n Workflow Data Handoff to Postgres

Original n8n title: Handoff Data

Handoff_data. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 2 nodes.

Event trigger★☆☆☆☆ complexity2 nodesExecute Workflow TriggerPostgres
Data & Sheets Trigger: Event Nodes: 2 Complexity: ★☆☆☆☆ Added:

This workflow follows the Execute Workflow Trigger → Postgres recipe pattern — see all workflows that pair these two integrations.

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": "Handoff_data",
  "nodes": [
    {
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "id"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        0
      ],
      "id": "6967547b-e609-4b98-a6f0-51cf38dccee3",
      "name": "When Executed by Another Workflow",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "SELECT *\nFROM messages\nWHERE id = $1\nORDER BY created_at ASC, communication_id ASC;",
        "options": {
          "queryReplacement": "=$1 ={{ $json.id }}"
        }
      },
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.6,
      "position": [
        224,
        32
      ],
      "id": "ca9ca7d6-e05e-4f7d-a61d-dc7227565743",
      "name": "Execute a SQL query",
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Execute a SQL query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "versionId": "0578ef26-a389-45f7-91f3-45f6a0c18ea7",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "H0mGDKsuvbZ1bAzO",
  "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.

Pro

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

About this workflow

Handoff_data. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 2 nodes.

Source: https://github.com/garfieldgg228-g423/Aktau-esa5-DEMO/blob/f235e9619920970a642f882710ed20992602ea80/workflows/Handoff_data.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

Feedback Collection and Training Data. Uses executeWorkflowTrigger, postgres, httpRequest. Event-driven trigger; 4 nodes.

Execute Workflow Trigger, Postgres, HTTP Request
Data & Sheets

Interaction Logging Workflow. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 3 nodes.

Execute Workflow Trigger, Postgres
Data & Sheets

Stage C. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 3 nodes.

Execute Workflow Trigger, Postgres
Data & Sheets

Agendamiento_v2. Uses n8n-nodes-evolution-api, redis, httpRequest, executeWorkflowTrigger. Event-driven trigger; 59 nodes.

N8N Nodes Evolution Api, Redis, HTTP Request +3
Data & Sheets

Cancelacion_v2. Uses executeWorkflowTrigger, redis, httpRequest, n8n-nodes-evolution-api. Event-driven trigger; 46 nodes.

Execute Workflow Trigger, Redis, HTTP Request +3