What this workflow does
This workflow helps users find information fast from many Google Drive documents. It reads files, breaks them into pieces, and searches their content by using artificial intelligence. Users can chat with an AI assistant that knows the documents and gets answers quickly. This saves lots of time and avoids missing important info.
The workflow connects Google Drive, Qdrant vector database, and Google Gemini AI to build a chat system that answers questions based on real document data.
Who should use this workflow
This is useful for people who have many documents stored in Google Drive. If manual searching for info takes too long or causes mistakes, this workflow can speed things up. It fits managers, researchers, or support teams needing quick facts from many files.
Tools and services used
- Google Drive API: To get files and their content from a folder.
- OpenAI text-embedding-3-large model: To create semantic vectors of document text.
- Qdrant vector store: To save vectors for fast similarity search.
- Google Gemini Chat Model: To handle chat with users and generate answers.
- Telegram Bot API: To send notifications and get approval before deleting data.
- N8N automation platform: To connect and run all these steps in order.
Inputs → Processing → Output
Input
- Google Drive folder ID with the documents to read.
- API keys for Google Drive, Qdrant, OpenAI, Google Gemini, and Telegram.
Processing steps
- Fetch all files and download content from the Google Drive folder.
- Extract text from files and use AI to get metadata like topics and keywords.
- Split big documents into smaller chunks for embedding.
- Create semantic embeddings with OpenAI text-embedding-3-large model.
- Save these embeddings with metadata into Qdrant vector database.
- Set up a chat system with Google Gemini AI that uses Qdrant search results and conversation history.
- Save chat history to Google Docs automatically.
- Send Telegram messages to ask for confirmation before deleting indexed data.
- Delete vectors from Qdrant only if user approves via Telegram.
Output
- Fast, context-aware answers to user questions based on Google Drive documents.
- Organized chat history stored in Google Docs.
- Notifications sent when data is updated or deleted.
Beginner step-by-step: How to use this workflow in n8n
Step 1: Import the workflow
- Download the workflow file using the Download button on this page.
- Open your active n8n editor.
- Use the “Import from File” option to load the downloaded workflow.
Step 2: Add credentials and settings
- Open each node that require credentials (Google Drive, OpenAI, Qdrant, Google Gemini, Telegram) and add your API keys or OAuth info.
- Set the Google Drive folder ID in the Google Folder ID node. Double check the folder permissions.
- Update the Qdrant collection name if needed in the Data Loader node.
- Edit the Telegram chat ID or channel if you want notifications in a different place.
Step 3: Test the workflow
- Trigger the workflow using manual trigger or by sending a chat message to the configured bot.
- Watch the execution to confirm files are fetched, processed, and chat replies happen.
Step 4: Activate for production
- Turn the workflow status from inactive to active.
- Optionally, set up regular scheduled triggers to keep document data synced automatically.
- Monitor Telegram notifications for status updates or deletion approval.
- For running n8n on your own server, consider self-host n8n options.
Customization ideas
- Change the Google Drive folder ID to index different files.
- Modify chunk size in Token Splitter if documents are very large or short.
- Replace text embedding model with others from OpenAI or Hugging Face.
- Switch the Google Gemini chat model to another conversational AI, and tweak temperature settings.
- Edit the AI system prompt in Extract Meta Data node to extract other metadata features.
Common problems and fixes
- Google Drive folder not accessible: Check if folder ID is correct and the OAuth setup has permission.
- Qdrant upsert fails: Verify Qdrant API key and network. Add delays if requests hit rate limits.
- Chatbot answers irrelevant: Make sure documents are fully indexed and embeddings saved properly in Qdrant.
Summary and results
✓ Chat with an AI assistant that knows your Google Drive documents well.
✓ Save hours by automating manual document search and summary.
✓ Keep conversation history safely stored in Google Docs.
✓ Control data deletion securely through Telegram approvals.
→ Turn many scattered documents into a smart, quick query system inside n8n.
