· 7 min read

WhatsApp webhook stopped after Meta Business Agent turned on


When a business enables Meta Business Agent for live conversations, the agent becomes the primary responder for new conversations, and an app that was primary moves to standby. Standby is off by default. Unless the business grants your app standby visibility and your app subscribes to the standby field, you receive nothing at all. With both in place, copies arrive under value.standby, not value.messages, so a parser that only reads messages still looks silent.

The general checklist for a quiet endpoint is in WhatsApp webhook not receiving messages. This page covers the case where everything worked until the agent went live.

What changes when the agent goes live

Meta’s preparation page describes the switch. “Meta Business Agent becomes the primary responder for new conversations on the messaging entry points.” Previous primary responders “move to standby and receive conversation traffic on the standby webhook field” instead of messages, for threads they don’t own (prepare before enabling Meta Business Agent, accessed 2026-11-24).

“The routing change occurs when Meta Business Agent is enabled for live conversations.” Onboarding the agent and calling the Agent Test API leave routing alone. So a webhook can work through the client’s whole setup and stop on the day they go live.

The same page adds three points:

  • Enabling the agent does not replace an existing multi-integration routing configuration. The business chooses in Meta Business Suite.
  • Call routing is separate from message routing.
  • The page gives no dates for any of this.

Meta announced the agent on June 3, 2026, and its blog names WhatsApp, Messenger and Instagram (WhatsApp Business blog, accessed 2026-11-24). Agent messages have had their own pricing category since July 1, 2026, and Meta “continues to charge for Meta Business Agent messages in the FEP window” (Meta pricing, accessed 2026-11-24). Those are announcement and pricing dates. Meta gives no date for the routing change itself.

Without routing, everyone receives everything

Standby only exists once routing is set up. Meta’s overview says “By default, every responder connected to a WhatsApp account receives every inbound message” (conversation routing overview, accessed 2026-11-24). Routing needs “More than one responder on the account that could answer an inbound message”.

Routing is not enabled through the API. If fewer than two responders remain, the configuration is deleted. “Each account has at most one escalation partner.” Standby, escalation and thread control also require the business to have accepted the “Meta Business Agents and Platform Terms of Service”.

Two partners on one number without routing are covered in two WhatsApp providers on one number. The Messenger version of the same model is in Messenger handover protocol is now Conversation Routing.

Check your role with routing_roles

Don’t assume what the client’s setup did. Meta’s agent overview says enabling “moves prior messaging primaries to standby” where automatic setup is allowed. The standby page says the business must grant visibility explicitly. Ask the API.

curl "https://graph.facebook.com/v26.0/$PHONE_NUMBER_ID/routing_roles" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Meta’s example response is {"roles": ["calls", "ctwa"], "is_standby": false}. The token needs whatsapp_business_messaging or whatsapp_business_management (Meta routing roles, accessed 2026-11-24).

Response What it means for your app
Error 100, “Conversation routing is not enabled for this phone number.” No routing. Everyone receives everything on messages
roles lists entry points, such as customer_service You are primary for those entry points
roles empty, is_standby: true You receive copies only, on standby
roles empty, is_standby: false Our reading: no conversation traffic reaches you

Role values are calls, ctwa, customer_service, escalation, marketing and utility. ai_agent is never returned. Meta’s routing troubleshooting page gives the same first step for no inbound at all: “Use the Routing Roles API to check your roles and is_standby.”

Turn standby on: two switches

Both switches are needed, and your app can only flip one of them. The third step checks the result.

  1. The business grants your app standby visibility in Conversation Routing in Meta Business Suite. The app cannot grant it to itself.
  2. Your app subscribes to standby under WhatsApp > Configuration > Webhook fields in the App Dashboard.
  3. Run routing_roles again. With the grant in place, expect is_standby to be true.

Without both switches, the demoted app receives nothing (standby partners, accessed 2026-11-24). Standby gives visibility only. Meta’s agent troubleshooting page says “Standby does not grant permission to reply.”

Parse the standby payload

The data moves one level down, under value.standby. This is Meta’s sample from the standby webhook reference (accessed 2026-11-24).

{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "<WHATSAPP_BUSINESS_ACCOUNT_ID>",
      "changes": [
        {
          "value": {
            "messaging_product": "whatsapp",
            "metadata": {
              "display_phone_number": "<BUSINESS_PHONE_NUMBER>",
              "phone_number_id": "<PHONE_NUMBER_ID>"
            },
            "standby": {
              "contacts": [
                {
                  "profile": { "name": "Test User", "username": "<USERNAME>" },
                  "wa_id": "<WA_ID>",
                  "user_id": "<BSUID>",
                  "parent_user_id": "<PARENT_BSUID>"
                }
              ],
              "messages": [
                {
                  "from": "<WA_ID>",
                  "from_user_id": "<BSUID>",
                  "from_parent_user_id": "<PARENT_BSUID>",
                  "id": "<MESSAGE_ID>",
                  "timestamp": "<TIMESTAMP>",
                  "text": { "body": "Test standby message" },
                  "type": "text"
                }
              ]
            }
          },
          "field": "standby"
        }
      ]
    }
  ]
}

