anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n workflow that answers questions from your company documents. It watches a Google Drive folder, stores new files in Pinecone with Gemini, and an agent in n8n’s chat answers from the closest pieces.
Chat with your company documents from Google Drive is an n8n workflow in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Chat message
You ask a question in n8n’s chat, and a second flow fills the index whenever a file is added or changed in a Google Drive folder. It needs:
An answer in the chat that comes from your documents, or a reply that says the documents hold no answer
What you need before you start.
Document source
Watches one folder and downloads the files that are added or changed.
NeedsGoogle account sign-in
Vector store
Keeps the pieces of your documents and finds the ones closest to a question.
NeedsPinecone API key and an index
Vectors and answers
Turns text into vectors and writes the answers.
NeedsGoogle AI API key
Checked by Mindket on 13 Nov 2026
This n8n workflow lets you chat with the documents in a Google Drive folder. One flow watches the folder. When a file is added or changed, it cuts the file into pieces, turns each piece into a vector with Gemini and stores it in a Pinecone index. A second flow takes a question from n8n’s chat. An agent searches the index for the closest pieces, and Gemini writes the answer from them. When the pieces hold no answer, the agent says so. Fifteen nodes run it, and three sticky notes explain the setup.
Teams that keep policies and handbooks in Google Drive and answer the same questions again and again, such as HR or an office manager. Skip it if the documents are too private to send to Google and Pinecone, or if every answer must name its source file.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| HR | HR teams | Answer staff questions from the handbook | An employee asks how many days of leave a new hire gets and reads the answer from the policy file. |
| Operations | Office managers | Point newcomers to the house rules | A new hire asks about the expense rules and gets them from the finance policy. |
| Support | Support leads | Give agents a quick lookup over the help files | An agent asks for the refund steps and gets them from the process document. |
| Education | School administrators | Answer parents’ questions from the school handbook | An administrator asks about uniforms and reads the rule from the handbook file. |
You need a little n8n: import a file, add three credentials, make an index in Pinecone and pick a Drive folder.
Any n8n that can reach Google Drive, Google’s Gemini API and Pinecone will run it. The folder watch runs only while the workflow is published, and the chat opens from the Chat button in n8n.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. You need a Google account with Drive, a Google AI key and a Pinecone account.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| Google Drive | A sign-in and a folder for your documents |
| Google AI | An API key from Google AI Studio |
| Pinecone | An account, an API key and an index named company-files with 3072 dimensions and the cosine metric |
company-files with 3072 dimensions and the cosine metric, and copy an API key.workflow.json.company-files index.Add documents to the folder and ask questions in the chat. The agent remembers the last few turns. A file you change is added again, so its old pieces stay in the index beside the new ones.
| To change | Where |
|---|---|
| The assistant’s role and rules | The system message in AI Agent |
| How the document tool is described | Vector Store Tool |
| The size of a piece | Recursive Character Text Splitter, 1,000 characters with an overlap of 100 |
| The folder | Both Drive triggers |
| The models | The two Gemini chat nodes and the two embeddings nodes |
An HR manager adds “Leave policy.pdf” to the folder. At the next check the file goes into the index. An employee types “How many days of paid leave do new hires get?”. The agent calls the document tool, which finds the pieces about leave, and Gemini answers from them in a few sentences.
Asked about something the files do not cover, the agent says it found no answer in the documents.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A vector store keeps text as lists of numbers, called vectors, so a question can find pieces with a similar meaning. An agent is a node that decides when to call a tool.
For experts. Pinecone Vector Store runs in insert mode, and Default Data Loader reads the binary field data. Pinecone Vector Store (Retrieval) feeds Vector Store Tool, which has its own chat model, Google Gemini Chat Model (retrieval). Window Buffer Memory keeps the last five interactions inside the n8n process.
| Node | What it does | What to know |
|---|---|---|
Google Drive File Created and Google Drive File Updated | Watch one folder | Check every minute |
Download File From Google Drive | Downloads the file | A Google Doc arrives as a Word file |
Pinecone Vector Store | Stores the pieces | Adds them again on each update |
Vector Store Tool | Searches the index for the agent | Returns the 4 closest pieces |
AI Agent | Writes the reply | Follows its system message |
Two model names needed a swap, and the Pinecone index must match the new vector size.
text-embedding-004 down on 14 January 2026 and names gemini-embedding-2. That model returns one combined vector when a request holds several inputs, which Mindket did not want to rely on without a run. The copy uses gemini-embedding-001, a text-only model that is also the node’s defaultgemini-embedding-001 returns 3072 values by default, so make the index with 3072 dimensions. An index made for another size will not take the vectorsgemini-2.0-flash-exp is not on Google’s page any more, and the gemini-2.0-flash family shut down on 1 June 2026. Mindket’s copy uses gemini-3.8-flash, which Google’s models page lists as stableAn n8n workflow that answers questions from your company documents. One flow watches a Google Drive folder and stores each new or changed file in a Pinecone index, using Gemini to make the vectors. A second flow takes a question from n8n's chat, and an agent answers from the closest pieces.
workflow.json: the workflow as n8n exports it, 18 nodes. Fifteen run, and three are sticky notes. The fifteen are two Drive triggers and a download step, the Pinecone store with its loader, text splitter and embeddings, and the chat trigger. The rest are the agent with its memory and chat model, and the document tool with its own Pinecone search, embeddings and chat model. It holds no credential.README.md: these notes.Embeddings Google Gemini nodes used models/text-embedding-004. Google's deprecation page, read on 12 November 2026, shut that model down on 14 January 2026 and names gemini-embedding-2. That model returns one combined vector when a request holds several inputs, and Mindket did not want to rely on that without a run. Both nodes now use models/gemini-embedding-001, a text-only model that is also this node's own default. It returns 3072 values by default.Google Gemini Chat Model nodes used models/gemini-2.0-flash-exp. Google's page does not list that name any more, and the gemini-2.0-flash family shut down on 1 June 2026. Both nodes now use models/gemini-3.8-flash, which Google's models page lists as stable.Mindket read this copy against n8n's source and Google's pages. It was not run on a live n8n.
company-files with 3072 dimensions and the cosine metric, and copy an API key.workflow.json.Google Drive File Created and Google Drive File Updated, pick the folder that holds your documents.company-files index.Filling the index:
Google Drive File Created and Google Drive File Updated check the folder every minute. Both pass the file on to Download File From Google Drive, which downloads it under its own name.Pinecone Vector Store stores the file in insert mode. Default Data Loader reads the downloaded file, Recursive Character Text Splitter cuts it into pieces of about 1,000 characters that overlap by 100, and Embeddings Google Gemini turns each piece into a vector.Answering a question:
When chat message received passes your question to AI Agent, which has Window Buffer Memory and Google Gemini Chat Model.company_documents_tool for anything that comes from the documents. When the documents hold no answer, it must say so in a fixed line.Vector Store Tool searches through Pinecone Vector Store (Retrieval) and Embeddings Google Gemini (retrieval), returns the closest pieces and has Google Gemini Chat Model (retrieval) write the answer from them.AI Agent.Vector Store Tool.Recursive Character Text Splitter.NOTICE.md 671 B README.md 5 KB workflow.json 11 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
zarazhangrui · Skill
Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…
iptv-org · Kit
Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…