How It Works:
Lead Capture & Preparation
A website form submission (via n8n Form Trigger) kicks off the workflow.
Lead data (name, email, job title, etc.) is collected and standardized.
A unique leadId is generated for tracking.
Email Validation
Email is verified using the Reoon API.
If valid: workflow continues.
If invalid: lead is flagged, a Slack alert is sent, and the process halts.
Company Research & Enrichment
Company website is scraped (via Apify) for contact and business data.
URLs and data are parsed, structured, and aggregated.
If available, LinkedIn profile and recent posts are scraped.
OpenAI analyzes all sources (site + LinkedIn) to extract key insights: mission, offerings, audience, etc.
Data is merged into a structured, human-readable company profile.
Behavior Analysis & Email Sequence Generation
AI analyzes lead behavior: pain points, decision style, and communication tone.
OpenAI generates a tailored 3-email nurturing sequence (subject lines, copy, CTA, psychological triggers).
The first email is converted into responsive HTML and sent.
All data is logged in Airtable: lead profile, email content, and sales stage.
Reply Handling & Automated Follow-ups
Replies are monitored via Gmail Trigger.
Lead is matched in Airtable; current stage is checked.
AI generates personalized replies based on context and template logic:
Stage 1 reply → Send 2nd email.
Stage 2 reply → Send 3rd email.
Each response is saved to Airtable, updating the lead's status and stage.
Scheduled Follow-ups for Silent Leads
A daily trigger checks Airtable for non-responders.
If 4+ days have passed since the last email:
Stage 1 → Send the 2nd email with a fresh subject line.
Stage 2 → Send the 3rd email with a new subject.
Emails are formatted, sent, and logged.
Airtable updates the lead’s stage and reply status accordingly.