{
  "name": "Building block: form submit -> row in Google Sheet",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "signup",
        "responseMode": "lastNode",
        "options": {
          "allowedOrigins": "*"
        }
      },
      "id": "c1b2c3d4-0001-4000-8000-000000000001",
      "name": "Webhook (from your app)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [0, 0],
      "webhookId": "hackathon-signup"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "PASTE_YOUR_SHEET_ID_HERE"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Sheet1"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "name": "={{ $json.body.name }}",
            "email": "={{ $json.body.email }}",
            "message": "={{ $json.body.message }}",
            "created": "={{ $now.toISO() }}"
          }
        },
        "options": {}
      },
      "id": "c1b2c3d4-0002-4000-8000-000000000002",
      "name": "Google Sheets (append row)",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [260, 0],
      "notes": "1) Create a Google Sheet with header row: name, email, message, created. 2) Paste the sheet ID from the URL. 3) Connect Google under Credentials. Your app sends JSON {name, email, message}."
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            { "id": "s1", "name": "ok", "value": true, "type": "boolean" }
          ]
        },
        "options": {}
      },
      "id": "c1b2c3d4-0003-4000-8000-000000000003",
      "name": "Reply ok",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [520, 0]
    }
  ],
  "connections": {
    "Webhook (from your app)": { "main": [[{ "node": "Google Sheets (append row)", "type": "main", "index": 0 }]] },
    "Google Sheets (append row)": { "main": [[{ "node": "Reply ok", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" },
  "pinData": {},
  "meta": { "instanceId": "vibesprint-2026" }
}
