{"product_id":"n8n-chatbot-workflow-google-drive-q-a-with-openai-telegram","title":"n8n Chatbot Workflow: Google Drive Q\u0026A with OpenAI + Telegram","description":"\u003ch3\u003eTurn your Google Drive docs into a trusted Q\u0026amp;A chatbot—grounded with citations and backed by human hand-off\u003c\/h3\u003e\n\u003cp\u003eThis n8n Chatbot Workflow answers customer questions by searching your Google Drive documentation with OpenAI embeddings and returning responses with verified citations. If the answer can’t be grounded in the provided passages, it escalates to Telegram for a human hand-off.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReal-time chat answering:\u003c\/strong\u003e When a customer submits a question via an n8n Chat interface, the workflow retrieves relevant documentation from an \u003cstrong\u003ein-memory vector store\u003c\/strong\u003e using \u003cstrong\u003eOpenAI embeddings\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSimilarity-based sources:\u003c\/strong\u003e It selects the top-matching passages, applies a \u003cstrong\u003escore threshold\u003c\/strong\u003e, de-duplicates matches, and builds a numbered list of sources with similarity scores.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGrounded OpenAI response:\u003c\/strong\u003e The workflow sends the question plus the numbered sources to an OpenAI chat model. The model must answer \u003cem\u003eonly\u003c\/em\u003e from the supplied passages and cite them as \u003cstrong\u003e[1]\u003c\/strong\u003e, \u003cstrong\u003e[2]\u003c\/strong\u003e, etc. If nothing is covered, it returns \u003cstrong\u003eNOT_COVERED\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidation and safety checks:\u003c\/strong\u003e It verifies the reply includes at least one citation and that each citation number maps to a provided source.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHuman escalation when needed:\u003c\/strong\u003e If retrieval is weak or the response is ungrounded, the workflow alerts a human in \u003cstrong\u003eTelegram\u003c\/strong\u003e and returns a hand-off message to the chat.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eProvide accurate customer support using your existing Google Drive documentation (policies, guides, FAQs).\u003c\/li\u003e\n  \u003cli\u003eReduce support turnaround time while maintaining citation-based reliability.\u003c\/li\u003e\n  \u003cli\u003eEscalate unclear or missing topics to a human via Telegram.\u003c\/li\u003e\n  \u003cli\u003eKeep the chatbot up-to-date by indexing new\/updated files in the watched Google Drive folder.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\/Nodes:\u003c\/strong\u003e Google Drive (file create\/update triggers), OpenAI (embeddings + chat model), Telegram (human alerts), n8n Chat interface.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow logic:\u003c\/strong\u003e \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, plus supporting nodes like \u003ccode\u003esticky note\u003c\/code\u003e for clarity.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup:\u003c\/strong\u003e Connect your Google Drive credentials, select the folder to watch in both Google Drive triggers, and configure the OpenAI + Telegram connections.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46094109999283,"sku":"N8N-19948","price":40.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/05YqRxo9W0C1n_x8Dzmw2_G2sgqcGU.png?v=1790413556","url":"https:\/\/buyflowscripts.com\/products\/n8n-chatbot-workflow-google-drive-q-a-with-openai-telegram","provider":"N8N Commerce","version":"1.0","type":"link"}