Templates / Generate personalized cold email drafts from Google Sheets with Groq and Tavily

Generate personalized cold email drafts from Google Sheets with Groq and Tavily

Needs changes

by Utkarsh Kapoor ✓ · 26 views · created 2026-06-30 · Lead Nurturing, Multimodal AI

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 14 nodes and runs on a schedule (every hour). Along the way it connects Google Sheets, Groq Chat Model and Gmail. It also calls api.tavily.com over HTTP.

How it runs

Trigger: On a schedule (every hour).

  1. Read Leads (Google Sheets): uses Google Sheets
  2. Filter Unsent (If): checks a condition and branches into true / false
  3. Process One by One (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Research Company (HTTP Request): calls api.tavily.com
  5. Prepare lead context for AI (Edit Fields (Set)): sets 6 fields: lead_name, lead_email, company_name…
  6. Email Writer (AI Agent): runs an AI agent, with model: Groq Llama 3.3 70B
  7. Parse Email (Code): runs custom JavaScript code
  8. Email Valid? (If): checks a condition and branches into true / false
  9. Create Gmail Draft (Gmail): work with draft
  10. Log failed email to sheet (Edit Fields (Set)): sets 1 field: error_log

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

Services it uses

Google SheetsGroq Chat ModelGmail

HTTP calls to: 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 Email Writer (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Email Writer (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 scheduled workflow reads leads from Google Sheets, researches each company with Tavily Search, uses Groq (Llama 3.3 70B) to generate a short personalized cold email, and saves the result as a Gmail draft while updating the lead status back…

Excerpt from Utkarsh Kapoor'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.