{
  "name": "Auto-update knowledge base with Drive, LlamaIndex & Azure OpenAI embeddings",
  "nodes": [
    {
      "id": "814443d3-d036-4e95-88ed-3096a113fe3c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        -48
      ],
      "parameters": {
        "width": 1888,
        "height": 1004,
        "content": "\n# Knowledge Base"
      }
    },
    {
      "id": "7e7be658-a429-4529-98a3-a08cb69e5ed8",
      "name": "Insert Data to Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "position": [
        512,
        288
      ]
    },
    {
      "id": "e934f660-04c3-49d9-862d-9c7dfa7edb68",
      "name": "Embeddings Azure OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        512,
        512
      ]
    },
    {
      "id": "586ad57d-9fd1-436a-b406-53de8662a4d7",
      "name": "Default Data Loader1",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        704,
        512
      ]
    },
    {
      "id": "6832751c-f6ed-4d0d-930c-38ac11e3dbc4",
      "name": "Check Parsing Completion1",
      "type": "n8n-nodes-base.if",
      "position": [
        64,
        336
      ]
    },
    {
      "id": "e4bf75a2-1b6a-4109-afdb-a3b3ec85ae15",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        976,
        -48
      ],
      "parameters": {
        "width": 688,
        "height": 1008,
        "content": "# 📋 Credentials Setup Guide\n\n## Required Credentials\n\n### 1. Azure OpenAI API\n**Node:** Embeddings Azure OpenAI\n- **Purpose:** Generate embeddings for vector storage\n- **Setup:**\n  1. Go to [Azure Por"
      }
    },
    {
      "id": "748e3adc-eccd-40c4-823c-634efc94cdc0",
      "name": "Knowledge Base Updated Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -832,
        416
      ]
    },
    {
      "id": "2998884c-d225-47f0-be95-3d7b0b117aba",
      "name": "Download Knowledge Document",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -608,
        416
      ]
    },
    {
      "id": "f9c738ef-b885-4a02-bfdf-11b2ffd651be",
      "name": "Parse Document via LlamaIndex",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -384,
        416
      ]
    },
    {
      "id": "4b3a66e9-5abb-470c-9fd7-e3f116f5026e",
      "name": "Monitor Document Processing",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -160,
        416
      ]
    },
    {
      "id": "10816b8b-cb09-4c4e-8c47-510381e68ce8",
      "name": "Retrieve Parsed Content",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        288,
        288
      ]
    },
    {
      "id": "379a5e46-c8a1-4f5d-b206-747306d44e22",
      "name": "Wait Before Status Recheck",
      "type": "n8n-nodes-base.wait",
      "position": [
        288,
        512
      ]
    },
    {
      "id": "7b3480f2-a37b-45f8-9c17-471ed6c156ce",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        832
      ],
      "parameters": {
        "width": 370,
        "height": 100,
        "content": "## ☕ Appreciate This Workflow?\n\nSupport the creator by sending coffee:\n\n**PayPal:** [paypal.me/khmuhtadin](https://paypal.me/khmuhtadin)\n\nThank you! 🚀"
      }
    }
  ],
  "connections": {
    "Default Data Loader1": {
      "ai_document": [
        [
          {
            "node": "Insert Data to Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Insert Data to Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Parsed Content": {
      "main": [
        [
          {
            "node": "Insert Data to Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Parsing Completion1": {
      "main": [
        [
          {
            "node": "Retrieve Parsed Content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait Before Status Recheck",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Before Status Recheck": {
      "main": [
        [
          {
            "node": "Monitor Document Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Knowledge Document": {
      "main": [
        [
          {
            "node": "Parse Document via LlamaIndex",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monitor Document Processing": {
      "main": [
        [
          {
            "node": "Check Parsing Completion1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Document via LlamaIndex": {
      "main": [
        [
          {
            "node": "Monitor Document Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Knowledge Base Updated Trigger": {
      "main": [
        [
          {
            "node": "Download Knowledge Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}