Triage support tickets with Claude Sonnet, Infini Analytics, and Slack

Go to Workflow
0 views
Built by Raul Raul
Created on July 09, 2026

Description

Quick overview
Automatically triage incoming support tickets with an AI agent powered by Claude Sonnet. High-confidence responses are sent instantly, low-confidence cases escalate to a human on Slack, and every step is logged in Infini Analytics for full observability.

How it works
A webhook receives the incoming support ticket and generates a unique execution_id to correlate every event of this run.
Infini Analytics logs a START event for the execution.
An AI Agent (Claude Sonnet) reads the ticket, optionally queries a knowledge base data table, and drafts a response with a confidence score.
The agent logs structured ticket data via a data table tool (Infini Analytics records this as an EVENT).
An IF node checks the confidence: high-confidence tickets get an automatic reply and log an EVENT; low-confidence tickets escalate to a human on Slack and log a WARNING.
Infini Analytics logs the final END event, or an ERROR event if any step failed along the way.

Setup
Import this workflow into your n8n instance and open it in the editor.
Create an Anthropic credential with your Claude API key and select it in the AI Agent node
Create an Infini Analytics credential with your Bearer Token, then paste your Automation ID (from analytics.infini.es) into each Infini Analytics node.
Create a Slack credential and choose the channel or user that should receive escalated tickets.
Replace the Webhook trigger with your helpdesk's outgoing webhook, or trigger it manually to test the flow end to end.

Requirements
An Infini Analytics account (analytics.infini.es) with at least one automation created
An Anthropic API key (Claude Sonnet)
A Slack workspace with permission to post messages
A helpdesk or form that can call a webhook when a new ticket arrives

Customization
Adjust the confidence threshold in the IF node to control how often tickets escalate to a human
Swap the Slack notification for email or Microsoft Teams
Add more Infini Analytics EVENT nodes to log additional checkpoints (e.g. each tool call)
Replace Claude Sonnet with another supported chat model
Replace the Slack/logging branch inputs to this IF with your own action node's output once you add real ticket-resolution logic

Additional info
All events share the same execution_id, so you can see the full lifecycle of each ticket — from START to END or ERROR — in one place on your Infini Analytics dashboard.

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic
Slack
n8n-nodes-base.slack
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured