You are helping me build the following AI agent workflow. ## Goal Chat Routing System with Gemini and Notion: Routes incoming messages to specialized AI agents using Notion context for personalized support or automated booking. ## Specification - What it does: You get instant routing of your incoming messages to specialized AI agents that deliver personalized support or handle automated bookings. By pulling context from your Notion database, the system qualifies leads and schedules consultations without requiring any manual intervention. - Trigger: Triggered by an event (Event ยท on new message) - Autonomy: Fully hands-off - Expected setup effort: under an hour - Tools/services involved: - n8n: workflow orchestration - Google Gemini Chat Model: AI classification and response generation - Notion: knowledge base and CRM data retrieval ## Known pitfalls, handle each one explicitly in your implementation 1. Ambiguous messages may route incorrectly, so implement a fallback category that triggers human review or clarification questions. 2. Sensitive customer data exposure is a risk, so ensure the Notion retrieve node only fetches necessary fields and masks PII in logs. 3. Context window limits can truncate history, so summarize previous interactions before passing them to the final response agent. ## Reference implementation https://n8n.io/workflows/7524 (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/smart-chat-routing-system-with-gemini-and-notion/ via usecasesforagents.com