# Send cold outreach from lead files and classify Gmail replies with OpenRouter

> Quick overview This workflow imports leads from an uploaded file into an n8n Data Table, sends a first-touch cold email through Gmail on a schedule or manually, then watches Gmail for replies and uses an OpenRouter LLM to classify interest and flag leads for human handoff. How it works 1. Receives an uploaded lead file via an n8n Form trigger and extracts rows from the file. 2. Upserts each lead (name and email) into an n8n Data Table and sets the lead status to newleads. 3. Runs on a schedule (or on-demand) to load the outreach subject and body, fetch leads with status newleads, and send each email via Gmail with the recipient’s name merged into the message. 4. Records each sent email in a separate n8n Data Table with Gmail message/thread IDs and updates the lead’s status to firstoffer to prevent re-sending. 5. Triggers when a new Gmail message arrives, matches the sender to a lead by email address, and stores the reply in the email inbox Data Table. 6. Fetches the full thread history

- **Domain**: `n8n-workflow-20944.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/20944
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20944.n8n.io
- Documentation: https://n8n.io/workflows/20944
