# Monitor WhatsApp template health with OpenAI, Gmail and Slack alerts

> Quick overview This workflow runs daily to check WhatsApp Cloud API phone number health and message template status via the Meta Graph API, compares results with the previous run, optionally generates OpenAI rewrite suggestions for newly rejected templates, and sends severity-based alerts via Gmail (and optional Slack) with Google Sheets logging. How it works 1. Runs every morning at 8:00 (or manually) and loads your WhatsApp Business Account, phone number IDs, and alert settings. 2. Calls the Meta Graph API to fetch health details for each configured phone number (quality rating, status, messaging limit tier, and display name status) and lists all message templates in the account with pagination. 3. Consolidates the results into a single “health snapshot,” turning any Graph API failures into actionable issues with suggested fixes. 4. Compares the snapshot to the previous baseline stored in workflow static data so only new issues, resolved issues, and messaging-limit tier changes are r

- **Domain**: `n8n-workflow-22805.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/22805
- Page (HTML): https://agenstry.com/agents/n8n-workflow-22805.n8n.io
- Documentation: https://n8n.io/workflows/22805
