Re-engage HubSpot leads using Azure OpenAI GPT-4o, Gmail and Slack
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on a schedule (every 24 hours). Along the way it connects HubSpot, Gmail, Slack and Azure OpenAI Chat Model.
How it runs
Trigger: On a schedule (every 24 hours).
- HubSpot: get many
- Filter: Lead Status = BAD_TIMING (If): checks a condition and branches into true / false
- Batch Leads (Split In Batches) (Loop Over Items (Split in Batches)): loops over the items in batches
- AI: Generate Re-Engagement Follow-Up Email Body (AI Agent): runs an AI agent, with model: Execute Re-Engagement Follow-Up Email Body with Azure OpenAI
- Parse AI JSON (Code): runs custom JavaScript code
- Build AI Error Payload (Code): runs custom JavaScript code
- Gmail: uses Gmail
- Slack: uses Slack
- Slack: uses Slack
Services it uses
Other Gmail + Slack templates (957) · Other HubSpot + Slack templates (137) · Other HubSpot + Gmail templates (102)
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 (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HubSpot
n8n-nodes-base.hubspot - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
From the author
📘 Description This workflow automates daily re-engagement for HubSpot leads that were previously paused due to timing. It runs every 24 hours, fetches recent leads with activity data, and filters only those marked as “bad timing,” ensuring active…