{"product_id":"n8n-telegram-rag-order-bot-google-drive-to-supabase-vector","title":"n8n Telegram RAG Order Bot: Google Drive to Supabase Vector","description":"\u003ch3\u003eTurn new Google Drive files into a Supabase-powered RAG knowledge base for your Telegram orders bot\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow watches a specific \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e folder, converts newly added documents into searchable text chunks, creates \u003cstrong\u003eOpenAI embeddings\u003c\/strong\u003e, and stores them in a \u003cstrong\u003eSupabase Vector Store\u003c\/strong\u003e—so your \u003cstrong\u003eTelegram orders bot\u003c\/strong\u003e can retrieve accurate answers using retrieval-augmented generation (RAG).\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers every minute\u003c\/strong\u003e when a new file is created in a configured Google Drive folder.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDownloads the newly added file\u003c\/strong\u003e from Google Drive.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts plain text\u003c\/strong\u003e from the downloaded file.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSplits the text for retrieval\u003c\/strong\u003e into \u003cstrong\u003e300-character chunks\u003c\/strong\u003e with \u003cstrong\u003e20-character overlap\u003c\/strong\u003e to improve match quality.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates embeddings\u003c\/strong\u003e for each chunk using \u003cstrong\u003eOpenAI\u003c\/strong\u003e (model can be changed).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInserts chunks + embeddings\u003c\/strong\u003e into a \u003cstrong\u003eSupabase Vector Store table\u003c\/strong\u003e (e.g., a table named \u003cem\u003edocuments\u003c\/em\u003e).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eBuild a \u003cstrong\u003eTelegram orders bot\u003c\/strong\u003e knowledge base from product sheets, FAQs, or order instructions stored in Google Drive.\u003c\/li\u003e\n  \u003cli\u003eAutomatically keep your RAG dataset up to date whenever a team uploads new documentation.\u003c\/li\u003e\n  \u003cli\u003eEnable SaaS operators to centralize knowledge in Google Drive while powering semantic search in Supabase.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Drive trigger\u003c\/strong\u003e: monitors a folder by ID and runs every minute.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtract from file\u003c\/strong\u003e: pulls plain text content from the downloaded document.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLangChain OpenAI embeddings node\u003c\/strong\u003e (n8nn8n-nodes-langchainembeddings open ai): generates embeddings for text chunks.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLangChain Supabase Vector Store node\u003c\/strong\u003e (n8nn8n-nodes-langchainvector store supabase): writes chunked documents and vectors to Supabase.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup\u003c\/strong\u003e: provide Google Drive credentials, an OpenAI API key for embeddings, and Supabase connection details for the vector table.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45812012712115,"sku":"N8N-17960","price":31.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/i-Z0uNi0prQ8Nlkx0itmd_Lt2bf2wU.png?v=1786353066","url":"https:\/\/buyflowscripts.com\/products\/n8n-telegram-rag-order-bot-google-drive-to-supabase-vector","provider":"N8N Commerce","version":"1.0","type":"link"}