Log inStart Free Trial
Meta Tech Provider

AI and a person on the same WhatsApp number: the AI steps back when you reply from the phone

With Coexistence, one WhatsApp Business number can be answered by an AI through Meta's Cloud API and by you in the WhatsApp Business app. Anything you type on the phone reaches software as an smb_message_echoes webhook, and easyCoexistence automations then stay quiet on that chat for 4 hours by default, adjustable from 0 to 168. The AI's replies appear in the app's chat thread.

4 hours

Default pause on a chat after the owner replies from the phone, set per automation from 0 to 168 hours.

smb_message_echoes

Webhook Meta sends when a business sends from the WhatsApp Business app or a companion device, or edits or deletes a message there.

Mirrored

Meta's Coexistence guide: messages sent and received are mirrored between the Cloud API and the WhatsApp Business app.

10 per hour

Default cap on AI replies per chat per hour, from 1 to 60, so a loop with another bot stops at the cap.

1,380 minutes

Longest Wait step, 23 hours; the remaining steps are skipped if you reply from the phone meanwhile.

0 groups

Group chats are not synchronized on a Coexistence number, so automations do not run inside a group.

How do an AI and a person share one WhatsApp number?

Through Coexistence, Meta's mode that runs the WhatsApp Business app and the Cloud API on one number at the same time. The AI works on the API side: an automation receives the customer's message through Meta's webhook and answers through the Cloud API, using your own AI key with Anthropic, OpenAI or OpenRouter. You work on the app side, on the phone or a linked device, as before. Both write into the same chat, from the same number, so the customer has one conversation, not two inboxes. One signal keeps you from talking over each other: Meta reports what you send from the app as an smb_message_echoes webhook, and the automation reads it as a person answering that chat.

1Customer writesAna asks about gluten-free bread at 10:02
2AI repliesSent through the Cloud API, shown in your app's chat
3You reply from the phoneMeta sends smb_message_echoes for your message
4AI steps backAutomations skip that chat for 4 hours by default
5AI resumesIt reads your replies as part of the chat

What happens, minute by minute, when you reply from the phone?

Take a bakery running an AI assistant on Every message. At 10:02 Ana asks whether there is gluten-free bread, and within seconds the AI answers that the gluten-free loaf is baked on Tuesdays and Fridays; the reply appears in the chat on your phone as a message from the business. At 10:05 you open the chat and type that you can save her a loaf for tomorrow. Meta sends that message to easyCoexistence as an echo, and the chat is marked as answered by a person at 10:05. At 10:07 Ana writes back. The run starts, is Skipped with the reason "You answered this chat from your phone recently", and nothing is sent. The pause lasts until 14:05, and any new message you send from the phone restarts it. All other chats keep their automations.

What do the customer and your phone see?

The customer sees one chat with your business number. Replies the automation sends and messages you type arrive in the same thread, from the same number. On your phone, the AI's replies sit in that chat as messages sent by the business, because Coexistence mirrors API messages into the app; scroll up before you step in and you read exactly what the AI already said. If you want customers to know a person has taken over, say so in your first line, for example "Hi Ana, Maria here". Groups stay outside all of this: Meta does not synchronize group chats on a Coexistence number, so automations never answer in a group, and your team handles groups in the app as before.

How long does the automation stay quiet, and can you change it?

Four hours by default, counted from your latest message on that chat. Each automation has the setting under Advanced in the editor: "Pause on a chat after I answer it (hours)", from 0 to 168, which is a week. The pause covers one chat and applies to every kind of automation on it: welcome, keyword, after-hours and AI replies alike. Because each automation reads its own value, a keyword price reply can come back after 1 hour while the AI assistant stays out for 24. Set 0 and the automation keeps answering right after you, although a Wait step still stops if you replied during the wait. Through the MCP connector, the same value is settings.takeover_hours in create_automation or update_automation.

update_automation: stay out of a chat for 24 hours after a phone reply
{
  "automation_id": "<from list_automations>",
  "settings": { "takeover_hours": 24, "ai_max_per_hour": 10 }
}

What happens when a customer asks for a person?

The AI is told to hand over. easyCoexistence adds a short block of rules under your Instructions on every AI reply: one says that if the customer asks for a person, or the AI cannot help, it should say a person from the business will answer soon, another forbids inventing prices, stock, dates or policies your instructions do not contain, and another says it is the business's automated assistant when asked; the first AI reply to a person in a day also opens by saying so. That matches WhatsApp's Business Messaging Policy, which allows automation in the 24-hour window but asks for "prompt, clear, and direct escalation paths", such as an in-chat transfer to a person, a phone number, email, web support, a store visit or a support form. The handover itself is your reply: the customer's message is already on your phone, and the moment you answer, the pause starts. Until then the AI keeps answering new messages within its hourly limit, so reply soon or put your phone hours in the instructions. A flow can also hand over by itself: a Hand to a person step, or an agent's handoff tool, pauses the bot on that chat and emails you.

What happens to wait steps and follow-ups when you step in?

