{
  "name": "Automated Jira ticket responses with GPT-4 and Pinecone knowledge base",
  "nodes": [
    {
      "id": "145032ef-4fe8-41f5-826b-28ccdb708f0a",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1500,
        60
      ]
    },
    {
      "id": "a535a477-1dff-40ec-b9ab-5ef39ae7df81",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1460,
        260
      ]
    },
    {
      "id": "08e9c208-9c18-44a8-977c-7aaeef659ff5",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        1600,
        260
      ]
    },
    {
      "id": "c667b76b-e39f-4d2d-9fb8-090c6714fe14",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1640,
        400
      ]
    },
    {
      "id": "58583546-0717-44f7-8c0a-1439e41c5777",
      "name": "Jira Issue List",
      "type": "n8n-nodes-base.jira",
      "position": [
        160,
        0
      ]
    },
    {
      "id": "7fe43277-2fe6-4d17-ae59-43f5bd76d63b",
      "name": "Jira Issue Detail",
      "type": "n8n-nodes-base.jira",
      "position": [
        780,
        220
      ]
    },
    {
      "id": "23f2d27a-d245-45c2-b168-afd4285342ad",
      "name": "Jira Add Comment",
      "type": "n8n-nodes-base.jira",
      "position": [
        1980,
        260
      ]
    },
    {
      "id": "36551197-cca6-4d18-aca1-cb8e9c20c65c",
      "name": "Jira Assign",
      "type": "n8n-nodes-base.jira",
      "position": [
        2180,
        440
      ]
    },
    {
      "id": "6fbc53a3-cbd5-4da6-8587-1ef2c100569c",
      "name": "check accountId",
      "type": "n8n-nodes-base.if",
      "position": [
        1180,
        220
      ]
    },
    {
      "id": "18548988-495d-4c5f-8dd0-c245881ce995",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        360,
        100
      ]
    },
    {
      "id": "228b44b3-ba50-475a-9df0-13f335834bb5",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        560,
        220
      ]
    },
    {
      "id": "f3b79caf-f65d-459e-8e1b-bd9dc16dc17b",
      "name": "Code2",
      "type": "n8n-nodes-base.code",
      "position": [
        980,
        220
      ]
    },
    {
      "id": "3d03736b-5ec9-465c-b5de-1a58b7470b9a",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -40,
        0
      ]
    },
    {
      "id": "18113aa5-3964-4870-bcdd-173659825115",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -140
      ],
      "parameters": {
        "width": null,
        "height": 820,
        "content": "## Step1 \nScheduled Execution"
      }
    },
    {
      "id": "409f405e-6e9e-4498-993b-a4d63db96720",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        -140
      ],
      "parameters": {
        "width": 1240,
        "height": 820,
        "content": "## Step2\nJira Trigger (Issue Assigned)"
      }
    },
    {
      "id": "ff7675e6-5afb-4117-86ff-64e005558b06",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        -140
      ],
      "parameters": {
        "width": 500,
        "height": 820,
        "content": "## Step3\nAI Assistant"
      }
    },
    {
      "id": "f31aaf67-fa23-45b8-8f52-af3738dd3f52",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        -140
      ],
      "parameters": {
        "width": 500,
        "height": 820,
        "content": "## Step4\nResponse Generation / Ticket Update"
      }
    }
  ],
  "connections": {
    "Code1": {
      "main": [
        [
          {
            "node": "Jira Issue Detail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code2": {
      "main": [
        [
          {
            "node": "check accountId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Jira Add Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Jira Assign": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Jira Issue List": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check accountId": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Jira Add Comment": {
      "main": [
        [
          {
            "node": "Jira Assign",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Jira Issue List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Jira Issue Detail": {
      "main": [
        [
          {
            "node": "Code2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}