Templates / Triage and draft Gmail support replies with Stripe, GPT-4.1, and Slack

Triage and draft Gmail support replies with Stripe, GPT-4.1, and Slack

Needs changes

by May Zhan ✓ · 16 views · created 2026-08-07 · Ticket Management, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 32 nodes and runs on Gmail events. Along the way it connects OpenAI Chat Model, Stripe, Gmail and Slack and 1 more. It also calls api.stripe.com and gmail.googleapis.com over HTTP.

How it runs

Trigger: On Gmail events.

  1. Set Support Parameters (Edit Fields (Set)): sets 5 fields: companyName, supportFromEmail, supportEmailAddresses…
  2. Filter: keeps only the items that match a condition
  3. Retrieve Full Email Message (Gmail): get
  4. Batch Process Messages (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Extract Key Email Details (Edit Fields (Set)): sets 5 fields: From, Subject, threadId…
  6. Fetch Email Metadata (HTTP Request): calls an HTTP API
  7. Extract Gmail Thread ID (Code): runs custom JavaScript code
  8. Parse Email Content (Code): runs custom JavaScript code
  9. Retrieve Email Thread History (Gmail): get (thread)
  10. Build Thread Transcript (Code): runs custom JavaScript code

…plus 17 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelStripeGmailSlackGoogle Docs

HTTP calls to: api.stripe.com, gmail.googleapis.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Draft Customer Reply (v1.7), AI Draft Non-Customer Reply (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Draft Customer Reply (v1.7), AI Draft Non-Customer Reply (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (14)

From the author

Quick Overview This workflow polls Gmail for new inbox emails, looks up the sender in Stripe to classify them as a customer or non-customer, uses OpenAI plus Google Docs playbooks to draft a reply, and posts the draft to Slack for human review while sending…

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