{
  "name": "Automate support ticket triage and resolution with JIRA and AI",
  "nodes": [
    {
      "id": "423f3d03-ffe8-419c-8842-95fcda213eb3",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1540,
        -400
      ]
    },
    {
      "id": "34ed006b-ecef-4bae-8493-ae43d4927dc3",
      "name": "Get Open Tickets",
      "type": "n8n-nodes-base.jira",
      "position": [
        -1340,
        -400
      ]
    },
    {
      "id": "4c7d6b23-23d5-410e-92f0-5c9244eb190f",
      "name": "Simplify Ticket",
      "type": "n8n-nodes-base.set",
      "position": [
        -800,
        -400
      ]
    },
    {
      "id": "24714621-4e64-415f-b388-6e029997942d",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -620,
        -220
      ]
    },
    {
      "id": "8724cd2d-7f4f-4f8d-beef-23d0360f2487",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -420,
        -220
      ]
    },
    {
      "id": "26a7d493-73e4-4ce3-aff1-0357ba5a1df2",
      "name": "Label, Prioritize & Rewrite",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -600,
        -400
      ]
    },
    {
      "id": "909d4901-2c77-44aa-8a21-97a604351b22",
      "name": "Update Labels, Priority and Description",
      "type": "n8n-nodes-base.jira",
      "position": [
        -240,
        -400
      ]
    },
    {
      "id": "2365cb60-ec67-4d1e-9b8d-1749cf925800",
      "name": "Get Recent Similar Issues Resolved",
      "type": "n8n-nodes-base.jira",
      "position": [
        120,
        -360
      ]
    },
    {
      "id": "a6e8937c-c26c-4659-809a-33ab4b2e7da6",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        340,
        -360
      ]
    },
    {
      "id": "eec2ee2b-12ab-4cd3-9eb9-e300b5c27e81",
      "name": "Issue Ref",
      "type": "n8n-nodes-base.noOp",
      "position": [
        560,
        -200
      ]
    },
    {
      "id": "3f33f567-baa0-4ca8-8a05-05302b0807aa",
      "name": "Get Comments",
      "type": "n8n-nodes-base.jira",
      "position": [
        1000,
        -200
      ]
    },
    {
      "id": "a631d8d7-8bcd-4a9b-a89b-5f3b7e7ba181",
      "name": "Simplify Comments",
      "type": "n8n-nodes-base.set",
      "position": [
        1220,
        -200
      ]
    },
    {
      "id": "a0047017-0dd4-49d1-bda7-4ed94b3b6400",
      "name": "Summarise Resolution",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1660,
        -200
      ]
    },
    {
      "id": "6bb5d668-062e-417a-a874-9f10a334a19b",
      "name": "Simplify Issue",
      "type": "n8n-nodes-base.set",
      "position": [
        780,
        -200
      ]
    },
    {
      "id": "410c40a1-2f06-4c84-bbd7-1cb3dc5e93af",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1440,
        -200
      ]
    },
    {
      "id": "1cb3d1ac-1084-417f-a39a-1fbc04b10915",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1760,
        -40
      ]
    },
    {
      "id": "0f8325eb-4d23-4a05-9f76-7ef111b8d2d6",
      "name": "Return Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        2020,
        -80
      ]
    },
    {
      "id": "26a32cba-b0b1-4434-b915-6a879eb511e2",
      "name": "Attempt to Resolve Issue",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1100,
        -600
      ]
    },
    {
      "id": "66929c27-6bc2-43a9-8419-554dbbb33849",
      "name": "Aggregate1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        900,
        -600
      ]
    },
    {
      "id": "bbf5bb39-a933-49f1-abb6-143b0bce7d08",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1200,
        -440
      ]
    },
    {
      "id": "f7802fbc-96b0-4dcb-98c6-ef9051959728",
      "name": "Add Comment to Issue",
      "type": "n8n-nodes-base.jira",
      "position": [
        1460,
        -600
      ]
    },
    {
      "id": "a294329c-8ff6-4b2f-aa38-e9661d797f7e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1620,
        -600
      ],
      "parameters": {
        "width": 680,
        "height": 460,
        "content": "## 1. Get Open Tickets\n[Read more about the Scheduled Trigger node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.scheduletrigger)\n\nWe can use a scheduled trigger to aggressively "
      }
    },
    {
      "id": "d201a66e-b64b-4b55-b785-9ab2d78f5362",
      "name": "Mark as Seen",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -1140,
        -400
      ]
    },
    {
      "id": "72446f8f-07f8-4d06-afe7-ea7ca905183b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -600
      ],
      "parameters": {
        "width": 860,
        "height": 540,
        "content": "## 2. Automate Triaging of Ticket\n[Read more about the Basic LLM node](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainllm)\n\nNew tickets always need to be pr"
      }
    },
    {
      "id": "8b17aa91-afcb-4106-9987-c380fcb414b6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -600
      ],
      "parameters": {
        "width": 760,
        "height": 600,
        "content": "## 3. Attempt to Resolve Ticket Using Previously Resolved Issues\n[Learn more about the JIRA node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.jira)\n\nThere are a number of approac"
      }
    },
    {
      "id": "ea4b420e-7e93-46e6-a94c-96ff96ce38f0",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        -800
      ],
      "parameters": {
        "width": 860,
        "height": 520,
        "content": "## 4. Suggest a Resolution via Comment\n[Learn more about the JIRA node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.jira)\n\nFinally, we provide the context of past resolved ticket"
      }
    },
    {
      "id": "de26a64a-73dc-4952-946b-c45af9d712ce",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2100,
        -1040
      ],
      "parameters": {
        "width": 440,
        "height": 1100,
        "content": "## Try It Out!\n### This n8n template automates triaging of newly opened support tickets and issue resolution via JIRA.\n\nIf your organisation deals with a large number of support requests daily, automa"
      }
    }
  ],
  "connections": {
    "Aggregate": {
      "main": [
        [
          {
            "node": "Summarise Resolution",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Issue Ref": {
      "main": [
        [
          {
            "node": "Simplify Issue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Attempt to Resolve Issue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Comments": {
      "main": [
        [
          {
            "node": "Simplify Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark as Seen": {
      "main": [
        [
          {
            "node": "Simplify Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Return Fields": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simplify Issue": {
      "main": [
        [
          {
            "node": "Get Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Issue Ref",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simplify Ticket": {
      "main": [
        [
          {
            "node": "Label, Prioritize & Rewrite",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Open Tickets": {
      "main": [
        [
          {
            "node": "Mark as Seen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Open Tickets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Label, Prioritize & Rewrite",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simplify Comments": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Summarise Resolution",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Attempt to Resolve Issue",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Summarise Resolution": {
      "main": [
        [
          {
            "node": "Return Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Attempt to Resolve Issue": {
      "main": [
        [
          {
            "node": "Add Comment to Issue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Label, Prioritize & Rewrite",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Label, Prioritize & Rewrite": {
      "main": [
        [
          {
            "node": "Update Labels, Priority and Description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Recent Similar Issues Resolved": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Labels, Priority and Description": {
      "main": [
        [
          {
            "node": "Get Recent Similar Issues Resolved",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}