Enrich inbound leads with OpenAI, NewsAPI, Google Sheets, and Gmail
Go to WorkflowDescription
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 HTML summary to a sales rep via Gmail.
How it works
Receives a new website contact submission via an n8n Form trigger.
Normalizes the submitted fields, extracts a clean website domain, and assigns a Hot/Warm/Cold lead score based on job title keywords.
Validates required inputs, then queries NewsAPI for recent articles about the company and compiles a short research brief.
Sends the lead context and news brief to OpenAI Chat Completions to return structured company intelligence and an outreach email subject/body in JSON.
Appends the enriched lead (including score, news summary, and outreach draft) to a Google Sheets “leads” tab.
Sends the sales rep a formatted Gmail message with the lead details, AI-generated intelligence, and the ready-to-review outreach draft.
If any step fails, sends a Gmail error alert containing the error message, failed node name, and execution ID.
Setup
Add an OpenAI API credential in n8n and ensure the OpenAI request node uses it.
Get a NewsAPI key and replace YOUR_NEWS_API_KEY in the NewsAPI HTTP request header.
Connect Google Sheets OAuth credentials and replace YOUR_LEAD_CRM_SHEET_ID, then create a spreadsheet with a “leads” tab and the required column headers.
Connect Gmail OAuth2 credentials and replace YOUR_SALES_REP_EMAIL for both the sales notification and error alert emails.
Publish the n8n Form and embed or link its form URL on your website contact page.