AutomationFlowsData & Sheets › Add Customer via Webhook to Postgres

Add Customer via Webhook to Postgres

Original n8n title: Anadir Cliente

Anadir_Cliente. Uses postgres. Webhook trigger; 4 nodes.

Webhook trigger★★☆☆☆ complexity4 nodesPostgres
Data & Sheets Trigger: Webhook 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": "Anadir_Cliente",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "08f17bf3-21fe-4308-a6b1-754f98077083",
        "responseMode": "lastNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        0
      ],
      "id": "40824d40-aa74-4e59-b3cf-d8874625f3e0",
      "name": "Webhook"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "078165b2-9b95-4944-9a87-31347cc6f90e",
              "name": "body.email",
              "value": "={{ $json.body.email }}",
              "type": "string"
            },
            {
              "id": "d9fd1000-1094-4668-b846-420ebe27d296",
              "name": "body.name",
              "value": "={{ $json.body.name }}",
              "type": "string"
            },
            {
              "id": "809eef80-e557-42c4-aa56-2c3c3fddee8c",
              "name": "body.vip_status",
              "value": "={{ $json.body.vip_status }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        208,
        0
      ],
      "id": "5587d6d9-f5b5-4d39-8443-01b21e6b672a",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "schema": {
          "__rl": true,
          "mode": "list",
          "value": "public"
        },
        "table": {
          "__rl": true,
          "value": "customers",
          "mode": "list",
          "cachedResultName": "customers"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "email": "={{ $json.body.email }}",
            "name": "={{ $json.body.name }}",
            "vip_status": "={{ $json.body.vip_status }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "email",
              "displayName": "email",
              "required": true,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "name",
              "displayName": "name",
              "required": true,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "vip_status",
              "displayName": "vip_status",
              "required": true,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.6,
      "position": [
        416,
        0
      ],
      "id": "148558ea-b924-4cbc-ad9d-3fa4dfe2864b",
      "name": "Insert rows in a table",
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "select",
        "schema": {
          "__rl": true,
          "mode": "list",
          "value": "public"
        },
        "table": {
          "__rl": true,
          "value": "customers",
          "mode": "list",
          "cachedResultName": "customers"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.6,
      "position": [
        624,
        0
      ],
      "id": "34e1d540-a66d-423c-8c3e-2061369d3122",
      "name": "Select rows from a table",
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Insert rows in a table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert rows in a table": {
      "main": [
        [
          {
            "node": "Select rows from a table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b413fc94-2128-4ad2-9a8a-df2a05718392",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "keKQc3ieXI5zxFif",
  "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

Anadir_Cliente. Uses postgres. Webhook trigger; 4 nodes.

Source: https://github.com/jaimeparra2402/INTEGRACION-DE-TECOLOGIAS/blob/584474df70b0283dac21df41f30b8b5862bde459/n8n/Anadir_Cliente.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

This n8n template demonstrates how to create a comprehensive voice-powered restaurant assistant that handles table reservations, food orders, and restaurant information requests through natural langua

Postgres
Data & Sheets

Create - KB. Uses postgres, crypto. Webhook trigger; 10 nodes.

Postgres, Crypto
Data & Sheets

Acts as a virtual receptionist for the restaurant, handling incoming calls via VAPI without human intervention. It collects user details (name, booking time, number of people) for table bookings, chec

Postgres
Data & Sheets

Get - KB. Uses postgres. Webhook trigger; 9 nodes.

Postgres
Data & Sheets

Text-to-SQL: Check Status. Uses postgres. Webhook trigger; 5 nodes.

Postgres