AI email reply based on HubSpot data + Slack approval
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...
Template notes
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 control.
Ideal for support and sales teams that want speedy, personalized responses while keeping humans in the loop.
---
How it works
Gmail Trigger watches for new inbound emails. Sender filter excludes internal domains (e.g., n8n.io) to avoid auto-replying to teammates. HubSpot contact lookup finds the sender and fetches associated deals/companies/tickets via association + batch read. CRM context is normalized into clean, LLM-friendly fields (no IDs or sensitive noise). Gemini (Google AI Studio) generates a concise, friendly reply using:
Sender name, subject, and message snippet Safe, relevant HubSpot context (e.g., top 1–2 deals or an open ticket) Style constraints (≤ \~150 words, single CTA, optional clarifying question) Slack approval posts the draft to a channel; if approved, n8n replies via Gmail in the original thread.
---
How to use