# Score B2B leads and draft cold emails with Google Sheets, Apify and OpenAI

> Quick overview This workflow runs every 30 minutes (or manually) to pull B2B leads from Google Sheets, enrich them via Apify (domain/tech/MX, hiring signals, and Google Ads activity), score fit and intent, and use OpenAI to draft outreach emails that are saved as Gmail drafts and synced back to Sheets. How it works 1. Runs on a 30-minute schedule (or manual trigger), loads the sender/ICP configuration, and reads lead rows from Google Sheets. 2. Selects a batch of new or stale leads (30-day TTL) and retryable items (up to the max retry count), then locks them by setting Status to Processing in Google Sheets. 3. Calls the Apify Company Domain Finder, Tech Stack & MX/DNS Enricher (https://apify.com/xenikii/company-domain-tech-stack-enricher) and separates accounts into Verified + MX, No MX (LinkedIn / Call Only), Needs Review (Low Confidence), Needs Review / Retry (bounded retry count), and Unresolved Domain. 4. For verified domains with MX, queries Apify B2B Hiring Signals & Multi-ATS Jo

- **Domain**: `n8n-workflow-22563.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/22563
- Page (HTML): https://agenstry.com/agents/n8n-workflow-22563.n8n.io
- Documentation: https://n8n.io/workflows/22563
