You are helping me build the following AI agent workflow. ## Goal Google Drive Internal Knowledge Base Agent: Turns your Google Docs into a searchable AI knowledge base that answers questions with cited sources and logs every interaction. ## Specification - What it does: Turn your scattered Google Docs into a single, searchable knowledge base that instantly answers your questions with cited sources. The system automatically logs every interaction to Google Sheets so you can track how your team uses internal information. - Trigger: Triggered by an event (Scheduled · weekly Sunday 11AM and Manual · on demand) - Autonomy: Fully hands-off - Expected setup effort: a few focused days - Tools/services involved: - Google Drive: Document ingestion and storage - Pinecone Vector Store: Semantic search and vector storage - Embeddings OpenAI: Creating vector embeddings for text chunks - OpenAI: Generating grounded answers from retrieved context - Google Sheets: Logging Q&A and document registry ## Known pitfalls, handle each one explicitly in your implementation 1. Large documents may exceed token limits so implement a fallback strategy that summarizes long texts before embedding. 2. Pinecone namespace collisions can occur with multiple users, add unique user IDs to metadata keys to isolate results. 3. Embedding drift affects retrieval accuracy over time, schedule monthly re-embedding jobs when source documents change significantly. ## Reference implementation https://n8n.io/workflows/13959 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/google-drive-internal-knowledge-base-agent/ via usecasesforagents.com