This is an n8n workflow that automates lead generation and cold email outreach for agencies. A single submission of the Lead Machine Form starts the whole process, from finding businesses to sending emails.
The workflow uses Apify to scrape business data based on the business type and location you specify. This includes company names, websites, phone numbers, addresses, and categories. Google Gemini AI extracts email addresses from each business website, and the validated leads are stored in Google Sheets.
OpenAI writes a subject line and body text for each cold email in a Friendly, Professional, or Simple tone. Gmail sends the emails. The spreadsheet is then updated with delivery status and timestamps so you can track the campaign. Conditional logic built from if, set, filter, and wait nodes controls the flow.
- Platform
- n8n workflow
- Trigger
- Lead Machine Form with customizable fields for business type, location, lead quantity, and email style
- Lead scraping
- Apify API: company names, websites, phone numbers, addresses, categories
- Email discovery
- Google Gemini AI extracts email addresses from business websites
- Lead storage
- Google Sheets
- Email writing
- OpenAI generates subject lines and body text
- Email tones
- Friendly, Professional, Simple
- Email delivery
- Gmail
- Tracking
- Delivery status and timestamps recorded in Google Sheets
- Workflow control
- if, set, filter, and wait nodes
- Use cases
- Digital marketing agencies, sales teams, service providers targeting local businesses, B2B cold email campaigns