They stop. A Wait step parks the run for 1 to 1,380 minutes, up to 23 hours. When the run wakes up, it checks whether anyone replied from the phone after it started, and if so the remaining steps are skipped with the same reason, "You answered this chat from your phone recently". If the customer writes again and the same automation answers the new message, the parked run is replaced instead, logged as "A newer message from the customer took over". So a flow like "wait 2 hours, then send the price list" does not fire on a customer you already handled. A follow-up that wakes more than 24 hours after the customer's last message is skipped too, unless the step sends an approved template.

What does the AI read when it comes back?

The conversation, including your side of it. When the pause ends, the next AI reply reads the chat's earlier messages, 10 by default and up to 20 under "Earlier messages it reads", and the messages you typed on the phone are part of that history, passed to your model as the business's side of the chat. So the AI picks up from your last answer instead of repeating it. Messages are kept for conversations on channels with automations: you choose 30, 90 or 365 days (90 by default) under Keep messages for in Conversations, and the run log, with the triggering message and the reply, is kept 30 days. A voice note is written out on your own OpenAI or OpenRouter key and reads as "[voice message]" followed by the words; without such a key it stays the placeholder alone. A Reply with AI step sees pictures as placeholders such as "[image] caption", while an AI agent step looks at pictures and PDFs.

What should you keep doing on the phone?

Open the WhatsApp Business app. Meta disconnects a Coexistence number when the primary phone has been inactive for about 14 days, and replies the automation sends through the API do not count as activity on the phone. A business whose AI handles most chats can drift into that, which is why easyCoexistence monitors each number 24/7 and emails you when Meta disconnects it, with Meta's reason. Also pick one tool per job: the app's own greeting and away messages keep working from the phone and are set up only there, so running them next to a welcome or after-hours automation can give a customer two replies. Calls stay on the phone as well: voice and video calls keep working in the app, but the Cloud API does not carry them on a Coexistence number, so the AI answers in text and you take the calls.

How to set it up

  1. Connect the numberConnect your WhatsApp Business number through Coexistence from the dashboard; the app keeps working on your phone throughout.
  2. Save your AI keyOpen AI keys, pick Anthropic, OpenAI or OpenRouter, paste the key and choose Test and save. Afterwards it shows only as ending in its last four characters.
  3. Start the AI assistantIn the Automations tab, choose New automation, then Start from scratch, set the match to Every message and add a Reply with AI step: pick the model and write your Instructions. Or choose Agent answers everything to use an AI agent.
  4. Set the pauseOpen Advanced and set Pause on a chat after I answer it (hours). Keep 4, or pick the hours that match how fast you usually reply.
  5. Turn it onIf the editor says automations are off for the number, choose Turn on automations for this number. New automations start switched On; check the switch reads On, then save.
  6. Test with two phonesWrite to the business number from a second phone, let the AI answer, reply from the business phone, then write again. The Runs tab shows that last run as Skipped.

Common mistakes

  • Checking takeover with Test it. A test runs the saved steps on a sample message and skips the takeover check; to see the pause, write from a second phone and answer from the business phone.
  • Setting the pause to 0 so the AI never stops. It then replies right after you on the same chat, and a customer can get your answer and the AI's to one question.
  • Sending only takeover_hours through update_automation. Settings are replaced as a whole, so a custom AI reply limit returns to 10 unless you send ai_max_per_hour too.
  • Answering from a personal WhatsApp on another phone. That is a different number, it sends no echo for the business chat, and the automation keeps replying.
Doing this with EasyCoexistence

easyCoexistence connects your WhatsApp Business number to Meta's Cloud API through Coexistence, so your own AI answers on the number while you keep the app. A reply from your phone pauses automations on that chat, 4 hours by default, and every number is monitored 24/7 with alerts. US$ 9 down to US$ 0.75 per number per month, falling as you add numbers, with the first 3 days free.

easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.

Frequently asked questions

Will automations answer a customer I messaged first from the phone?

Not during the pause. Your message arrives as an echo, so if the customer replies within the takeover hours, automations skip that chat. After that they answer as usual. The welcome automation does not fire, because that chat is already known, unless it then goes quiet for about a month.

Does a reply from a linked device pause the automation?

Yes. Meta sends smb_message_echoes for messages sent from the WhatsApp Business app or a companion device, so a teammate answering from a linked phone or computer pauses automations on that chat just as the primary phone does.

Can I pause the AI on one chat without replying?

Yes. In Conversations, open the chat and pause automatic replies for 1, 4 or 24 hours, or until you switch them back on; update_contact with pause_hours does the same from your AI assistant, and a Hand to a person step in a flow pauses the bot and emails you. Answering from the Conversations screen also keeps automations quiet, like a reply from the phone. Turning an automation off stops it on all chats at once.

Does the AI know what was said before automations were on?

No. It reads only messages kept since automations were turned on for the number, and only the last few, 10 by default and up to 20, within the 30, 90 or 365 days you keep messages. Older conversations stay in the app on your phone, where the AI does not look.

Keep reading

Ready to get started?

Set up WhatsApp Coexistence in minutes, not months. The app keeps working on the phone.

Start Free Trial

Verified on