Turn your PDFs into a smart chat for support. New files in Google Drive are indexed so your team and customers get quick answers. Great for product manuals, policies, and onboarding packs.
When a file appears in a chosen Drive folder, the flow downloads it, extracts text from the PDF, cleans the text, and splits it into readable chunks. The cleaner removes line breaks and special characters so the content is easy to process. Text is split with a chunk size of 3000 characters and a 300 character overlap to keep context. Google Gemini creates vector embeddings, and Pinecone stores them for fast search across large document sets. A chat webhook receives a user question, generates query embeddings, pulls the best matching chunks from Pinecone, and builds a clear prompt with sources. The OpenRouter chat model then writes the answer using the provided context, and the AI agent formats the reply in a clear structure.
Set the Drive folder to watch and enter your Pinecone index name. Add API keys for Google Gemini and OpenRouter, then test by uploading a PDF and sending a sample question to the chat endpoint. Expect faster replies, fewer repeat tickets, and a self service channel that grows as your library grows. This setup works for help centers, internal wikis, and product knowledge for frontline teams.