You are helping me build the following AI agent workflow. ## Goal Internal Knowledge Base Chatbot with RAG: Ingests product docs from Google Docs into a vector store to answer internal queries with accurate, context-aware AI responses. ## Specification - What it does: Get instant, accurate answers to your product questions by asking this chatbot, which pulls directly from your stored Google Docs. It automatically organizes your documentation into a searchable database so you receive context-aware responses without needing to hunt through files yourself. - Trigger: Run manually (Manual ยท on demand) - Autonomy: Fully hands-off - Expected setup effort: a few focused days - Tools/services involved: - Google Docs: Document ingestion source - MongoDB Atlas Vector Store: Storing vector embeddings and metadata - Embeddings OpenAI: Generating vector embeddings for text chunks - OpenAI Chat Model: Generating context-aware answers via RAG ## Known pitfalls, handle each one explicitly in your implementation 1. Large documents may exceed token limits so implement a hierarchical summarization step before embedding the full text. 2. Stale data can mislead users so add a timestamp check in the retrieval filter to prioritize recently updated documentation. 3. Vector search latency increases with scale so configure MongoDB Atlas with appropriate vector indexes and limit top_k results. ## Reference implementation https://n8n.io/workflows/4526 (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/internal-knowledge-base-chatbot-with-rag/ via usecasesforagents.com