You are helping me build the following AI agent workflow. ## Goal Customer Support Chat for Web Hosting: An AI agent named Matt answers web hosting queries via webhook. ## Specification - What it does: You get instant answers to web hosting questions like pricing and FAQs from Matt, who processes your requests using a knowledge base in Google Sheets. You can also check domain availability directly through the agent while it remembers past conversations for smoother support. - Trigger: Triggered by an event (Event ยท on new customer query via webhook) - Autonomy: You stay in control - Expected setup effort: about an afternoon - Tools/services involved: - n8n: Workflow orchestration platform - Google Gemini Chat Model: Natural language processing and response generation - Google Sheets: Knowledge base storage and chat history logging - WHMCS API: Checking domain name availability ## Known pitfalls, handle each one explicitly in your implementation 1. Google Sheets can become slow with large datasets so limit your lookup queries to exact matches or small subsets of data. 2. Conversation history might drift if not properly managed so use Simple Memory with a clear context window reset strategy. 3. Webhook payloads may contain special characters that break JSON parsing so sanitize input before passing it to the AI model. ## Reference implementation https://n8n.io/workflows/7631 (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/ai-customer-support-chat-for-web-hosting/ via usecasesforagents.com