Noucair ZemraniPlatform engineering & practical automation

ENGINEERING NOTES

n8n vs Zapier for Lead Capture: One Form, Two Workflows

By Noucair Zemrani ·

Alex fills out your contact form, notices a typo, and submits it again. On Monday morning, two people on your team see two rows and both call Alex. The form worked. The workflow missed the fact that those two submissions came from the same person.

This walkthrough compares how to build the same lead capture automation in n8n and Zapier. The results below are expected outcomes for a reproducible lab.

Two lead capture workflows compare n8n Webhook and Zapier Catch Hook, both writing to Google Sheets.
Lead capture architecture
  • n8n · Form → Webhook → Edit Fields → If → Google Sheets
  • Zapier · Form → Catch Hook → Formatter → Filter → Google Sheets

Set up the same test for both tools

Create two empty Google Sheets tabs, one for each workflow, with columns named email and name. Use fictional contacts. Configure your form backend to send a JSON POST containing the two fields. For the lab, you can send each example directly with an HTTP client.

{"email":" [email protected] ","name":"Alex Morgan"}
{"email":"[email protected]","name":"Alex Rivera"}
{"name":"Missing Email"}

Send each line as a separate JSON request with Content-Type: application/json. Run them in order and wait for each execution to finish.

Build the workflow in n8n

  1. Create a Webhook node, set it to POST, and send the first sample to its test URL while it is listening.
  2. In Edit Fields, map the raw email from the webhook body with {{ String($json.body.email ?? '').trim().toLowerCase() }}. Map the name from $json.body.name.
  3. Add an If node that checks whether the normalized email is nonempty. Connect only the true output to Google Sheets.
  4. In Google Sheets, choose Append or Update Row. Select the n8n tab, match on email, and map both columns from Edit Fields. Open the execution after each request and check the sheet.

Get the n8n lead capture workflow JSON

Copy the export below into lead-capture-comparison.json and import it into n8n. In the Google Sheets node, choose your Google credential and replace the placeholder spreadsheet ID. Use a tab named n8n-test with the headers email and name, or select your own test tab. Check that the node matches on email before sending the sample requests.

This export uses a Code node for the same normalization and blank-email check described in the manual setup. A blank email produces zero output items, so the Google Sheets node has nothing to write.

Show the complete n8n workflow JSON
{
  "name": "Lead capture comparison",
  "nodes": [
    {
      "name": "Receive lead",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "parameters": {
        "httpMethod": "POST",
        "path": "lead-capture-comparison",
        "options": {}
      },
      "position": [
        0,
        0
      ],
      "id": "711034bd-9a03-4a4e-9c87-7abbcc432100",
      "webhookId": "711034bd-9a03-4a4e-9c87-7abbcc432109"
    },
    {
      "name": "Normalize and check lead",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "parameters": {
        "jsCode": "const body = $input.first().json.body ?? {};\nconst email = typeof body.email === 'string' ? body.email.trim().toLowerCase() : '';\nreturn email ? [{json:{email,name:typeof body.name === 'string' ? body.name.trim() : ''}}] : [];"
      },
      "position": [
        240,
        0
      ],
      "id": "711034bd-9a03-4a4e-9c87-7abbcc432101"
    },
    {
      "name": "Save lead to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.6,
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "REPLACE_WITH_SPREADSHEET_ID"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "n8n-test"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "email": "={{ $json.email }}",
            "name": "={{ $json.name }}"
          },
          "matchingColumns": [
            "email"
          ],
          "schema": [
            {
              "id": "email",
              "displayName": "email",
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "name",
              "displayName": "name",
              "type": "string",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {}
      },
      "position": [
        480,
        0
      ],
      "id": "711034bd-9a03-4a4e-9c87-7abbcc432102"
    }
  ],
  "connections": {
    "Receive lead": {
      "main": [
        [
          {
            "node": "Normalize and check lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize and check lead": {
      "main": [
        [
          {
            "node": "Save lead to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  }
}

Build the workflow in Zapier

  1. Choose Webhooks by Zapier → Catch Hook. Send the first sample to the hook and select the captured record when testing the trigger.
  2. Use Formatter → Text to trim whitespace and lowercase the email. Add a Filter that allows only a nonempty normalized email to continue. If a missing input stops the Formatter step in your configuration, add a raw-email existence filter before Formatter as well.
  3. Use Google Sheets → Lookup Spreadsheet Row with the normalized email as the lookup value. Enable the option to create a row when none is found, and map both email and name for creation.
  4. Use Update Spreadsheet Row with the row identifier from the lookup step. Map the corrected name and normalized email. Run the samples and inspect Zap History and the sheet. Zapier’s row lookup and update documentation.

What to check after each submission

  • New lead. The sheet contains one row named Alex Morgan.
  • Corrected name. The same row now says Alex Rivera, and the row count stays at one.
  • Missing email. The Google Sheets step does not write a row. Confirm this in the execution history as well as the sheet.
  • Concurrent submissions. Start with an empty tab and submit the same email twice in parallel. Count the rows afterward. A lookup-and-create sequence can race when both runs find no match before either writes.

Two rows for Alex? Here’s where to look

If the second form submission creates another row, first compare the normalized email in both executions. Spaces and capital letters should disappear before the lookup. If the emails match and the requests arrived together, check when each run looked up the row. Both may have searched before either wrote.

Which setup is easier to troubleshoot?

n8n shows the validation branch directly on the canvas and gives the Google Sheets operation one step in this design. Zapier makes the row lookup and update visible as separate actions, which lets you inspect the row identifier passed between them. In either tool, a webhook acknowledgement alone does not prove the spreadsheet write succeeded. Verify the run and the destination together.

If your requirement is exactly one lead per email under concurrent submissions, use a store that enforces a unique email key and performs an atomic upsert. The n8n workflow examples article includes a PostgreSQL version. See Practical Automation for more workflow design guides.

← All engineering articles