Templates / Triage and escalate support tickets with OpenAI, Google Sheets, and Gmail

Triage and escalate support tickets with OpenAI, Google Sheets, and Gmail

Ready for 3.0

by Faraz Shoaib ✓ · 2 views · created 2026-08-26 · Ticket Management, AI Summarization

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 workflow has 19 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Sheets and Gmail. It also calls api.openai.com over HTTP.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Validate And Redact Ticket (Code): runs custom JavaScript code
  2. Read Tickets in Sheets (Google Sheets): uses Google Sheets
  3. Find Open Duplicate Ticket (Google Sheets): uses Google Sheets
  4. Create SLA Risk Summary (Code): runs custom JavaScript code
  5. Lookup Customer Context (Google Sheets): uses Google Sheets
  6. Check SLA Risk Presence (If): checks a condition and branches into true / false
  7. Load Knowledge Base (Google Sheets): uses Google Sheets
  8. Email SLA Risk Summary (Gmail): uses Gmail
  9. Match Knowledge Base Articles (Code): runs custom JavaScript code
  10. Classify Ticket With OpenAI (HTTP Request): calls api.openai.com (POST)

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

Services it uses

Google SheetsGmail

HTTP calls to: api.openai.com

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.

Nodes used (8)

From the author

Quick overview Triage support tickets with privacy-safe AI, duplicate detection, customer context, knowledge base matching, SLA deadlines, and escalation alerts. This workflow logs tickets in Google Sheets, routes urgent or low-confidence cases to humans, and…

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