value.standby holds one of three arrays. messages are the user’s inbound messages. message_echoes are the other responder’s outbound sends. statuses are sent, delivered and read for those sends. Message objects use “the same schema as standard incoming message webhooks”.

entry[].id is the Messaging account ID. Standby carries no conversation_context. username, wa_id, parent_user_id, from and from_parent_user_id are optional, so key contacts on user_id as described in WhatsApp usernames and BSUIDs. You get no standby copies for threads you own or for your own sends.

This handler reads a saved body and routes both fields. Standby items go to storage only. Meta warns not to reply to standby messages.

# standby_router.py. Run: python3 standby_router.py webhook.json
import json
import sys

with open(sys.argv[1]) as f:
    body = json.load(f)

for entry in body.get("entry", []):
    account_id = entry.get("id")
    for change in entry.get("changes", []):
        field = change.get("field")
        value = change.get("value", {})
        if field == "messages":
            for msg in value.get("messages", []):
                print(f"[owner] {account_id} {msg.get('from_user_id')} {msg.get('type')}: reply allowed")
        elif field == "standby":
            standby = value.get("standby", {})
            for kind in ("messages", "message_echoes", "statuses"):
                for item in standby.get(kind, []):
                    who = item.get("from_user_id") or item.get("recipient_user_id") or item.get("to")
                    print(f"[standby] {account_id} {kind} {item.get('id')} {who}: store only, do not reply")

The recipient_user_id and to fallbacks assume the echo and status items follow the standard schemas. Meta’s standby reference shows only the messages sample.

What you can send while the agent owns the thread

Templates still work. Meta’s thread lifecycle page says marketing, utility and authentication templates can be sent by “Any responder on the account… regardless of which responder currently owns the thread” (thread lifecycle, accessed 2026-11-24). Sending one does not change the owner.

Service messages, the free-form replies inside the customer service window, fail. The error is 131070, “Message failed to send because another app is controlling this thread now.” It also fires when the thread is idle. The escalation partner is exempt.

Template postbacks can move the thread. A tap on a marketing or utility template’s button clears the owner and re-routes by entry point. An authentication template postback “does not signal a change of intent and does not reset the thread.” Meta’s entry points are Marketing Message Response, Utility Response, CTWA, Service (the default) and Call.

How a thread comes back

Control moves with POST /<PHONE_NUMBER_ID>/thread_control. The body takes exactly one of to (a phone number or wa_id) or recipient (a BSUID, which Meta prefers), plus an action (thread control, accessed 2026-11-24). Meta’s sample uses v21.0, and the code here uses v26.0.

Action Who can call it What happens
pass The current owner Goes to the escalation partner, or to control_pass.target_role
release The current owner Thread goes idle; the next inbound message “is re-routed by entry point”
take The escalation partner only Takes the thread; the previous owner gets control_taken

If your app is the escalation partner, this takes a thread from the agent.

curl -X POST "https://graph.facebook.com/v26.0/$PHONE_NUMBER_ID/thread_control" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "messaging_product": "whatsapp",
    "recipient": "<BSUID>",
    "action": "take",
    "metadata": "<HANDOVER_NOTE>"
  }'

The escalation partner can also take a thread implicitly by sending a Service message. The response carries messaging_product and request_id. metadata is optional, up to 2,000 characters.

If your app owns a thread and wants the agent to handle it, pass with a target role. ai_agent “currently evaluates to Meta Business Agent”. The other targets are ctwa, customer_service, escalation, marketing and utility.

curl -X POST "https://graph.facebook.com/v26.0/$PHONE_NUMBER_ID/thread_control" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "messaging_product": "whatsapp",
    "recipient": "<BSUID>",
    "action": "pass",
    "control_pass": { "target_role": "ai_agent" }
  }'

Subscribe to messaging_handovers to follow ownership. A control_passed event goes to the new owner with previous_owner_role, new_owner_role, metadata and an optional conversation_context summary. A control_taken event goes to the previous owner. release sends no handover event.

Meta says “No endpoint reports the current owner.” Track ownership from these events. A thread also goes idle on its own after 24 hours of user inactivity.

Errors on thread control

Code Message
131070 “Message failed to send because another app is controlling this thread now.”
2494191 “You are not permitted to take thread control for this phone number.”
100 “(#100) control_pass is only supported for the pass action.”

Our reading of 2494191: your app is not the escalation partner, since only that partner can take. Ask the business which app holds that role.

A vendor page that disagrees with Meta

360dialog’s MBA webhooks page says a standby app’s Service message makes it the handler, and that release returns control “to the agent” (360dialog docs, accessed 2026-11-24). Meta’s pages say otherwise. Only the escalation partner takes control by sending. release sends the thread to idle, and the next message goes to the entry point’s primary, which is the agent only if the agent is primary there. Build to Meta’s wording.

What Meta does not document

Meta gives no date for the routing change. It doesn’t document the webhook pricing.category value for agent messages. It offers no endpoint to read the current owner. It doesn’t describe how the agent hands a thread back to a human beyond pass, take and escalation. Instagram has its own standby case, covered in Instagram webhook verified but DMs not arriving.

Z-API Omni team