arXiv:2611.02834cs.CLNov 2026

Manuscript Offprint

arXiv:2611.02834

Window-Aware Scheduling for Health Messaging under Platform Delivery Constraints: Evidence from an AI-Powered WhatsApp Maternal and Infant Health Chatbot in Nigeria

Jeremiah Moyondafoluwa Adepoju, Samuel Omolaiye, Thanni Adewuyi, AbdulQahhar Abimbola Okenla, Lily-Aimas Love, Adereni Abiodun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

WhatsApp lets a business send free-form messages only within 24 hours of a user's last message; outside this customer service window, only pre-approved templates are delivered. Health chatbots inherit this rule, but its cost is rarely measured. We analyse 98,607 messages sent to 3,696 mothers by a WhatsApp maternal health chatbot in Nigeria, with a largely separate export as replication. No free-form message failed with the window open (0 of 35,500), and failure jumped by 93.0 percentage points (95% CI 87.0 to 99.1) at exactly 24 hours. Two flows produced 66.1% of failures, including an offer to speak with a medical professional that, as built, reached 0.3 in 100 mothers whose window had closed. We formalise window-aware scheduling as a decision problem with an action of known zero value. Model-based offline evaluation, with bounds for unconfirmed delivery, estimates that sending the offer as an approved template would reach 81.5 to 86.8 in 100 such mothers, against 16.6 for waiting and 11.6 for a reply prompt. In a calibrated simulation, tabular Q-learning converges to the same template rule and does not beat it in any of 13 stress tests, and opting out does not rise with message volume. The main gain comes from respecting the platform rule, and it needs no learning. All outcomes are deliveries, not health outcomes.

1. Introduction

Nigeria accounted for an estimated 28.5% of the world's maternal deaths in 2020 (World Health Organization, 2023). Mobile messaging has been tested widely as a way to reach pregnant women with health information: systematic reviews of maternal and newborn mHealth in low- and middle-income countries report improvements in some care outcomes,

with evidence of mixed quality (Lee et al., 2016; Sondaal et al., 2016), a cluster-randomised trial in Zanzibar found that text messages increased skilled attendance at delivery among urban women (Lund et al., 2012), and text-message trials in Kenya improved antiretroviral adherence (Lester et al., 2010; Pop-Eleches et al., 2011). WHO guidance on digital health includes targeted communication to clients through mobile devices (World Health Organization, 2019). Some now run on WhatsApp, which is widely used in health research (Manji et al., 2021), and many take the form of chatbots, a class of tools reviewed by Laranjo et al. (2018).

WhatsApp imposes a delivery rule that most programmes inherit without measuring. A business may send free-form messages only within 24 hours of the user's last message. Outside this window, only templates approved in advance by Meta are delivered, and a free-form message is rejected (Meta for Developers, 2026b). The rule matters because many important health messages are proactive. A reminder, a follow-up or an offer to speak with a clinician is sent by a scheduler, often when the mother has not written for days. If the scheduler ignores the window, these messages fail silently: they are logged as sent and never arrive.

We measure that loss and evaluate how to schedule around it, using the logs of a WhatsApp maternal health chatbot run by a non-profit organisation in Nigeria. We treat the window as a hard, observable constraint on which actions are available. This connects a practical delivery problem to bandits with changing action sets (Kanade et al., 2009; Kleinberg et al., 2010) and to adaptive interventions that depend on when a person can be reached (Nahum-Shani et al., 2018; Künzler et al., 2019). It also changes the learning problem: the platform fixes the value of one action at zero whenever the window is closed, and the window is visible before each decision.

Research questions. RQ1: How much proactive messaging fails because of the window, and is the effect sharp enough to identify from logs alone? RQ2: Which flows produce the loss, and why? RQ3: Which window-aware policies recover it: approved templates, waiting for the mother to write, or prompting a reply that reopens the window? RQ4: When today's choice changes tomorrow's window, does reinforcement learning improve on simple rules?

Contributions. We make four contributions. First, we measure the message loss attributable to the 24-hour window, identified by a sharp discontinuity and replicated in a second export (Section 6.1). Second, we diagnose its source: two flows produce two thirds of failures, and one of them blocks a clinician referral by design (Section 6.2). Third, we formulate window-aware scheduling with a known-zero action and state when waiting or a reply prompt can beat a template (Section 4). Fourth, we evaluate policies offline by content type, with explicit delivery bounds and stated identification assumptions, and show in a calibrated simulation that Q-learning converges to the template rule (Section 6.3 and Section 6.4).

Figure 1 summarises the first finding. The broader lesson is that a learning method is only as useful as the structure left after known constraints are encoded; here, encoding one platform rule removes almost all of the loss.

References (60)