Automate your lead intake effortlessly with n8n. This project processes onboarding form submissions, enriches leads with AI, emails both the lead and your team, and updates Google Sheets for centralized tracking.
- Overview
- How It Works
- Benefits
- Requirements
- Setup Instructions
- Customization
- Troubleshooting
- Contributing
- License
- Contact
Lead Capture Automation is an n8n workflow that streamlines client onboarding and lead management. It:
- Triggers on a form submission using the built-in Form Trigger
- Generates a concise lead summary using Gemini AI
- Sends a personalized welcome email to the lead
- Appends or updates the corresponding row in Google Sheets
- Notifies your internal team by email with the captured details
-
Trigger on form submission
- Captures
Full Name,Email Address,Company Name,Services Needed, optionalAdditional Onboarding Information, andPreferred Contact Method.
- Captures
-
Generate lead summary via Gemini AI
- Sends the submitted details to Gemini to produce a 2–3 line summary.
-
Parse AI output
- Uses a structured output parser to ensure valid JSON with a
summaryfield.
- Uses a structured output parser to ensure valid JSON with a
-
Email lead a personalized message
- Sends a welcome email via Gmail tailored to the lead’s inputs.
-
Append/update Google Sheets with lead info
- Writes lead data and the AI summary into a Google Sheet (matching on
Email Address).
- Writes lead data and the AI summary into a Google Sheet (matching on
-
Notify team via email
- Sends an internal notification email to your team with full details and a link to the sheet.
- Automates lead intake & enrichment with AI summarization
- Ensures timely lead communication with immediate emails
- Centralizes data access in Google Sheets
- Simple integrations using Gmail and Google Sheets
- n8n installation or cloud account
- Google account with:
- Access to Gmail (for sending emails)
- Access to Google Sheets (for storing leads)
- Gemini AI API access (Google Generative AI)
- Download or import the attached
Lead Capture Automation.jsonworkflow into your n8n instance (Desktop or Cloud).
- Open the
On form submissionnode and verify the fields:Full Name,Email Address,Company Name,Services Needed,Additional Onboarding Information(optional),Preferred Contact Method.
- Deploy to get the hosted form URL, or use the webhook URL embedded in the node.
- In the
Google Gemini Chat ModelandLead Summarynodes, add your Gemini/PaLM credentials. - Keep the output format as JSON with a
summarykey to ensure parsing succeeds.
- In the
Send Email to LeadandSend Email to Teamnodes, add your Gmail OAuth2 credentials. - Adjust sender identity if needed.
- In the
Append or update row in sheetnode, add your Google Sheets OAuth2 credentials. - Set
DocumentandSheetreferences (ID and sheet name). - Mapping includes:
Email Address(match),Full Name,Company Name,Services Needed,Additional Onboarding Information,Preferred Contact Method,Lead Summary,Created At.
- Submit the form once to generate a test lead.
- Confirm you receive the lead welcome email and your team receives the internal notification.
- Verify the Google Sheet row is appended/updated correctly.
- Required columns:
Email Address(match key),Full Name,Company Name,Services Needed,Additional Onboarding Information,Preferred Contact Method,Lead Summary,Created At. - You may add additional columns; update the node mappings accordingly.
Use n8n expressions to tailor content, for example in Gmail nodes:
Subject example:
Welcome to Fuzion Tech, {{ $('On form submission').item.json["Full Name"] }}! Let’s Get Started
Body snippet example:
Hi {{ $('On form submission').item.json['Full Name'] }},
Thank you for choosing us to support {{ $('On form submission').item.json['Company Name'] }} — especially around {{ $('On form submission').item.json['Services Needed'] }}.
The Lead Summary node instructs Gemini to return strictly valid JSON like:
{
"summary": "Your 2-3 line lead summary here"
}
You can adjust tone or length, but keep the JSON shape to avoid parser errors.
- Form not triggering: Redeploy to refresh the webhook; verify the public form URL.
- Gemini errors or empty
summary: Check credentials, rate limits, and ensure the model returns valid JSON. - Gmail node failures: Re-authorize Gmail OAuth2; verify send quotas and from-address permissions.
- Google Sheets write issues: Confirm Sheet ID, sheet name, and that
Email Addressexists for matching.
Contributions and suggestions are welcome. Fork the repo, submit issues, or open pull requests for improvements.
This project is licensed under the MIT License. See LICENSE for details.
- Email: nebeyoumusie@gmail.com
- LinkedIn: LinkedIn
- X(Twitter): X
- Upwork: Upwork
- My Agency: Fuzion Tech Website or Fuzion Tech on Upwork
Skills & Technologies:
n8n, Automation, Lead Capture, Gemini, Gmail, Google Sheets Automation
Enjoy automated lead capture and streamlined onboarding!
For any issues, please contact the project maintainer or open an issue on your workflow repository.





