# Keep a number healthy, and recover a flagged one

## How Meta judges a number

- **Quality rating** (green, yellow, red): based on how recipients reacted over roughly the last week, mainly blocks and spam reports, weighted towards recent messages.
- **Messaging limit:** how many people the business can start conversations with per 24 hours. It rises automatically when the business sends to more people with good quality; business verification raises the starting point.
- **Template quality:** each template is scored too, and low-quality templates get paused.

Replies to people who wrote first never count against the limit and rarely hurt quality. Business-initiated marketing is where the risk is.

## What to watch

`quality_report` gives you all of this, and `quality.warning` events arrive when something slips:
- Opt-outs above 1% of people messaged.
- Undeliverable numbers (error 131026) above 10%: a stale or bought list.
- Meta holding back marketing (131049): people are getting too many marketing messages, or Meta expects them to ignore yours.
- Reads under 25% for marketing.
- A rating of yellow, or any template with a medium or low score.

waba.cloud also restricts marketing on its own for 24 hours when failures or opt-outs are clearly too high, to stop the damage before Meta does.

## Prevent

- Send marketing only to people who opted in, recently, and who'd expect it.
- Keep frequency low. Space marketing at least several days apart per person.
- Prefer smaller, relevant audiences over big blasts.
- Use broadcasts (test batch, ramp, automatic pause) rather than sending all at once.
- Make it easy to stop: STOP works automatically; say so in marketing footers.

## Recover from yellow or red

1. **Stop marketing** from that number now (`broadcast_pause` on anything running). Keep replying to customers and sending expected utility messages.
2. **Find the cause** with `quality_report`: which template, which audience, when. Look at opt-outs and failures by template.
3. **Fix it:** remove cold or old contacts, rewrite the template to be more relevant, cut frequency.
4. **Wait about 7 days** of clean sending. The rating is a rolling window; it recovers on its own as old blocks age out.
5. **Restart small:** a broadcast to the most engaged people with `approve_after_test: true`, and watch the test batch.

Tell the human plainly what happened, what you changed and when it's safe to send marketing again. Don't promise a date; Meta decides.

## If the number is restricted or banned

Meta notifies through `whatsapp_account.updated` / `whatsapp_account.alert`. The human can request a review in WhatsApp Manager. Don't create a new number to get around it: that usually ends with the business account restricted.
