Generate personalized HubSpot campaign emails with Groq AI and Gmail
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 7 nodes and runs on a schedule (every day). Along the way it connects Groq Chat Model, Gmail and HubSpot.
How it runs
Trigger: On a schedule (every day).
- Search contacts (HubSpot): search
- Loop Over Contacts (Loop Over Items (Split in Batches)): loops over the items in batches
- AI Agent: runs an AI agent
- Groq Chat Model: uses Groq Chat Model
- Format AI's output (Code): runs custom JavaScript code
- Send a message (Gmail): uses Gmail
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Gmail
n8n-nodes-base.gmail - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Code
n8n-nodes-base.code - HubSpot
n8n-nodes-base.hubspot
From the author
How it works This workflow runs on a schedule and retrieves newly created HubSpot contacts from the past 24 hours. It processes each contact individually and generates a tailored marketing campaign using an AI model. The generated content is formatted into a…