Enrich inbound leads with OpenAI, NewsAPI, Google Sheets, and Gmail
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when someone submits an n8n form (“Contact Us”) (plus 1 other trigger). Along the way it connects Google Sheets and Gmail. It also calls newsapi.org and api.openai.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Contact Us”) (plus 1 other trigger).
- 2. Code - Normalize Fields and Score Lead (Code): runs custom JavaScript code
- 11. Gmail - Send Error Alert (Gmail): uses Gmail
- 3. Code - Validate Required Fields (Code): runs custom JavaScript code
- 4. HTTP - NewsAPI Company Research (HTTP Request): calls newsapi.org
- 5. Code - Parse News and Build Research Brief (Code): runs custom JavaScript code
- 6. HTTP - OpenAI Research and Outreach Draft (HTTP Request): calls api.openai.com (POST)
- 7. Code - Parse AI Response Safely (Code): runs custom JavaScript code
- 8. Sheets - Save Lead to CRM (Google Sheets): append
- 9. Gmail - Notify Sales Rep with Intelligence and Draft (Gmail): uses Gmail
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
HTTP calls to: newsapi.org, api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow captures inbound contact form submissions, enriches each lead with recent company news from NewsAPI, generates company intelligence and a personalized outreach draft using OpenAI, logs the result to Google Sheets, and emails an…