You are helping me build the following AI agent workflow. ## Goal Website Uptime Monitoring Analysis: Triggers on a URL webhook, checks site status via AI analysis, and emails you a clear success or error report. ## Specification - What it does: Get instant email alerts when your website goes down so you can fix issues immediately. We check your site's status whenever a webhook triggers it, analyze the results with AI to explain any errors clearly, and send you a simple success or failure report via Gmail. - Trigger: Triggered by an event (Event ยท on webhook POST) - Autonomy: Fully hands-off - Expected setup effort: under an hour - Tools/services involved: - Webhook: Receive trigger with target URL - HTTP Request: Fetch website status code - OpenAI: Analyze error and generate explanation - Gmail: Send success or failure notifications ## Known pitfalls, handle each one explicitly in your implementation 1. Webhook endpoints are vulnerable to spam attacks, so add an authentication token check before processing requests. 2. Gmail API quotas can be exceeded quickly during testing, so implement request throttling or use a staging account. 3. OpenAI tokens may run out if error messages are verbose, so limit the input context size for analysis prompts. 4. SSL certificate errors might cause HTTP failures that look like downtime, so distinguish between network errors and server errors in your logic. ## Reference implementation https://n8n.io/workflows/7194 (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/website-uptime-monitoring-with-ai-analysis/ via usecasesforagents.com