{
  "name": "03 Inquiry form to lead list with confirmation",
  "nodes": [
    {
      "id": "4ad85aeb-f13b-43ec-98fc-eada1903e8d0",
      "name": "Inquiry form",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [
        0,
        300
      ],
      "parameters": {
        "formTitle": "Request a quote",
        "formDescription": "We reply within one business day.",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Name",
              "requiredField": true
            },
            {
              "fieldLabel": "Email",
              "fieldType": "email",
              "requiredField": true
            },
            {
              "fieldLabel": "Company"
            },
            {
              "fieldLabel": "How can we help?",
              "fieldType": "textarea",
              "requiredField": true
            }
          ]
        },
        "options": {
          "appendAttribution": false,
          "ignoreBots": true,
          "path": "inquiry"
        }
      },
      "webhookId": "de05bac0-15ef-4b53-a90b-c91612853a5a"
    },
    {
      "id": "d10a9915-d3e8-430d-9895-472ca9933962",
      "name": "Clean up fields",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        240,
        300
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "n",
              "name": "name",
              "value": "={{ $json.Name.trim() }}",
              "type": "string"
            },
            {
              "id": "e",
              "name": "email",
              "value": "={{ $json.Email.trim().toLowerCase() }}",
              "type": "string"
            },
            {
              "id": "b",
              "name": "company",
              "value": "={{ $json.Company }}",
              "type": "string"
            },
            {
              "id": "v",
              "name": "question",
              "value": "={{ $json['How can we help?'] }}",
              "type": "string"
            },
            {
              "id": "s",
              "name": "source",
              "value": "form",
              "type": "string"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "id": "24b8751a-689a-4fc9-8894-9aabe9bc0f0d",
      "name": "Add to lead list",
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        480,
        300
      ],
      "parameters": {
        "resource": "row",
        "operation": "insert",
        "dataTableId": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultName": "leads"
        },
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": {},
          "matchingColumns": [],
          "schema": []
        },
        "options": {}
      }
    },
    {
      "id": "7dc85539-95a8-4f61-bf15-5e0e8207a193",
      "name": "Confirmation to sender",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        720,
        300
      ],
      "parameters": {
        "fromEmail": "info@example.com",
        "toEmail": "={{ $('Clean up fields').item.json.email }}",
        "subject": "We received your request",
        "emailFormat": "text",
        "text": "=Hi {{ $('Clean up fields').item.json.name.split(' ')[0] }},\n\nThanks for your request. We'll read it today and you'll hear from us by tomorrow at the latest.\n\nYour question:\n{{ $('Clean up fields').item.json.question }}\n\nBest regards",
        "options": {
          "appendAttribution": false
        }
      }
    },
    {
      "id": "db82231b-b493-4656-8602-db6ec228b88c",
      "name": "Notify owner",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        960,
        300
      ],
      "parameters": {
        "fromEmail": "info@example.com",
        "toEmail": "you@example.com",
        "subject": "=New inquiry: {{ $('Clean up fields').item.json.name }}{{ $('Clean up fields').item.json.company ? ' (' + $('Clean up fields').item.json.company + ')' : '' }}",
        "emailFormat": "text",
        "text": "={{ $('Clean up fields').item.json.name }} <{{ $('Clean up fields').item.json.email }}> asks:\n\n{{ $('Clean up fields').item.json.question }}",
        "options": {
          "appendAttribution": false
        }
      }
    },
    {
      "id": "9ecb248d-290e-43d3-8843-41b432c85d92",
      "name": "Read me",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -160
      ],
      "parameters": {
        "content": "## Inquiry form to lead list\nTested on November 11, 2026, with n8n 2.47.3.\n\n**Fill in:** an SMTP account in both email nodes, your own address in 'Notify owner', and the *leads* table (name, email, company, question, source).\n\nPublish the workflow and open the form link from the first node.",
        "height": 220,
        "width": 520,
        "color": 7
      }
    }
  ],
  "connections": {
    "Inquiry form": {
      "main": [
        [
          {
            "node": "Clean up fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean up fields": {
      "main": [
        [
          {
            "node": "Add to lead list",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add to lead list": {
      "main": [
        [
          {
            "node": "Confirmation to sender",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confirmation to sender": {
      "main": [
        [
          {
            "node": "Notify owner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  }
}