# Detect Meta Ads spend anomalies and creative fatigue with OpenAI and Slack

> Quick overview This workflow runs daily and pulls Meta Ads account and ad insights from the Meta Graph API, detects spend/performance anomalies and creative fatigue, uses OpenAI (gpt-4o-mini) to propose fixes for flagged accounts, and posts either an alert or an all-clear message to Slack. How it works 1. Runs every day at 9:00 AM (cron schedule). 2. Loads your configured Meta ad accounts and generates the “yesterday” and 7-day lookback date window for each account. 3. Queries the Meta Graph API for account-level daily metrics, active ad-level daily metrics, and 7-day ad totals for baseline comparison. 4. Compares yesterday’s performance to the 7-day baseline to flag issues like spend spikes/drops, CPA spikes, CTR drops, CPM spikes, missing results, or missing data, and identifies ads with creative fatigue based on frequency and CTR trend. 5. If issues are found, sends the findings to OpenAI (gpt-4o-mini) to generate a short diagnosis and prioritized fix recommendations (plus creative 

- **Domain**: `n8n-workflow-20270.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/20270
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20270.n8n.io
- Documentation: https://n8n.io/workflows/20270
