Generate personalized HubSpot campaign emails with Groq AI and Gmail
Ready for 3.0What 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
Other Groq + Gmail templates (125) · Other HubSpot + Gmail templates (102) · Other HubSpot + Groq templates (4)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
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…