Templates / Draft personalized cold emails from Google Sheets using Gemini and HubSpot

Draft personalized cold emails from Google Sheets using Gemini and HubSpot

Needs changes

by Vyrazu Labs ✓ · 7 views · created 2026-07-17 · Lead Generation, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets, Google Gemini Chat Model and HTTP Request. It also calls api.hubapi.com and api.tavily.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Configure Batch Size (Edit Fields (Set)): sets 1 field: BATCH_SIZE
  2. Read Leads from Sheets (Google Sheets): uses Google Sheets
  3. Select Lead Row (Code): runs custom JavaScript code
  4. Process Leads in Batches (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Research Lead Agent (AI Agent): runs an AI agent, with model: Gemini Lead Research; 1 tool (Activate Search Tool); output parser: Parse Research Output
  6. Remove Markdown from Research (Code): runs custom JavaScript code
  7. Draft Email Content (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini Email Generation
  8. Extract Email Details (Code): runs custom JavaScript code
  9. Create Contact in HubSpot (HTTP Request): calls api.hubapi.com (POST)
  10. Identify HubSpot Contact ID (Code): runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Services it uses

Google SheetsGoogle Gemini Chat ModelHTTP Request

HTTP calls to: api.hubapi.com, api.tavily.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Research Lead Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Research Lead Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

Quick overview This workflow batch-processes leads from Google Sheets, researches each person and company using Tavily plus Google Gemini, drafts a personalized cold email, then creates/updates the contact in HubSpot with a research note and a saved email…

Excerpt from Vyrazu Labs'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.