Business-Initiated vs User-Initiated WhatsApp Messages

Who starts the conversation decides what you may send. Learn how the 24-hour window works, why templates are the only way to start, and what error 131047 means.

Every WhatsApp Business Platform rule about what you may send depends on one question: who spoke first? If the customer wrote to you, you can reply freely for a limited time. If you want to start, you need an approved template and the customer's opt-in. Meta's documentation rarely uses the labels user-initiated and business-initiated on the current pages, yet the logic behind them runs through messaging limits, templates, errors and billing. This article puts the pieces together.

What opens the customer service window

A 24-hour customer service window opens when a WhatsApp user messages or calls your business, and it resets to 24 hours every time the user messages or calls again. While it is open you can send service messages, which do not need pre-approval; when it closes you can only send approved templates.

Meta's send-messages page lists what you can send inside the window: text, image, audio, video, document, contacts, location, stickers, reactions, interactive reply buttons, lists, call-to-action URL buttons, location requests, address requests, Flows and voice call messages. Outside the window, the same page directs you to marketing, utility or authentication templates.

The terms user-initiated and business-initiated are the shorthand the community still uses. Meta's older changelog entries use customer-initiated conversations and business-initiated conversations, back when pricing was conversation-based. Today the model is per message, but the dividing line is the same.

What a business-initiated message requires

A business-initiated message is an approved template sent to a person who has opted in, outside an open window. Meta's platform overview says you must obtain user opt-in before sending message templates, and that templates generally require approval before you can send them.

Three things limit how many such messages you can send. First, the messaging limit: the maximum number of unique WhatsApp users you can deliver messages to outside a customer service window in a moving 24-hour period, set per business portfolio. A newly created portfolio starts at 250. Second, template quality and category rules. Third, Meta's pacing and quality signals on the number.

SituationAllowedCounts toward the messaging limit
User wrote within the last 24 hoursAny service message typeNo; the limit covers messages outside a window
Window closedApproved templates onlyYes
New contact, no prior messageApproved template, after opt-inYes

Meta defines the limit by messages sent outside a customer service window, which is why replies inside an open window are not its target. In practice, design the first message of a conversation as your scarce resource and replies as ordinary traffic.

Error 131047 and what it tells you

Error 131047 means more than 24 hours have passed since the recipient last replied, and the fix is to send a template message instead. It is the most common symptom of a system that treats WhatsApp like chat and forgets the clock.

Meta documents it in the error codes page with exactly that guidance. The root cause is rarely the error itself; it is that your application does not track the window. If your code stores the timestamp of the last inbound message per contact, you can choose between a free-form reply and a template before calling the API, instead of discovering the answer from a rejected request.

function messageKind(lastInboundAt, now) { const WINDOW_MS = 24 * 60 * 60 * 1000; return now - lastInboundAt < WINDOW_MS ? 'service' : 'template'; }

Calls also open the window, so lastInboundAt should be updated by call events as well as by messages. Treat a boundary case as closed: if the difference is within a few seconds of 24 hours, send the template.

Templates as the bridge

Templates are the only message type allowed outside a window, and their category should describe the real purpose of the message. Meta's categorization page describes a utility use case for opt-in management, with templates that confirm opt-in as a follow-up to opt-in collected through other channels, and templates that confirm opt-out.

Another category on that page is Continue a Conversation on WhatsApp. Meta says these messages should not be initiated without a user having requested the conversation to be moved to WhatsApp. That rule is a good example of the general principle: starting a conversation without the user's request is the part Meta restricts hardest.

For the practical details of creating and sending templates, the documentation index lists the guides. For incoming events that tell you a window opened, see the webhooks documentation.

A special case: ads that open the conversation

When a user messages a business from a Click to WhatsApp ad on Android or iOS, Meta describes a free entry point window that may remain open for up to 7 days. During that period, Meta does not charge for marketing, utility, authentication or service messages, although Meta Business Agent messages are still charged.

The practical point for developers is that your own window logic still uses 24 hours unless you handle this case explicitly. Read the pricing page before assuming a longer period applies to your sending, because the free entry point window is a pricing concept as well as a conversation one.

Example: an order update that crosses midnight

A customer asks about an order at 10:00 on Monday. At 18:00 your system has the answer and replies with plain text; the window is open, so a service message works. On Tuesday at 11:00 the status changes, and your system wants to notify the customer. More than 24 hours have passed since the last inbound message, so a plain text send would fail with 131047.

The correct path checks the timestamp, finds the window closed and sends an approved utility template. The customer must have opted in. If they answer the template, a new window opens and your system can continue with free-form messages. Write this as a function used by every send path, not as an exception handler added after the first incident.

Add two logs to make the behavior visible: the window state your function decided on, and the Graph error code when a send fails. After a week you will know how many of your sends went out as service messages and how many as templates, which is the number that drives both your messaging limit planning and your template library. If the template share is higher than expected, look for flows that wait too long to answer.

Frequently asked questions

How long does the WhatsApp customer service window last?

24 hours from the user's last message or call. Each new message or call resets the timer to 24 hours.

Can I send a plain text message after the window closes?

No. Outside the window only approved templates are allowed, and trying a free-form message returns error 131047, which Meta resolves by sending a template instead.

Do replies inside the window count toward the messaging limit?

Meta defines the limit as unique users you can message outside a customer service window, so replies inside an open window are not the target of that limit.

Does a call open the window too?

Yes. Meta says the window starts when a WhatsApp user messages or calls your business, so call events should update your last-inbound timestamp.

Fontes

Documentação oficial da Meta, conferida em 31 de outubro de 2026.