You are helping me build the following AI agent workflow. ## Goal Meta Ads Low Balance Alert: Monitors Meta Ads balances against thresholds in Google Sheets and sends WhatsApp or email alerts when funds run low. ## Specification - What it does: You receive instant WhatsApp or email alerts when your Meta Ads balance drops below a threshold you set in Google Sheets. The system automatically checks your account funds daily and notifies you before your budget runs out so you can pause campaigns in time. - Trigger: On a schedule (Scheduled ยท daily or Manual) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - n8n: Workflow orchestration and automation logic - HTTP Request: Fetching balance data from Meta Ads API - Google Sheets: Storing thresholds and logging status updates - Gmail: Sending low balance email alerts ## Known pitfalls, handle each one explicitly in your implementation 1. Meta Graph API tokens expire quickly so you must implement automatic token refresh logic to prevent authentication failures. 2. API errors return generic messages which confuse debugging so always log the raw HTTP response status code and body. ## Reference implementation https://n8n.io/workflows/3695 (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/meta-ads-low-balance-alert/ via usecasesforagents.com