Generate empathetic customer replies with Claude AI and auto-escalation
Needs changesWhat this workflow does
This AI workflow has 17 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Anthropic Chat Model, Slack and Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Test Input (Change Me) (Edit Fields (Set)): sets or maps fields
- Set Config (Edit Fields (Set)): sets or maps fields
- Ensure Session (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: Anthropic Chat Model; memory: Memory (Recent 4); output parser: Structured Output Parser
- Post-Process & Sanitize (Code): runs custom JavaScript code
- Risk & Handover Rules (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Draft (Needs Review) (Edit Fields (Set)): sets 2 fields: status, note
- Draft (Auto-OK) (Edit Fields (Set)): sets 1 field: status
- Save to Google Sheets (Google Sheets): append or update
…plus 1 more step. See the full node list below.
Services it uses
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 Agent (Empathy)1 (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (Empathy)1 (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (12)
- Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Webhook
n8n-nodes-base.webhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
🧠 Overview Generate empathetic, professional reply drafts for customer or user messages. The workflow detects sentiment, tone, and risk level, drafts a concise response, sanitizes PII/links/emojis, and auto-escalates risky or low-confidence cases to human…