Automate B2B lead generation, enrich data with AI agents, and draft hyper-personalized introductory emails using OpenAI (GPT-4o) and Google Sheets in this comprehensive n8n workflow.
Download this n8n workflow template and start using it instantly.
This sophisticated n8n workflow solves the persistent challenge of manual lead research and initial email outreach. The automation intelligently combines multiple steps: first, it captures the lead and stores it in Google Sheets. Second, an AI Agent, powered by Google Gemini, performs real-time data enrichment by researching the lead's company. Third, using the enriched data, the OpenAI n8n node (GPT-4o) crafts a hyper-personalized email draft based on a detailed B2B template, addressing the lead's specific pain points. This streamlined n8n workflow dramatically reduces manual work for sales teams, allowing them to focus solely on reviewing and sending perfectly targeted, high-quality emails, making this a crucial n8n template for modern sales operations.
The n8n workflow operates in two main phases: Lead Capture & Enrichment, followed by Personalized Drafting.
On form submission n8n trigger, capturing essential lead details (Name, Company, Email) through an n8n form.Append row in sheet n8n node, setting the initial Status to 'To Send'.AI Agent is triggered. This agent uses the lead's company name and executes a web search (via the HTTP Request tool and the Google Gemini Chat Model) to find and summarize company activities and location.Code n8n node parses the AI Agent's response to cleanly extract structured fields for Company Information and Location.Update row in sheet n8n node adds this enriched data back into the lead's Google Sheet row.Get row(s) in sheet n8n node initiates the drafting phase by fetching all leads with the status 'To Send'.Introductory email n8n node (using OpenAI's GPT-4o) takes all collected data (form input + enriched data) and generates a unique, customized email subject and body based on a predefined prompt template.Create a draft (Gmail) n8n node saves this AI-generated content directly into the sales team's Gmail drafts folder, ready for final review.Append or update row in sheet n8n node marks the lead's status as 'Drafted' and logs the date, maintaining accuracy within the n8n workflow.To install and utilize this n8n template, follow these steps:
AI Agent node for company research.Introductory email n8n node to customize the B2B email template and company information (e.g., replace placeholder company names with yours) for optimal results. On form submission (n8n trigger): The starting n8n trigger point, used to capture lead data via an embedded form.
Append row in sheet (Google Sheets): Logs the incoming lead data and sets the initial status to 'To Send' in the specified sheet.
AI Agent (LangChain Agent n8n node): Orchestrates lead enrichment. It is configured to search online (using the HTTP Request tool) for company details and uses the Google Gemini Chat Model to process the findings.
Code (n8n node): Parses the output from the AI Agent, using JavaScript logic to extract 'CompanyDescription' and 'CompanyLocation' into separate, structured variables.
Get row(s) in sheet (Google Sheets n8n node): Filters the lead sheet for rows matching 'Status = To Send', acting as the internal n8n trigger for the drafting process.
Introductory email (OpenAI n8n node): Leverages the powerful chatgpt-4o-latest model to dynamically create a personalized subject and body for the outreach email, using lead and company data.
Create a draft (Gmail n8n node): Creates the draft email using the EmailSubject and EmailContent variables generated by the OpenAI n8n node, addressed to the lead's Email ID.
Append or update row in sheet (Google Sheets n8n node): Final update action, changing the lead's status to 'Drafted' and logging the current timestamp.
Automate your lead follow-up using this powerful n8n workflow. Integrate Gmail and Twilio for timely multi-channel communication, leveraging conditional logic to track engagement. Use this n8n templates for better CRM.

Automate meeting scheduling for new Zoho CRM leads using an advanced n8n workflow. This n8n workflow checks Google Calendar availability, detects timezones, and generates personalized invites via Google Gemini AI.

Use this powerful n8n workflow to capture website leads instantly. Automatically log form submissions to Google Sheets and notify your team via Slack. Get started with n8n templates today.

Use this comprehensive n8n workflow to automatically capture landing page leads, validate crucial data fields, create Zoho CRM leads, assign corresponding Jira tasks, and notify your sales team via Slack. Deploy this reliable n8n template today.

Deploy two powerful n8n AI agents in a single n8n workflow: a Lead Qualifier using GPT-4o-mini and a stateful Ecommerce Chatbot. Use these n8n templates to automate customer service.

Use this advanced n8n workflow to automate lead qualification with Google Gemini, initiate AI phone calls via VAPI, schedule meetings with Zoom and Google Calendar, and update HubSpot and Mailchimp segmentation automatically.

Founder - SoulAds.ai, BuildmyAIFlow.agency, peppy production. The curious mind behind many startups and now the driving force behind a new wave of AI-powered brand storytelling through SoulAds.ai and automation through BuildmyAIflow.agency.







































