# Answer internal policy questions from Google Drive with OpenAI and Qdrant

> Quick overview This workflow keeps a Qdrant knowledge base synced with Google Drive documents and lets users ask questions via n8n Chat or Slack, using OpenAI for embeddings and responses with source citations. How it works 1. Triggers every minute when a file is created or updated in a specific Google Drive folder and downloads the file. 2. Detects whether the file is a PDF, Google Doc, DOCX, or TXT and extracts plain text (DOCX files are copied to a temporary Google Doc, exported as text, then deleted). 3. Deletes any existing vectors in the Qdrant collection that match the same Google Drive file ID to prevent outdated or duplicate content. 4. Splits the extracted text into chunks, attaches metadata (file ID, name, Drive URL, last modified time), creates OpenAI embeddings, and inserts the chunks into the Qdrant collection. 5. Triggers when a message is received from the public n8n Chat endpoint or when the Slack app is mentioned/receives a message, then normalizes both inputs into a 

- **Domain**: `n8n-workflow-19671.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19671
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19671.n8n.io
- Documentation: https://n8n.io/workflows/19671
