The WhatsApp Business API has rules. Inside a 24-hour conversation window started by the patient, you can send anything. Outside that window, you can only send pre-approved templates. The cost varies by category and country. Marketing templates have a per-patient daily cap. Click-to-WhatsApp ads extend the free window to 72 hours. This article walks the rules clearly so reception, marketing, and admin do not stumble into surprises.
Where it lives#
- Settings → Message templates: design and submit templates.
- Settings → Integrations → WhatsApp WABA: connect the business number.
- Settings → Messaging → Cost dashboard: spend visibility (Coming soon).
- Marketing → Messaging → composer: window indicator and template picker.
- Reports → Marketing → WhatsApp delivery: per-template metrics.
The 24-hour conversation window#
How it opens#
- The patient sends a message to your number.
- The window opens for 24 hours from that message.
- Inside the window, you can send any content (free text, media, links).
- Each new patient message resets the 24-hour timer.
How it closes#
- 24 hours pass with no message from the patient.
- Window closes silently.
- Composer flips to template-only mode.
- Any free-text send fails silently or returns an error.
How the patient reopens#
- Patient sends any message back.
- Window reopens for another 24 hours.
- Strategy: send an engaging template that prompts reply.
Inside the window vs after it closes, what the operator sees#
- Window open: the composer is in free-form mode. Send text, media, links. The status bar shows hours remaining (counts from the patient's last inbound).
- Window closed: the composer flips to template-only mode. Free-text send is blocked at the FE; if you bypass the FE, the BE blocks the send too. The template picker shows only templates Meta has approved for the channel + language.
- Reopening: any inbound from the patient (even a single emoji) reopens for another 24 hours. The composer flips back to free-form automatically.
- 72-hour CTWA window: if the conversation started from a Click-to-WhatsApp ad, the free window is 72h instead of 24h. The window indicator updates automatically.
When Meta rejects a template, edit, resubmit, fall back#
Meta reviews each template you submit. Status flows: pending → approved | rejected | paused | disabled. The status is mirrored into Hoopoe by the template sync job and broadcast as a UI invalidation event, so the composer hides newly paused or rejected templates within seconds.
- If a template is rejected, open it in Meta Business Manager. The rejection reason is usually embedded pricing, pressure language, or category mismatch.
- Edit and resubmit. Re-approval may take hours to a day.
- Meanwhile, fall back to an approved sibling template (same intent, neutral copy), keep a "safe" version of each customer-facing template precisely for this case.
- If no safe sibling exists, queue the send until approval, do not bypass with a free-text send outside the window; Meta will block it and the patient will see nothing.
The 72-hour free entry point (Coming soon visibility in UI)#
- Patient clicks a Click-to-WhatsApp (CTWA) ad on Meta.
- Patient lands in your WhatsApp with a pre-filled first message.
- This opens a 72-hour free entry point window (Meta's term).
- Inside the window, you can send free-form content without per-message cost.
- Highly valuable for paid-ad conversion: reduces total messaging cost.
- Click-to-WhatsApp from Facebook page CTA buttons also qualifies.
- Hoopoe captures CTWA attribution today.
Template categories#
Utility templates#
- Examples: appointment confirmation, reminder, receipt, lab result ready, prescription dispensed, refill request notification.
- Free inside an open conversation window, low cost outside.
- Approval cycle: hours to a day.
- Most common category for clinics.
Marketing templates#
- Examples: campaign offer, seasonal promotion, package launch.
- Always costs per message (no free path).
- Subject to the per-patient daily cap (see below).
- Marketing-consent gate enforced.
- Approval cycle: 1-3 days, scrutinised.
Authentication templates#
- OTP codes, two-factor.
- Cost between utility and marketing.
- Approval cycle: hours.
- Used for patient portal sign-in.
Service messages (in-conversation)#
- Anything sent inside an open conversation window.
- Free, no template needed.
- Most reception 1:1 conversation falls here.
Per-message pricing (post mid-2025)#
- WhatsApp shifted from conversation-based to per-message pricing.
- Each utility, marketing, authentication template send is metered separately.
- Inside an open service window, messages remain free.
- Cost varies by country and category.
- UAE marketing template costs more than UAE utility.
- For volume, Hoopoe surfaces a cost estimate per send (Coming soon).
Strategy implications#
- Keep conversations open: send reminder that prompts reply, the next message is free.
- Bundle multiple updates into one message rather than several.
- Time marketing sends with engagement: more replies → more open windows.
- Use authentication only when needed.
The 2-marketing-per-patient-per-day cap (Meta error 131049)#
- Meta caps marketing templates at 2 per recipient per 24 hours, across ALL senders.
- The cap is patient-scoped, not clinic-scoped.
- If another business already sent the patient 2 marketing messages today, your third send fails with error 131049.
- Cannot retry, has to wait for the next day.
- Hoopoe pre-check (Coming soon) warns before send and offers to defer.
Template approval workflow#
Designing a template#
- Settings → Message templates → + New template.
- Pick category (utility, marketing, auth).
- Pick language (and language variants for multilingual clinics).
- Write the template body with variables (patient name, appointment time, amount).
- Add header, footer, buttons if applicable.
- Submit to Meta for approval.
What gets rejected#
- Embedded pricing or pressure language in marketing templates.
- Misleading category (utility template that markets).
- External links to non-related domains.
- Sensitive topics outside the clinic's scope.
- Spelling and grammar errors.
- Variables that do not match standard format.
Reapproval after edit#
- Any change to text triggers re-approval.
- Variable rename does not.
- Adding a new language variant requires approval per variant.
Language variants#
- Same template, multiple languages: English, Arabic, Persian, Russian, etc.
- Send-time picks the variant matching patient's preferred language.
- If patient's language has no variant, falls back to the tenant default.
- Critical for multilingual clinics.
Marketing consent gate#
- Hoopoe enforces marketing consent at send time for marketing-category templates.
- Even inside an open conversation window, marketing-category send requires consent.
- Utility templates do not require marketing consent.
- Patient revocation (replies STOP, UNSUBSCRIBE) immediately blocks future marketing.
- Revocation logged for audit.
Off-hours and quiet hours#
Tenant quiet hours#
- Configurable window during which marketing messages defer.
- Default 22:00-09:00.
- Marketing send queued, deliver next available window.
Patient quiet hours#
- Per-patient override.
- Patient asks not to be contacted before 10am.
- Marketing defers per-patient.
Urgent overrides#
- Critical clinical events bypass quiet hours.
- Audited and rare.
Cost estimation and budget (Coming soon)#
- Per-send cost estimate shown before send.
- Per-tenant monthly send budget cap.
- Cost dashboard breaks down by template, category, language, recipient.
- Alert when monthly spend approaching budget.
WhatsApp number management#
- One business number per tenant default.
- Multi-number tenants: route by branch or by team.
- Number quality score (provided by Meta): green, yellow, red.
- Yellow or red quality limits send capacity.
- Tenant should monitor quality and respond to opt-outs.
Delivery failure handling#
Common failures#
- Recipient does not have WhatsApp.
- Patient blocked the business number.
- WhatsApp rate-limited the send.
- Template rejected silently.
- 2-marketing-per-day cap hit (131049).
- Quality score restriction.
Fallback#
Fallback behaviour depends on whether the send is a 1:1 inbox reply or a transactional notification:
- 1:1 inbox: the agent picks the channel they want to send on. If WhatsApp fails delivery (no WhatsApp, blocked, rate-limited), there is no automatic SMS attempt, the failed message shows red in the thread and the agent must pick a different channel manually.
- Transactional notification: the generic dispatcher attempts each requested channel independently, subject to preferences and send guards. It does not wait for a WhatsApp failure before deciding to send SMS or email. Inspect the audit record for each attempt.
Per-event timing rules ("retry after 5 min for critical") are not in product today. There is no generic sequential fallback or timed re-escalation.
The CTWA-driven funnel#
- Patient sees Meta ad with "Send WhatsApp" CTA.
- Click opens WhatsApp with pre-filled first message.
- Patient sends the pre-filled message.
- Hoopoe receives it with CTWA payload attached.
- Lead created with full Meta + WhatsApp attribution.
- 72-hour free window opens.
- Reception or AI replies free, follow-ups free during the window.
- Lead converts at lower cost than non-CTWA leads.
KPIs to watch#
- Window utilisation: % of replies sent inside an open window.
- Per-template approval rate: how many submissions pass first time.
- Template usage distribution: which templates earn their keep.
- Cost per converted lead: total WhatsApp spend / new patients.
- CTWA share: % of leads via CTWA (high-margin acquisition).
- Delivery rate per template: opt-out and failure.
- Quality score trend: green / yellow / red over time.
- 2-marketing-cap hit rate: how often 131049 fires.
Coming soon#
- Per-send cost estimate in composer.
- Monthly send budget cap with alert.
- 2-marketing-cap pre-check warning.
- 72-hour free window indicator on conversation.
- In-product template submission UI.
- Template starter pack for clinic types.
- Cross-branch template library.
- Multi-number routing UI.
- Quality score monitoring dashboard.
Common mistakes#
- Sending free-text outside the window: silent fail, patient does not get the message.
- Marketing template without consent: regulator complaint and Meta penalty.
- Embedding pricing in marketing template: rejection.
- Forgetting to add language variant: patient gets English when they read Arabic.
- Not monitoring quality score: send capacity drops, surprise stockout of sends.
- One marketing template fired 3x to same patient in a day: cap hit, complaints.
- Ignoring 72-hour CTWA window: cost goes up, conversion drops.
- Using marketing-category template for utility purpose: rejected, then patient gets nothing.
How templates and window connect#
- Messaging conversations: window dictates composer behaviour.
- Campaigns: marketing templates feed bulk campaigns.
- Automations: rules use approved templates.
- Notifications: transactional reminders via templates.
- Marketing consent: gate on marketing-category sends.
- Lead attribution: CTWA payload feeds lead source.
- Reports: delivery, cost, conversion.
- Patient portal: opt-out endpoints sync with consent.
