Create a working lead gen flow — collect data and trigger instant email alerts in real time.
Every modern team collects leads. It could be from a website, a landing page, a chatbot, or a Typeform.
But manually checking for submissions and copying data into a CRM or sending alert emails? That's a productivity killer.
In this chapter, you'll learn how to build your first real-world n8n automation — a simple lead capture workflow that collects data from a form and sends an instant alert email.
It's beginner-friendly, instantly useful, and forms the foundation for bigger automations down the line.
Here's the flow we'll create:
Webhook trigger → Capture form data → Format message → Send email
You'll be able to:
This is the first automation many teams start with — because it delivers immediate value and scales easily.
To follow along, you'll need:
In n8n, start with a blank workflow. Add the Webhook node. This will generate a unique URL that accepts POST requests (i.e., data sent from your form).
Now, go to your form tool and configure the submission action to POST data to this webhook URL.
Click "Execute Workflow" in n8n to start listening.
Fill out your form and submit it. You should see the incoming data arrive in the webhook node — name, email, message, and any other fields.
If it worked, click "Stop Execution" and save the workflow.
Use the Set node to clean or organize the incoming data. For example:
This isn't required but helps when passing info into emails or databases.
Next, add the Email node. n8n supports SMTP, Gmail, and others.
Subject example:
New Lead from {{$json["name"]}}
Click Execute Node to send a test email. If it lands in your inbox — you're set.
When everything works, click "Activate" to publish the workflow.
Now, every time your form is submitted, your team gets an email in real-time. No delays. No spreadsheets. No missed leads.
You now know how to:
This simple workflow can evolve into more complex flows — saving leads to Airtable, triggering Slack alerts, or even auto-enriching leads with Clearbit.
In Chapter 3, we go deeper.
You'll learn how to connect APIs like Notion, Airtable, and Slack — so you can store leads in structured formats, trigger team alerts, and begin layering more automation.
👉 Continue to Chapter 3: Connecting APIs — Automating with Notion, Airtable, and Slack