Triage and draft support replies using Anthropic and Google Sheets

Go to Workflow
0 views
Built by SEVENEDGE SEVENEDGE
Created on August 19, 2026

Description

Quick overview
This workflow receives support tickets via webhook (or manual test), uses Anthropic chat models to triage, research your documentation over HTTP, and draft a reply, then either auto-sends or pauses for human approval, and logs outcomes to Google Sheets.

How it works
Receives a ticket via a POST webhook (or a manual test run that builds a sample ticket) and normalizes the ticket fields.
Uses an Anthropic chat model to classify the ticket (category, severity, sentiment, question vs bug, and whether it contains credentials).
If credentials are detected, skips AI drafting and produces a fixed security-hold reply with an internal note.
If no credentials are detected, uses an Anthropic chat model to fetch and review relevant pages from your docs site via HTTP and extract key facts, suggested resolution, and any docs gap.
Uses an Anthropic chat model to draft a customer reply constrained to the research findings, then checks whether it is safe to auto-send based on severity, research coverage, and draft confidence.
If auto-send criteria are not met, posts a review message (with Send/Rewrite/Escalate links) to your configured webhook endpoint and pauses until a human decision resumes the run.
Appends a ledger row with classification, research, draft, and routing details to Google Sheets and optionally sends a separate docs-gap notification when research finds no answer.

Setup
Add an Anthropic chat model credential and select it for the triage, research, and drafting chat model nodes.
Configure the values in the Settings step, especially your product context, severity definitions, tone guide, docsBaseUrl, autoSendMaxSeverity, and notifyWebhookUrl for reviewer/docs-gap notifications.
Create a Google Sheets ledger with the specified header columns, then connect your Google Sheets account and select the target spreadsheet and sheet in the logging step.
If using the webhook trigger, copy the Ticket webhook production URL into your helpdesk (POSTing at least text, email, and subject) and test with a manual run before routing real tickets.

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic
Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured