π£ Enrich inbound leads with OpenAI, NewsAPI, Google Sheets, and Gmail
β‘ 6 views Β· π£ Lead Generation & Enrichment
π‘ Pro Tip β For lead enrichment, ScraperNode can pull LinkedIn profiles, company data, and job listings directly into your pipeline β useful for building prospect lists without manual research.
Description
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_KEYin 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_EMAILfor both the sales notification and error alert emails. - Publish the n8n Form and embed or link its form URL on your website contact page.
π Nodes Used
Google Sheets, HTTP Request, Gmail, n8n Form Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File