Use this sophisticated n8n workflow to enrich your contact database. It leverages Gmail history and GPT-5 Nano for precise extraction, supplemented by Brave Search API to find social media links and websites, outputting clean data to Google Sheets.
Download this n8n workflow template and start using it instantly.
Managing vast contact lists scattered across email threads can be inefficient. This powerful n8n workflow solves this by creating a highly structured, enriched contact database automatically. It starts by analyzing your Gmail sent items, identifying unique recipients, and then follows a dual-path extraction process. If a full conversation history exists, the content is analyzed by an AI model (like GPT-5 Nano) using the specialized Information Extractor n8n node for precise data scraping (phone, social links). If no history is found, the n8n workflow automatically derives a domain and uses the Brave Search API to find relevant contact pages, scraping the HTML for publicly listed social media and contact details. All gathered data is normalized and appended to a central Google Sheets database. This n8n templates offers a robust solution for contact data management.
The process begins with the manual n8n trigger, initiating the data collection phase.
To deploy this comprehensive n8n workflow template, follow these steps:
name, email, phone, website, facebook, instagram, spotify, youtube, linkedin, twitter, linktree, tiktok, soundcloud, bandcamp. Ensure you configure the 'WriteToDB' n8n node with the correct Spreadsheet ID and Sheet name.This n8n workflow relies on several powerful n8n node types:
Gmail (LoadSentMessages / GetInboxMessages):
Function: Loads all sent emails and later searches for specific conversation history based on the recipient's email.
Key Configuration: LoadSentMessages filters by the SENT label. GetInboxMessages uses an expression to filter by the current contact's email address (={{ $json.To }}).
LangChain Information Extractor (Information Extractor):
Function: Passes email content to the LLM (OpenAI) using a detailed system prompt and JSON schema to extract specific contact fields (phone, web, social links) reliably.
Key Configuration: Uses a highly customized system prompt instructing the model to ignore recipient data and return structured JSON.
Brave Search (SearchWebsite):
Function: Executes targeted web searches using the derived domain name, searching for contact-related pages.
Key Configuration: Query uses the derived website URL (={{ $json.website }}) and returns up to 3 results.
HTTP Request (GetHTML):
Function: Scrapes the HTML content of the contact pages identified by Brave Search.
Key Configuration: Dynamically pulls the URL from the cluster results.
Code (MailParser / HTMLParser):
Function: MailParser extracts basic contact data and intelligently derives corporate website domains, filtering out free providers (e.g., gmail.com). HTMLParser uses complex regex to reliably extract social media links from the scraped HTML content.
Google Sheets (WriteToDB):
Function: The final destination n8n node; it appends the complete, enriched contact record to the specified spreadsheet.
Build a sophisticated Enterprise RAG n8n workflow that automatically indexes documents from Google Drive using the Google Gemini API and answers user queries via a robust AI agent.

Build advanced RAG using contextual summaries. This n8n workflow leverages Kimi-K2 via Featherless.ai for unlimited tokens, Gemini embeddings, and Qdrant vector database storage.

Build a lightning-fast REST API for document Q&A using the PDF Vector n8n node. This production-ready n8n workflow processes documents and returns AI-generated answers with citations and confidence scores.

Use this powerful n8n workflow to automatically build lists of professionals or influencers from any platform using Airtop web extraction and save the results directly to Google Sheets.

Deploy a robust, multi-tenant RAG pipeline using n8n to monitor Google Drive, process various documents (PDF, Excel, Docs), generate OpenAI embeddings, and securely store data in client-specific Supabase vector databases. This advanced n8n workflow ensures data isolation for enterprise clients.









































