{
  "name": "Triage and reply to multilingual support tickets with Anthropic Claude",
  "nodes": [
    {
      "id": "b30ebe2e-6f4e-4faa-be37-e93475a2a03f",
      "name": "Email Trigger (IMAP)",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        -1872,
        64
      ]
    },
    {
      "id": "7a80d209-2c3f-4011-bfa9-f5f81d6a9f98",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1872,
        256
      ]
    },
    {
      "id": "e9fa3657-3950-4360-9fb3-1429ab8c864a",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1648,
        160
      ]
    },
    {
      "id": "6e16757c-fc12-405e-b4c4-7dd885e31e34",
      "name": "Clean HTML",
      "type": "n8n-nodes-base.html",
      "position": [
        -1424,
        160
      ]
    },
    {
      "id": "2ac5a9ea-512b-469e-bb11-628bc0920454",
      "name": "Normalize Ticket Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -1200,
        160
      ]
    },
    {
      "id": "f510b588-4469-4386-b8cd-207a0d172467",
      "name": "Language Detection & Translation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -976,
        160
      ]
    },
    {
      "id": "7f6d8b42-08b8-4e6a-a13c-c933a02373c5",
      "name": "Anthropic Model - Translation",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -1008,
        352
      ]
    },
    {
      "id": "9f5a852f-af4a-4148-97ed-a2647f00e4b0",
      "name": "Translation Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -832,
        352
      ]
    },
    {
      "id": "174cabb0-d024-4b9c-a6dd-fd171b013f91",
      "name": "Support Intelligence Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -592,
        160
      ]
    },
    {
      "id": "88f489e1-f3c9-4f44-a917-2308375c0bc3",
      "name": "Anthropic Model - Intelligence",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -608,
        352
      ]
    },
    {
      "id": "56878b3b-1410-4212-8df6-5a7e0b99adb2",
      "name": "Intelligence Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -448,
        368
      ]
    },
    {
      "id": "01a089f7-b439-4f8c-9801-2c5a4bc86d29",
      "name": "Decision Router",
      "type": "n8n-nodes-base.switch",
      "position": [
        -176,
        144
      ]
    },
    {
      "id": "fe58d0c7-3f2a-4ec9-92ca-bf73997abeae",
      "name": "Draft Reply Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        96,
        48
      ]
    },
    {
      "id": "68a7c723-07e8-48af-b8e6-0decb0cdcc9a",
      "name": "Anthropic Model - Reply",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        96,
        240
      ]
    },
    {
      "id": "f2da4eb7-b757-4b58-bc9f-ea62c9c18df7",
      "name": "Update CRM/Helpdesk",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        48
      ]
    },
    {
      "id": "2abd6fe3-63d4-4f8b-8645-7b7ab82ca5a5",
      "name": "Escalate to Team",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        496,
        288
      ]
    },
    {
      "id": "15a0215a-8c9e-4c14-9592-6665d338c61a",
      "name": "Log Observability Metrics",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        144
      ]
    },
    {
      "id": "67d5f769-0697-4d49-b601-aaa9f2ca165d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        64
      ],
      "parameters": {
        "width": null,
        "height": 272,
        "content": "## ILog Observability Metrics"
      }
    },
    {
      "id": "6eb6169d-1e57-46ab-96bd-f5359fda5aa5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        240
      ],
      "parameters": {
        "width": 256,
        "height": 192,
        "content": "## Escalate to Team"
      }
    },
    {
      "id": "3bf1cb06-cc8c-4a8e-bfdf-d8fc97e5de75",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        -80
      ],
      "parameters": {
        "width": 320,
        "height": 320,
        "content": "## generate reply with context\nCategory, Sentiment:, Urgency."
      }
    },
    {
      "id": "ba350b07-565b-422f-ad51-9d7e49d7a243",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        -80
      ],
      "parameters": {
        "width": null,
        "height": 304,
        "content": "Updates the CRM/helpdesk system with ticket insights and logs workflow metrics such as response time, sentiment, and urgency."
      }
    },
    {
      "id": "f6bd1799-9bef-4f18-97f6-675106184d17",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        16
      ],
      "parameters": {
        "width": 208,
        "height": 384,
        "content": "Decision router sends tickets either to:\n• Auto reply generation\n• Escalation webhook for urgent issues"
      }
    },
    {
      "id": "c9bcb733-612f-4b37-8b64-581d7db7a9e3",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -656,
        -32
      ],
      "parameters": {
        "width": 368,
        "height": 544,
        "content": "## AI AGENT  analyzes  tickets\nAI analyzes sentiment, urgency, category, churn risk, and generates a short summary to guide ticket routing decisions."
      }
    },
    {
      "id": "ea4555c3-f039-4d63-8cb1-640aafac983d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        -32
      ],
      "parameters": {
        "width": 384,
        "height": 528,
        "content": "## AI AGENT for multi Language  support\nDetects the language of the support message and translates it to English when required so downstream AI analysis works consistently."
      }
    },
    {
      "id": "81e5b36e-b976-4af3-aa46-f7f258593033",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1488,
        -16
      ],
      "parameters": {
        "width": 256,
        "height": 400,
        "content": "Cleans HTML content and normalizes ticket fields such as:\nticket ID, email, message body, timestamp, and source channel."
      }
    },
    {
      "id": "d4a7e562-9f75-4343-935b-fa10a6a9575f",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2016,
        -48
      ],
      "parameters": {
        "width": 336,
        "height": 448,
        "content": "Receives support tickets from two sources:\n• Email inbox (IMAP trigger)\n• Webhook endpoint\n\nBoth sources feed messages into the same processing pipeline."
      }
    },
    {
      "id": "4dd478a5-41b9-4f44-844f-37130e1f633e",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2544,
        -32
      ],
      "parameters": {
        "width": 416,
        "height": 464,
        "content": "## How it works\nThis workflow processes incoming support tickets from email or webhooks. Messages are cleaned, normalized, and translated to English if needed. AI agents analyze the ticket to determin"
      }
    }
  ],
  "connections": {
    "Clean HTML": {
      "main": [
        [
          {
            "node": "Normalize Ticket Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Decision Router": {
      "main": [
        [
          {
            "node": "Draft Reply Generator",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Escalate to Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Escalate to Team": {
      "main": [
        [
          {
            "node": "Log Observability Metrics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update CRM/Helpdesk": {
      "main": [
        [
          {
            "node": "Log Observability Metrics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Trigger (IMAP)": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Draft Reply Generator": {
      "main": [
        [
          {
            "node": "Update CRM/Helpdesk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Ticket Data": {
      "main": [
        [
          {
            "node": "Language Detection & Translation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Clean HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Reply": {
      "ai_languageModel": [
        [
          {
            "node": "Draft Reply Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Translation Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Language Detection & Translation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Intelligence Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Support Intelligence Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Support Intelligence Agent": {
      "main": [
        [
          {
            "node": "Decision Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Translation": {
      "ai_languageModel": [
        [
          {
            "node": "Language Detection & Translation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Intelligence": {
      "ai_languageModel": [
        [
          {
            "node": "Support Intelligence Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Language Detection & Translation Agent": {
      "main": [
        [
          {
            "node": "Support Intelligence Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}