Recently, I built an n8n workflow to automate outbound email handling and lead status tracking, making the process fully streamlined from trigger to CRM update.
The goal was to manage multiple email sends, track their status, and handle replies without manual intervention.
Workflow Overview
The workflow starts with a webhook trigger and routes leads based on conditions. Depending on the scenario, it updates lead records, sends emails via API, and responds back through webhooks.
It also handles cases where a lead replies, updating the CRM accordingly.
How It Works
1. Webhook Trigger
The flow starts when data is received via webhook.
2. Conditional Check (If Node)
Determines whether the lead should go through the email flow or reply handling.
Email Sending Flow
3. Switch Node (Rules-based Routing)
Routes leads into multiple paths depending on logic (e.g., email sequence stage).
4. Update Lead Record
Marks the lead with the correct email stage (Sent, Sent1, Sent2, etc.).
5. Send Email (HTTP Request)
Calls an external API (e.g., Instantly or similar) to send emails.
6. Respond to Webhook
Confirms execution back to the source system.
Reply Handling Flow
7. Detect Reply Condition (If Node)
Checks if the lead has responded.
8. Update Lead Status
Marks lead as “Replied” in CRM.
9. Respond to Webhook
Sends confirmation after updating status.
What This Solves
Managing outbound emails manually is:
Time-consuming
Hard to track
Error-prone
This automation:
Handles multi-step email sequences
Tracks email status inside CRM
Sends emails via API automatically
Updates leads when replies are received
Key Learning
Using a Switch node for sequence management makes it easy to scale email flows.
Instead of building separate workflows:
One system handles multiple stages
Clean routing keeps logic maintainable
Tech Stack
n8n for orchestration
CRM (Airtable or similar) for lead tracking
Email API (Instantly or similar) for sending emails
Webhooks for real-time triggers
Final Thought
This setup creates a solid base for a fully automated outbound system.
You can extend it further with:
AI-based personalization
Follow-up optimization
Lead scoring before sending
