Templates / Re-engage HubSpot leads using Azure OpenAI GPT-4o, Gmail and Slack

Re-engage HubSpot leads using Azure OpenAI GPT-4o, Gmail and Slack

Ready for 3.0

by Rahul Joshi ✓ · 135 views · created 2026-02-19 · Lead Nurturing, Multimodal AI

Ready 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. HubSpot: get many
  2. Filter: Lead Status = BAD_TIMING (If): checks a condition and branches into true / false
  3. Batch Leads (Split In Batches) (Loop Over Items (Split in Batches)): loops over the items in batches
  4. 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
  5. Parse AI JSON (Code): runs custom JavaScript code
  6. Build AI Error Payload (Code): runs custom JavaScript code
  7. Gmail: uses Gmail
  8. Slack: uses Slack
  9. Slack: uses Slack

Services it uses

HubSpotGmailSlackAzure OpenAI Chat Model

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

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…

Excerpt from Rahul Joshi'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.