Templates / AI email reply based on HubSpot data + Slack approval

AI email reply based on HubSpot data + Slack approval

Ready for 3.0

by Miha ✓ · 2,590 views · created 2025-09-26 · Lead Nurturing, AI Chatbot

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-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on Gmail events. Along the way it connects Google Gemini Chat Model, Gmail, HubSpot and Slack.

How it runs

Trigger: On Gmail events.

  1. Filter: keeps only the items that match a condition
  2. Find Contact by Email (HubSpot): search
  3. Set Record Types (Code): runs custom JavaScript code
  4. List Contact Associations (HTTP Request): calls an HTTP API
  5. Build Batch Read Requests (Code): runs custom JavaScript code
  6. Batch Read Objects (HTTP Request): calls an HTTP API (POST)
  7. Normalize CRM Context for LLM (Code): runs custom JavaScript code
  8. Draft Reply (AI Agent) (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
  9. Wait for Response - Approve Auto-Reply (Slack): send and wait for a reply
  10. If: checks a condition and branches into true / false

…plus 1 more step. See the full node list below.

Services it uses

Google Gemini Chat ModelGmailHubSpotSlack

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Watch Gmail (New Inbound)).

Nodes used (10)

From the author

This n8n template drafts customer-ready email replies using Google Gemini, enriched with HubSpot context (contact, deals, companies, tickets). Each draft is routed to Slack for one-click approval before it’s sent from Gmail—so you move fast without losing…

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