{
  "name": "Automate ITSM ticket classification and resolution using Gemini, Qdrant and ServiceNow",
  "nodes": [
    {
      "id": "850abce9-599a-413c-a436-60a008c0b5c9",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -128,
        528
      ]
    },
    {
      "id": "ba465b14-47c5-4f6a-9f75-8c55bae9fdac",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -320,
        832
      ]
    },
    {
      "id": "9b779910-299b-4400-9146-f7b6201b1b6f",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -128,
        816
      ]
    },
    {
      "id": "43ca808f-9c37-423d-8c4d-92abee33e3ea",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -800,
        320
      ]
    },
    {
      "id": "89e2f425-c478-4c07-9921-7f70b5e9c952",
      "name": "Text Classifier",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        -528,
        304
      ]
    },
    {
      "id": "fcf2c082-6764-4ef4-aecc-f6bc90c154c0",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -608,
        576
      ]
    },
    {
      "id": "002f60a9-f241-45a8-8be5-f02ed7db3475",
      "name": "Create an incident",
      "type": "n8n-nodes-base.serviceNow",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "d8d72820-7352-4db7-bde0-7f34829dd0a2",
      "name": "Google Gemini Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        272,
        176
      ]
    },
    {
      "id": "c62d043f-e4fd-4bd9-b3bc-352cfe187e0b",
      "name": "Qdrant Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        48,
        832
      ]
    },
    {
      "id": "f503164a-6a5e-4f8e-ab13-b2d9291cdbc0",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        800,
        672
      ]
    },
    {
      "id": "081de542-a82b-4644-a6f3-354a308d6994",
      "name": "Qdrant Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        1008,
        672
      ]
    },
    {
      "id": "8e968996-0d89-484e-8566-0091c67ab3c0",
      "name": "Embeddings Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        928,
        896
      ]
    },
    {
      "id": "68801987-ab93-48da-892f-abec5ed16fc4",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        624,
        688
      ]
    },
    {
      "id": "d61ab112-60d9-4fb2-a6c2-19ce0b54a84a",
      "name": "Embeddings Google Gemini1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        96,
        1056
      ]
    },
    {
      "id": "6d54ec99-6148-491f-8c78-c6f8b797c135",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1200,
        944
      ]
    },
    {
      "id": "fda35534-f519-4ef1-b320-191c0879d3bc",
      "name": "Summarization Chain",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        272,
        16
      ]
    },
    {
      "id": "4ce5cc1b-eafe-4fa8-8b0d-449bdc16ceed",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        320
      ]
    },
    {
      "id": "03943db4-18b1-4fd8-915e-49b8b77d1d66",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        864
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Node Name: Qdrant Vector Store\nType: @n8n/n8n-nodes-langchain.vectorStoreQdrant\nPurpose: Retrieves relevant information from a vector database (Qdrant) based on semantic similarity to the user's input"
      }
    },
    {
      "id": "466ca2f3-9c5f-43d2-994c-fccf2279b67a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        640
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Node Name: Qdrant Vector Store1\nType: @n8n/n8n-nodes-langchain.vectorStoreQdrant\nPurpose: Retrieves semantically similar information from the Qdrant vector database using embeddings.\nKey Parameters:\nM"
      }
    },
    {
      "id": "78002e8e-2210-4856-a7d9-c35bf884c0f8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Node Name: Google Gemini Chat Model2\nType: @n8n/n8n-nodes-langchain.lmChatGoogleGemini\nPurpose: Generates enriched responses or follow-up actions after classification or retrieval.\n Key Parameters:\nMo"
      }
    },
    {
      "id": "736beef6-f3d1-4afa-9134-8c22b07381f1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -208
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Node Name: Create an incident\nType: n8n-nodes-base.serviceNow\nPurpose: Automatically creates a new incident in ServiceNow when the classified category is Incident.\n Key Parameters:\nAuthentication: Bas"
      }
    },
    {
      "id": "e23ea4c6-36c5-4eb3-a070-cd66a42fa72c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1856,
        576
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "73f86ac8-7297-4480-acdd-cda13629c85f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        96
      ],
      "parameters": {
        "width": 256,
        "height": null,
        "content": "Node Name: Text Classifier\nPurpose: Automatically classifies incoming user chat input into one of three predefined categories to route the workflow accordingly.\n Categories Defined:\nIncident\nDescripti"
      }
    },
    {
      "id": "963a1038-3cc7-4c89-a00c-8d310a51d378",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        512
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Node Name: AI Agent\nType: @n8n/n8n-nodes-langchain.lmChatGoogleGemini\nPurpose: Acts as a conversational agent powered by Google Gemini (PaLM), capable of understanding user input, generating intellige"
      }
    }
  ],
  "connections": {
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Qdrant Vector Store1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Text Classifier": {
      "main": [
        [
          {
            "node": "Create an incident",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create an incident": {
      "main": [
        [
          {
            "node": "Summarization Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Qdrant Vector Store1",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Qdrant Vector Store": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Google Gemini": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Google Gemini1": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Text Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Summarization Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Text Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}