{
  "name": "Webhook → Google Sheets",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "lead",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "1",
              "name": "data",
              "value": "={{ $now.toFormat('yyyy-LL-dd HH:mm') }}",
              "type": "string"
            },
            {
              "id": "2",
              "name": "imie",
              "value": "={{ $json.body.imie }}",
              "type": "string"
            },
            {
              "id": "3",
              "name": "email",
              "value": "={{ $json.body.email }}",
              "type": "string"
            },
            {
              "id": "4",
              "name": "zrodlo",
              "value": "={{ $json.body.zrodlo || 'www' }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "name": "Przygotuj wiersz",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "WKLEJ_ID_ARKUSZA"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Leady"
        },
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": {}
        },
        "options": {}
      },
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        480,
        0
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Przygotuj wiersz",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Przygotuj wiersz": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "timezone": "Europe/Warsaw"
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "source": "agentflow.pl/n8n/szablony"
  },
  "pinData": {}
}