{
  "name": "Form to spreadsheet and team alert",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "website-form",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "3f8b2d90-4c5e-4d21-9a3b-5d2c33f3c001",
      "name": "Website form",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [-260, 0],
      "webhookId": "website-form"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": { "__rl": true, "value": "PUT_YOUR_SHEET_ID_HERE", "mode": "id" },
        "sheetName": { "__rl": true, "value": "Leads", "mode": "name" },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Received": "={{ $now.toISO() }}",
            "Name": "={{ $json.body.name }}",
            "Email": "={{ $json.body.email }}",
            "Phone": "={{ $json.body.phone }}",
            "Page": "={{ $json.body.page_url }}",
            "Message": "={{ $json.body.project_details }}"
          }
        },
        "options": {}
      },
      "id": "3f8b2d90-4c5e-4d21-9a3b-5d2c33f3c002",
      "name": "Append to sheet",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [-20, 0]
    },
    {
      "parameters": {
        "sendTo": "sales@example.com",
        "subject": "=New enquiry from {{ $('Website form').item.json.body.name }}",
        "emailType": "text",
        "message": "={{ [ 'Name: ' + $('Website form').item.json.body.name, 'Email: ' + $('Website form').item.json.body.email, 'Phone: ' + $('Website form').item.json.body.phone, 'Page: ' + $('Website form').item.json.body.page_url, '', $('Website form').item.json.body.project_details ].join('\\n') }}",
        "options": {}
      },
      "id": "3f8b2d90-4c5e-4d21-9a3b-5d2c33f3c003",
      "name": "Email the team",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [220, 0]
    }
  ],
  "connections": {
    "Website form": { "main": [[{ "node": "Append to sheet", "type": "main", "index": 0 }]] },
    "Append to sheet": { "main": [[{ "node": "Email the team", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" },
  "active": false,
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false,
    "source": "godesigntech.com free n8n template library"
  }
}
