Classifies every new Gorgias ticket with AI and writes the result back onto the ticket automatically

The Problem

Support agents had to open each new ticket to work out what it was about, how urgent it was, and which order it referred to. Tagging was manual and inconsistent, so views and filters built on tags were unreliable.

The Solution

A Gorgias HTTP integration sends a webhook to n8n whenever a ticket is created. The webhook only carries a ticket ID, so n8n fetches the full ticket through the Gorgias REST API. It extracts the customer, subject, message, and order number, then an AI step classifies the ticket by category, urgency, and sentiment, with a one-line summary. The result goes back to Gorgias as a private internal note and a set of tags (category-*, urgency-*, sentiment-*), so agents see it inside the ticket without opening n8n.

Key Engineering

Result

→ New tickets are classified, summarised, and tagged on creation, with no manual triage step. Tested end to end on a Gorgias dev store connected to a Shopify dev store.

Tech Stack

n8n · Gorgias (HTTP integration, REST API) · Google Gemini · Information Extractor · Shopify (dev store)

Screenshot 2026-10-10 102519.png

Screenshot 2026-10-10 102143.png