You are helping me build the following AI agent workflow. ## Goal Discord Bot Message Proxy: Polls Discord for bot mentions from authorized users and forwards them to an AI webhook, then replies with the response. ## Specification - What it does: You get instant answers when you mention the bot on Discord, as it automatically filters your authorized requests and sends them to an AI for a reply. The system handles this by polling channels at set intervals, verifying user access, and forwarding your questions directly to the AI webhook. - Trigger: On a schedule (Scheduled ยท every minute) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Discord: Listen for bot mentions and send replies - HTTP Request: Forward messages to AI agent webhook - Code: Filter noise and deduplicate messages ## Known pitfalls, handle each one explicitly in your implementation 1. Message content truncation may occur if the AI response exceeds Discord's character limit, so add logic to split or truncate replies safely. 2. Unauthorized users might spoof message headers, so always verify the author ID against your database rather than trusting client-side data. ## Reference implementation https://n8n.io/workflows/4264 (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/discord-bot-message-proxy/ via usecasesforagents.com