Dedupe leads from Google Forms before they reach GoHighLevel (n8n)
At a glance
- Setup estimate
- 2–4 h (ESTIMATE)
- Tools
- Industries
- Agencies & consultancies, General (any small business)
Problem
The same person submits a form twice and ends up as duplicate contacts in the CRM
Who it's for
For agencies and small businesses that collect leads through a Google Form and work them in GoHighLevel (HighLevel), and want to dedupe leads automatically. The trigger: the same person submits your form twice and turns up as two contacts in the CRM, so follow-ups double up and reporting is off.
Skip it if: Not a drop-in fix. The shared template calls HighLevel's API v1, which reached end of support on December 31, 2025, and the JSON has several wiring problems (listed below) that likely stop new leads from ever being created. Use it as a map of the idea, not as a working install. No AI is involved.
Tools and what each does
- Google Forms + Google Sheets Trigger
- Form answers land in a responses sheet; n8n polls it every minute for new rows.
- Google Sheets (master lead database)
- Read to check whether the email already exists, and appended to when a lead is new.
- n8n IF and Filter nodes
- Compare the new lead's email with the stored emails to choose the new-lead or duplicate path.
- HighLevel API v1 via HTTP Request
- Creates a contact for new leads; on the duplicate path it looks the contact up by email.
- Code node + Google Sheets (duplicate log)
- Picks the matching HighLevel contact and writes it to a separate duplicate-log sheet.
Browse by tool: n8n, Google Forms, Google Sheets, HighLevel
Steps
- Someone submits your Google Form and a row is added to the responses sheet.
- Within about a minute, the Sheets trigger picks up the new row.
- n8n reads the master lead sheet.
- If the email isn't there, a HighLevel contact is created (with 'New Lead' and 'Google Form' tags) and the lead is appended to the master sheet.
- If it is there, n8n looks up the existing HighLevel contact by email and records the repeat in the duplicate-log sheet.
Known problems in the source template
Found by reading the template's JSON, not by running it. Likely fails as shipped.
Problem: The lookup step has no filter, so it returns every row of the master sheet, and the IF then runs once per row. The new-lead Filter compares each row's email with itself, so it likely drops every item and no contact is created. With an empty master sheet the lookup returns nothing and the run likely stops before any branch.
Fix: Filter the lookup by the submitted email (or use a single 'does it exist' check) and branch on whether any row came back, with 'Always output data' on.
Problem: Both HighLevel HTTP nodes leave the method at the default GET. 'Create Contact' therefore can't create anything, and 'Update Contact' is only a search: it never sends updated details.
Fix: Use POST for creation and an update (PUT) call with the contact ID, or replace both with HighLevel's Upsert Contact endpoint.
Problem: The Code node falls back to the placeholder '[email protected]' because the HighLevel search response has no top-level email, so the duplicate log likely records 'No contact found'.
Fix: Pass the submitted email in from the trigger node instead of $json.email.
Problem: Column names don't agree: the checks use 'Email address' while contact creation uses 'Email', 'First Name', 'Last Name' and 'Phone'.
Fix: Rename to match your form's sheet headers exactly.
Before you start
- A HighLevel account with API access (plan and cost UNKNOWN). New builds should use a Private Integration Token and API v2/v3, not the v1 API key the template expects.
- Three Google Sheets you own: form responses, master lead database and duplicate log, with matching column names.
- n8n with Google Sheets OAuth credentials.
- Setup estimate: 2–4 h including the rework below (ESTIMATE).
What can go wrong
No AI involved. Needs a GoHighLevel account with API access (plan and cost UNKNOWN) and three prepared Google Sheets. Duplicate matching depends on the rules in the code step, so test it with a few of your own entries before connecting your live form.
- Source qualityEvery HighLevel call goes to rest.gohighlevel.com/v1. HighLevel says API v1 reached end of support on December 31, 2025: existing connections may keep working, but get no fixes or support. Rebuild on services.leadconnectorhq.com with a Private Integration Token.
- Silent failureEmail matching is exact and case-sensitive, so '[email protected]' and '[email protected] ' count as different people. Lower-case and trim emails before comparing.
- Source qualityThe sheet IDs point to the author's spreadsheets; select your own in every Sheets node.
- Rate limitEach new submission reads the whole master sheet. Google's Sheets API allows 60 read requests per minute per user per project, which a quiet form won't approach, but a big import into the responses sheet could.
- Data privacyNames, emails and phone numbers sit in three spreadsheets plus HighLevel; restrict who can open the sheets.
How to adapt it
- Simplest rebuild: one HTTP Request to HighLevel's Upsert Contact (POST /contacts/upsert). It follows your location's 'Allow Duplicate Contact' setting and updates the existing contact instead of creating a second one, so the master-sheet lookup becomes optional.
- Match on phone as well as email if your leads often reuse one but not the other.
- Swap Google Forms for any form that writes to a sheet, or for an n8n Form Trigger.
- Keep the duplicate log if you want to see who submits repeatedly; add a timestamp column.
Sources we checked
- Status
- Researched: Sourced and summarized, not yet run end-to-end by us
- Last checked
- Details checked
Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.