Templates / Enrich inbound leads with OpenAI, NewsAPI, Google Sheets, and Gmail

Enrich inbound leads with OpenAI, NewsAPI, Google Sheets, and Gmail

Ready for 3.0

by Incrementors ✓ · 5 views · created 2026-08-05 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. 2. Code - Normalize Fields and Score Lead (Code): runs custom JavaScript code
  2. 11. Gmail - Send Error Alert (Gmail): uses Gmail
  3. 3. Code - Validate Required Fields (Code): runs custom JavaScript code
  4. 4. HTTP - NewsAPI Company Research (HTTP Request): calls newsapi.org
  5. 5. Code - Parse News and Build Research Brief (Code): runs custom JavaScript code
  6. 6. HTTP - OpenAI Research and Outreach Draft (HTTP Request): calls api.openai.com (POST)
  7. 7. Code - Parse AI Response Safely (Code): runs custom JavaScript code
  8. 8. Sheets - Save Lead to CRM (Google Sheets): append
  9. 9. Gmail - Notify Sales Rep with Intelligence and Draft (Gmail): uses Gmail

Services it uses

Google SheetsGmail

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (6)

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…

Excerpt from Incrementors's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.