Category: Automations › AI Customer Support · Best for: Teams answering repeat questions · Platform: n8n · Steps: 15
What it does
Ask a question and get the answer from your team's Google Drive files.
Add docuemnts to vector store when updating or creating new documents in Google Drive
Works with: Google Drive, Gemini, Memory Buffer Window, Embeddings Gemini, Text Splitter Recursive Character Text Splitter, Agent, Vector Store Pinecone, Document Default Data Loader, Tool Vector Store
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- Pinecone vector database: how to connect (used by Pinecone Vector Store, Pinecone Vector Store (Retrieval))
- Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Embeddings Google Gemini, Embeddings Google Gemini (retrieval), Download File From Google Drive, Google Drive File Updated, Google Drive File Created, Google Gemini Chat Model, Google Gemini Chat Model (retrieval))
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Click Save.
Test it
- Click Test workflow (or Execute workflow). When chat message received starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- When chat message received starts the workflow (Chat).
- Google Drive File Updated starts the workflow (Google Drive).
- Google Drive File Created starts the workflow (Google Drive).
- Google Gemini Chat Model uses AI (Gemini).
- Window Buffer Memory uses AI (Memory Buffer Window).
- Embeddings Google Gemini uses AI (Embeddings Gemini).
- Embeddings Google Gemini (retrieval) uses AI (Embeddings Gemini).
- Recursive Character Text Splitter uses AI (Text Splitter Recursive Character Text Splitter).
- Google Gemini Chat Model (retrieval) uses AI (Gemini).
- AI Agent uses AI (Agent).
- Download File From Google Drive uses Google Drive to download.
- Pinecone Vector Store uses AI (Vector Store Pinecone).
- Pinecone Vector Store (Retrieval) uses AI (Vector Store Pinecone).
- Default Data Loader uses AI (Document Default Data Loader).
- Vector Store Tool uses AI (Tool Vector Store).
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
Chat with company documents
Add docuemnts to vector store when updating or creating new documents in Google Drive
Set up steps
- Google Cloud Project and Vertex AI API:
- Create a Google Cloud project.
- Enable the Vertex AI API for your project.
- Google AI API Key:
- Obtain a Google AI API key from Google AI Studio.
- Pinecone Account:
- Create a free account on the Pinecone website. Obtain your API key from your Pinecone dashboard.
- Create an index named company-files in your Pinecone project.
- Google Drive:
- Create a dedicated folder in your Google Drive where company documents will be stored.
- Credentials in n8n: Configure credentials in your n8n environment for:
- Google Drive OAuth2
- Google Gemini(PaLM) Api (using your Google AI API key)
- Pinecone API (using your Pinecone API key)
- Import the Workflow:
- Import this workflow into your n8n instance.
- Configure the Workflow:
- Update both Google Drive Trigger nodes to watch the specific folder you created in your Google Drive.
- Configure the Pinecone Vector Store nodes to use your company-files index.
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method