{
  "id": "paralon-ticket-triage",
  "name": "Ticket triage (Paralon, qwen3.8-27b)",
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "nodes": [
    {
      "id": "n1",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {}
    },
    {
      "id": "n2",
      "name": "Ticket (replace with your Webhook)",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a1",
              "name": "subject",
              "value": "Zipper broke on my jacket",
              "type": "string"
            },
            {
              "id": "a2",
              "name": "message",
              "value": "I got the jacket from order #4482 last week and the zipper is already stuck and the lining is peeling off. I need a replacement or a refund now.",
              "type": "string"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "id": "n3",
      "name": "Basic LLM Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.7,
      "position": [
        460,
        0
      ],
      "parameters": {
        "promptType": "define",
        "text": "=Classify this support ticket.\nSubject: {{ $json.subject }}\nMessage: {{ $json.message }}",
        "hasOutputParser": true
      }
    },
    {
      "id": "n4",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        400,
        220
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "qwen3.8-27b"
        },
        "responsesApiEnabled": false,
        "options": {
          "temperature": 0,
          "extraBody": "{\"chat_template_kwargs\": {\"enable_thinking\": false}}"
        }
      },
      "credentials": {
        "openAiApi": {
          "name": "Paralon"
        }
      }
    },
    {
      "id": "n5",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        620,
        220
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n  \"intent\": {\n   \"type\": \"string\",\n   \"enum\": [\n    \"order_status\",\n    \"cancel_order\",\n    \"return_request\",\n    \"refund_status\",\n    \"damaged_item\",\n    \"wrong_item\",\n    \"payment_failed\",\n    \"discount_code\",\n    \"product_question\",\n    \"shipping_address_change\",\n    \"account_login\",\n    \"complaint\"\n   ]\n  },\n  \"priority\": {\n   \"type\": \"string\",\n   \"enum\": [\n    \"low\",\n    \"normal\",\n    \"high\"\n   ]\n  },\n  \"summary\": {\n   \"type\": \"string\",\n   \"maxLength\": 160\n  }\n },\n \"required\": [\n  \"intent\",\n  \"priority\",\n  \"summary\"\n ]\n}"
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Ticket (replace with your Webhook)": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}