{
  "name": "Build an AI IT support agent with Azure Search, Entra ID & Jira",
  "nodes": [
    {
      "id": "0f922d64-d8c9-4480-a6cd-658d2728e121",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -380,
        -140
      ]
    },
    {
      "id": "cb8d7008-5351-4758-be3e-485bce521a67",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        60,
        80
      ]
    },
    {
      "id": "d02e4e7d-8d63-44a6-828b-648f80c2223e",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        240,
        120
      ]
    },
    {
      "id": "5c365f51-7a0a-4ea9-bc4f-1be57d75ec32",
      "name": "Create Jira Ticket",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        420,
        140
      ]
    },
    {
      "id": "afbc48bf-06d4-4d91-9eb3-06365097c819",
      "name": "IT Support Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        360,
        -140
      ]
    },
    {
      "id": "361838b8-d0ec-4ccc-8962-3877d97709ad",
      "name": "On Knowledge Upload",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -360,
        -500
      ]
    },
    {
      "id": "2bd73569-dbf6-43c0-b23d-5345dd5daf63",
      "name": "Split Out Binary Files",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -160,
        -500
      ]
    },
    {
      "id": "e13fc33f-e203-4a52-895d-dfe8dde68e9f",
      "name": "Get Embeddings",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        -500
      ]
    },
    {
      "id": "318e8f5b-5ab8-4dcf-83cd-1b2489f61809",
      "name": "Prep Content",
      "type": "n8n-nodes-base.code",
      "position": [
        40,
        -500
      ]
    },
    {
      "id": "b7012bae-3784-4f7f-8063-80bace44400a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -580
      ],
      "parameters": {
        "width": 1540,
        "height": 280,
        "content": "## 2. Uploading Docs to Azure AI Search Index"
      }
    },
    {
      "id": "fd7b2aa1-ba54-447e-bf1f-91db4b996ed8",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -300,
        -820
      ]
    },
    {
      "id": "21970d41-85ef-4cb0-a77c-b2f3ba5d278c",
      "name": "Set Common Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        -820
      ]
    },
    {
      "id": "e638ce32-3220-47a6-8e77-d42e7411d358",
      "name": "Create Azure AI Search Service",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        120,
        -820
      ]
    },
    {
      "id": "9b641627-eb3d-43e9-9716-61e752262d73",
      "name": "Get Azure AI Search Admin Key",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        -820
      ]
    },
    {
      "id": "66d8fb83-562f-42ea-ab18-3df5551404d7",
      "name": "Create Azure AI Vector Index",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        -820
      ]
    },
    {
      "id": "9be7ca4e-bf14-4a40-9797-7370618c7557",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -900
      ],
      "parameters": {
        "width": 1420,
        "height": 280,
        "content": "## 1. Create the Azure AI Search Index"
      }
    },
    {
      "id": "1b06b5a5-dc44-4544-b288-5ff6bfd25497",
      "name": "Get Azure AI Search Admin Key1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        -500
      ]
    },
    {
      "id": "c359c7d7-b282-4559-b683-daaf34ac6706",
      "name": "Set Common Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        -500
      ]
    },
    {
      "id": "fbaa77a9-58f9-4179-afb2-53a2003b3e57",
      "name": "Upload Embedding to Vector Store",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        -500
      ]
    },
    {
      "id": "29cf1c12-247d-43dd-8314-10f80cc0bd80",
      "name": "Get Embeddings1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1440,
        -40
      ]
    },
    {
      "id": "3c0d7268-d721-4bef-a0bf-1f51084ff627",
      "name": "Semantic Search",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1200,
        -40
      ]
    },
    {
      "id": "678d364c-3a6e-4b30-95cd-c6ce5fd12851",
      "name": "Invoke Query Vector Store Webhook",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        900,
        -160
      ]
    },
    {
      "id": "c6dc5556-3579-4177-ab2e-2de929284542",
      "name": "Get Azure AI Search Admin Key2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1680,
        -40
      ]
    },
    {
      "id": "a816d8f2-f184-401d-b4b8-7c0ed3238c85",
      "name": "Enable Semantic Search",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        340,
        -820
      ]
    },
    {
      "id": "514f2ab6-960b-4f7c-8a2a-36073f0d8377",
      "name": "Query Azure AI Search Index",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1920,
        -40
      ]
    },
    {
      "id": "f70b6cf0-7459-42e3-8fc3-0f3e42afbac1",
      "name": "Reset User Password",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        600,
        120
      ]
    },
    {
      "id": "eeb82b32-5d48-44c3-8bbf-9eb65312469f",
      "name": "Query Microsoft Entra ID Users",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        800,
        40
      ]
    },
    {
      "id": "3c6c611c-2dc6-40a7-9815-c361e13ac368",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        -100
      ],
      "parameters": {
        "width": 1000,
        "height": 240,
        "content": "## Vector Store Search"
      }
    },
    {
      "id": "49e40637-47ca-4c42-a112-4ac2c3b1b074",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -460,
        -220
      ],
      "parameters": {
        "width": 1500,
        "height": 520,
        "content": "## Agent"
      }
    },
    {
      "id": "89b7f5da-7ed9-4d8b-a674-78cbdf53c5e3",
      "name": "Set Common Fields2",
      "type": "n8n-nodes-base.set",
      "position": [
        -160,
        -140
      ]
    }
  ],
  "connections": {
    "Prep Content": {
      "main": [
        [
          {
            "node": "Get Embeddings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "IT Support Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Get Embeddings": {
      "main": [
        [
          {
            "node": "Set Common Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Embeddings1": {
      "main": [
        [
          {
            "node": "Get Azure AI Search Admin Key2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Semantic Search": {
      "main": [
        [
          {
            "node": "Get Embeddings1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Common Fields": {
      "main": [
        [
          {
            "node": "Create Azure AI Search Service",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Jira Ticket": {
      "ai_tool": [
        [
          {
            "node": "IT Support Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set Common Fields1": {
      "main": [
        [
          {
            "node": "Get Azure AI Search Admin Key1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Common Fields2": {
      "main": [
        [
          {
            "node": "IT Support Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On Knowledge Upload": {
      "main": [
        [
          {
            "node": "Split Out Binary Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reset User Password": {
      "ai_tool": [
        [
          {
            "node": "IT Support Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Enable Semantic Search": {
      "main": [
        [
          {
            "node": "Get Azure AI Search Admin Key",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Binary Files": {
      "main": [
        [
          {
            "node": "Prep Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "IT Support Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Set Common Fields2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Azure AI Search Admin Key": {
      "main": [
        [
          {
            "node": "Create Azure AI Vector Index",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Azure AI Search Service": {
      "main": [
        [
          {
            "node": "Enable Semantic Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Azure AI Search Admin Key1": {
      "main": [
        [
          {
            "node": "Upload Embedding to Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Azure AI Search Admin Key2": {
      "main": [
        [
          {
            "node": "Query Azure AI Search Index",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query Microsoft Entra ID Users": {
      "ai_tool": [
        [
          {
            "node": "IT Support Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Upload Embedding to Vector Store": {
      "main": [
        []
      ]
    },
    "Invoke Query Vector Store Webhook": {
      "ai_tool": [
        [
          {
            "node": "IT Support Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set Common Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}