The four stages
Stage 1 — INBOUND
Customer sends “Hi” from their phone:message.from (who) and message.text.body (what).
Stage 2 — LOGIC
Your server decides what to reply:Stage 3 — OUTBOUND
Your server calls the Messages API to send the reply:Stage 4 — STATUS
Meta fires status events back to confirm delivery:Full terminal output for one round trip
Frequently asked
How does a WhatsApp bot work end to end?
How does a WhatsApp bot work end to end?
Four stages — inbound (Meta POSTs customer message to your webhook), logic (your code decides
the reply), outbound (you call Meta API to send the reply), status (Meta fires
sent/delivered/read events back to confirm).
What is the difference between inbound and outbound?
What is the difference between inbound and outbound?
Inbound = customer → Meta → your webhook (Meta calls you). Outbound = your server → Meta API
→ customer (you call Meta).

