Gmail replies with HubSpot context

Drafts a HubSpot-aware email reply, posts it to Slack, sends on approval. This n8n template watches Gmail for new inbound emails with a Gmail Trigger, looks up the sender's contact and associations in HubSpot, and asks Google Gemini through Google AI Studio for a concise, friendly reply. The style constraints ask for about 150 words or fewer, a single call to action and an optional clarifying question. The draft is posted to a Slack channel for approval, and once approved the reply is sent through Gmail in the original thread. It suits support and sales teams that want a human approval before each reply.

n8nRead on 2026-11-167 steps

Steps

  1. Trigger: Gmail trigger watches for new inbound emailsGmail
  2. Sender filter excludes internal domains
  3. HubSpot lookup fetches the sender's contextHubSpot
    Contact, deals, companies, tickets.
  4. CRM context normalized for the LLM
  5. Gemini generates a concise, friendly replyGoogle Gemini
  6. Slack approval posts the draftSlack
  7. Output: If approved, replies via Gmail in threadGmail

Limits

  • The page names Gemini but no model.
  • Every reply waits for a person to approve it in Slack.

What it does well

  • No reply is sent before approval in Slack.
  • Replies stay in the original Gmail thread.

Before you import

Setup: connect Gmail, HubSpot OAuth2, a Google AI Studio API key and Slack; an optional filter and the prompt can be adjusted before activating the workflow.

Similar templates