{
  "openruna_format": "flow-graph-v1",
  "title": "🤖 AI Powered RAG Chatbot for Your Docs + Google Drive + Gemini + Qdrant",
  "slug": "ai-powered-rag-chatbot-for-your-docs-google-drive-gemini-qdrant",
  "source_filename": "1185_Telegram_Wait_Automate_Webhook.json",
  "nodes": [
    {
      "id": "Data Loader",
      "name": "Data Loader",
      "integration": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "kind": "action"
    },
    {
      "id": "Token Splitter",
      "name": "Token Splitter",
      "integration": "@n8n/n8n-nodes-langchain.textSplitterTokenSplitter",
      "kind": "action"
    },
    {
      "id": "Qdrant Vector Store",
      "name": "Qdrant Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "kind": "action"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Wait",
      "name": "Wait",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Google Gemini Chat Model",
      "name": "Google Gemini Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "kind": "action"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Extract Meta Data",
      "name": "Extract Meta Data",
      "integration": "@n8n/n8n-nodes-langchain.informationExtractor",
      "kind": "action"
    },
    {
      "id": "Get File Contents",
      "name": "Get File Contents",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Download File From Google Drive",
      "name": "Download File From Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Find File Ids in Google Drive Folder",
      "name": "Find File Ids in Google Drive Folder",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "text-embeddings-3-large",
      "name": "text-embeddings-3-large",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "Google Folder ID",
      "name": "Google Folder ID",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "gpt-4o-mini1",
      "name": "gpt-4o-mini1",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Delete Qdrant Points by File ID",
      "name": "Delete Qdrant Points by File ID",
      "integration": "@n8n/n8n-nodes-langchain.code",
      "kind": "action"
    },
    {
      "id": "Qdrant Collection Name",
      "name": "Qdrant Collection Name",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "File Id List",
      "name": "File Id List",
      "integration": "summarize",
      "kind": "action"
    },
    {
      "id": "Merge1",
      "name": "Merge1",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Merge2",
      "name": "Merge2",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Confirm Qdrant Delete Points",
      "name": "Confirm Qdrant Delete Points",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "If",
      "name": "If",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Send Declined Message",
      "name": "Send Declined Message",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Webhook",
      "name": "Webhook",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Window Buffer Memory",
      "name": "Window Buffer Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "Google Gemini Chat Model1",
      "name": "Google Gemini Chat Model1",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "kind": "action"
    },
    {
      "id": "text-embeddings-3-large1",
      "name": "text-embeddings-3-large1",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "Google Drive",
      "name": "Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Respond to User",
      "name": "Respond to User",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Update Chat History",
      "name": "Update Chat History",
      "integration": "googleDocs",
      "kind": "action"
    },
    {
      "id": "Qdrant Vector Store Tool",
      "name": "Qdrant Vector Store Tool",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Send Completed Message",
      "name": "Send Completed Message",
      "integration": "telegram",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "If",
      "to": "Delete Qdrant Points by File ID"
    },
    {
      "from": "If",
      "to": "Send Declined Message"
    },
    {
      "from": "Wait",
      "to": "Loop Over Items"
    },
    {
      "from": "Merge",
      "to": "Qdrant Vector Store"
    },
    {
      "from": "Merge1",
      "to": "Confirm Qdrant Delete Points"
    },
    {
      "from": "Merge2",
      "to": "Loop Over Items"
    },
    {
      "from": "Webhook",
      "to": "Google Folder ID"
    },
    {
      "from": "AI Agent",
      "to": "Update Chat History"
    },
    {
      "from": "AI Agent",
      "to": "Respond to User"
    },
    {
      "from": "File Id List",
      "to": "Merge1"
    },
    {
      "from": "Loop Over Items",
      "to": "Send Completed Message"
    },
    {
      "from": "Loop Over Items",
      "to": "Download File From Google Drive"
    },
    {
      "from": "Google Folder ID",
      "to": "Find File Ids in Google Drive Folder"
    },
    {
      "from": "Extract Meta Data",
      "to": "Merge"
    },
    {
      "from": "Get File Contents",
      "to": "Extract Meta Data"
    },
    {
      "from": "Qdrant Vector Store",
      "to": "Wait"
    },
    {
      "from": "Qdrant Collection Name",
      "to": "Merge1"
    },
    {
      "from": "When chat message received",
      "to": "AI Agent"
    },
    {
      "from": "Confirm Qdrant Delete Points",
      "to": "If"
    },
    {
      "from": "Delete Qdrant Points by File ID",
      "to": "Merge2"
    },
    {
      "from": "Download File From Google Drive",
      "to": "Get File Contents"
    },
    {
      "from": "Download File From Google Drive",
      "to": "Merge"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "Google Folder ID"
    },
    {
      "from": "Find File Ids in Google Drive Folder",
      "to": "File Id List"
    },
    {
      "from": "Find File Ids in Google Drive Folder",
      "to": "Qdrant Collection Name"
    },
    {
      "from": "Find File Ids in Google Drive Folder",
      "to": "Merge2"
    }
  ]
}