{
  "name": "Auto-Triage Help Scout Support Tickets and Route Them to Jira",
  "nodes": [
    {
      "name": "Help Scout — Ticket Created",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "parameters": {
        "method": "POST",
        "url": "https://api.example.com/replace-with-real-endpoint",
        "sendBody": true,
        "options": {}
      },
      "notes": "Help Scout has no dedicated n8n node — use an HTTP Request to the Help Scout API. Trigger on new tickets.",
      "position": [
        260,
        300
      ]
    },
    {
      "name": "Classify Ticket",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1,
      "parameters": {
        "resource": "text",
        "operation": "message",
        "modelId": "gpt-4o-mini",
        "messages": {
          "values": [
            {
              "role": "user",
              "content": "Return JSON {category, urgency, summary} for this support message: {{ $json.text }}"
            }
          ]
        }
      },
      "notes": "Swap in Anthropic or any LLM node if you prefer.",
      "position": [
        500,
        300
      ]
    },
    {
      "name": "Urgent?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "leftValue": "={{ $json.urgency }}",
              "rightValue": "high",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        }
      },
      "notes": "High-urgency tickets take the fast lane.",
      "position": [
        740,
        300
      ]
    },
    {
      "name": "Jira — Create Item",
      "type": "n8n-nodes-base.jira",
      "typeVersion": 1,
      "parameters": {
        "operation": "create"
      },
      "notes": "Create the triaged work item.",
      "position": [
        980,
        300
      ]
    },
    {
      "name": "Respond / Finish",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "parameters": {},
      "notes": "End of flow — extend with extra steps as needed.",
      "position": [
        1220,
        300
      ]
    }
  ],
  "connections": {
    "Help Scout — Ticket Created": {
      "main": [
        [
          {
            "node": "Classify Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Ticket": {
      "main": [
        [
          {
            "node": "Urgent?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Urgent?": {
      "main": [
        [
          {
            "node": "Jira — Create Item",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Jira — Create Item": {
      "main": [
        [
          {
            "node": "Respond / Finish",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
