Log inStart Free Trial
easyCoexistence Official APIs

Move an Instagram DM to WhatsApp automatically

To move an Instagram DM to WhatsApp, ask in the DM for the person's WhatsApp number, or for a yes to one they wrote. Then write first from your WhatsApp Business number with an approved template, the only way a business can open a WhatsApp chat. easyCoexistence does both in one automation that Claude or ChatGPT can set up, writing from the number you keep in the app.

Opt-in

WhatsApp requires opt-in before a business messages someone, stating clearly that they opt in and naming the business.

Templates only

Template messages are the only WhatsApp messages a business can send outside a customer service window.

24 hours

How long the Ask for their number step waits for the person's answer in the Instagram DM.

Once a week

Most often one of your WhatsApp numbers writes first to the same person through this step.

Mirrored

Coexistence mirrors messages sent and received between Meta's Cloud API and the WhatsApp Business app, in one-to-one chats.

Per message

Meta bills each delivered template by its category and the recipient's country, to the business's own account.

Why can't the WhatsApp message just go out?

Three rules stand in the way. Instagram does not hand over the number: its User Profile API returns a person's name, username, picture and follower count, so the number has to be asked for. WhatsApp requires opt-in before a business messages someone, with a clear statement that they opt in and the business's name. And a business can open a WhatsApp chat only with an approved template, since free text goes out only within 24 hours after the person writes. So the flow asks in the DM, records the answer as consent, and then sends a template.

1DM on Instagram"Can we talk on WhatsApp?"
2Ask for their numberOr confirms the one they wrote
3Their yesRecorded as consent
4Template on WhatsAppFrom the number you keep in the app

How does the Ask for their number step work?

It sends a question by DM and waits up to 24 hours for the answer, which decides what happens next. The step names the WhatsApp number that will write, under Your number that writes to them, and holds two texts: What we ask, and When their message already has a number. Both must say WhatsApp and name the business with {{business}}, filled with the number's verified name, and the second must show {{whatsapp}}, so people can check it is theirs:

  • A number in the answer: their consent is recorded with the question and the answer, and the number is saved on their contact as the whatsapp field.
  • A short yes, such as YES, ok, sim or sí, when their DM already had a number: the consent is recorded the same way.
  • A no ends the run as "They said no". Anything else leaves the question open, and silence for 24 hours ends it as "They did not answer the question within 24 hours".
  • A number written without a country code is read in the country of your WhatsApp number.

What happens on WhatsApp?

The next step, Send a template to their number, writes from the number chosen in the question, with an approved template of that number. It goes out only with the consent on record, at most once a week to the same person from that number, and never while the number is suspended, banned, disconnected, limited by Meta or rated red; in those cases the question is not asked either. Meta bills the template per delivered message to your own WhatsApp Business Account. Through Coexistence the template appears in the chat in the WhatsApp Business app, and when the person replies you carry on from the phone, where app messages stay free.

Which DMs should start it?

Pick the trigger by what people write. Each choice is an automation on the Instagram account, and only one automation answers each DM:

  • Has a phone number: the DM contains one, so the step asks them to confirm it. It ranks first among DM automations.
  • Has keyword: words such as whatsapp, zap or número, anywhere in the DM, at the start, or as the whole DM.
  • A comment instead of a DM: a comment automation can reply in public, ask with the comment's one private reply, and get the answer in the DM.
  • Inside a conversation: an agent can start this automation when the customer wants to continue on WhatsApp, once it is listed under Automations it can start.

How do you set it up from Claude or ChatGPT?

Connect the Instagram account and the WhatsApp number to the same easyCoexistence account, and have an approved template on the number; create_template submits one to Meta, whose review can take up to 24 hours. Then ask your AI. It calls list_social_accounts for the Instagram channel_id and list_numbers for the WhatsApp connection_id, then create_automation with an ask_whatsapp step followed by send_template, and test_automation, which plays the flow as if the person had given a number and sends nothing.

The request, and the create_automation call it becomes
You: On my Instagram, when a DM mentions WhatsApp, ask for their number
     and write to them from my WhatsApp number with the template continue_chat.

→ list_social_accounts   (the Instagram channel_id)
→ list_numbers           (the WhatsApp connection_id)
→ create_automation {
    "connection_id": "…Instagram channel_id…",
    "name": "Instagram DM to WhatsApp",
    "trigger": {
      "type": "dm_received",
      "match": "keyword",
      "keywords": ["whatsapp", "zap", "wpp"],
      "keyword_mode": "contains"
    },
    "steps": [
      {
        "type": "ask_whatsapp",
        "connection_id": "…WhatsApp connection_id…",
        "text": "Want to continue on WhatsApp? Reply with your number and {{business}} will message you there.",
        "confirm_text": "Can {{business}} message you on WhatsApp at {{whatsapp}}? Reply YES to confirm."
      },
      { "type": "send_template", "name": "continue_chat", "language": "en_US" }
    ]
  }
→ test_automation { "automation_id": "…", "text": "Can we talk on WhatsApp? +1 415 555 0142" }

How to set it up

  1. Connect both channelsConnect the Instagram account and the WhatsApp Business number, through Coexistence, to the same easyCoexistence account, and get a template approved on the number.
  2. Start an Instagram automationIn Automations, click New automation, choose Manual, open the Instagram tab and pick Start from scratch; under Which messages, choose Has keyword or Has a phone number.
  3. Add Ask for their numberDelete the Send a DM step, click + to add Ask for their number, pick Your number that writes to them, and edit both texts, keeping WhatsApp, {{business}} and {{whatsapp}}.
  4. Add the templateClick + below it to add Send a template to their number, pick the approved template and fill each Variable.
  5. Test, then turn it onSave, open Test and click Run test with a sample DM: nothing is sent, and the test goes on as if they answered. Then make sure it is switched on.

Common mistakes

  • Dropping WhatsApp, {{business}} or {{whatsapp}} from the texts. The editor refuses to save, because Meta needs people to agree to messages from a named business on WhatsApp.
  • Picking a template still in review, or one with named variables, a header picture or a button that takes a value. Automations cannot send those, and the run fails.
  • Answering the person from the Instagram app while the question is open. When they reply with their number, the run sees that a person took the chat and stops, so no template goes out.
  • Expecting a second template the same week. The step writes first to the same person at most once a week from a number, so a second run that week skips it.

Businesses with no WhatsApp number connected to easyCoexistence: the template always goes out from one of your own connected numbers.

Doing this with EasyCoexistence

easyCoexistence connects your Instagram account and the WhatsApp Business number you keep in the app, through Coexistence, to one account: an automation asks for the number in the DM, records the person's yes, and writes first from your number with an approved template, which Meta bills to your own WhatsApp Business Account with no markup from us. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, 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, Google Business Profile 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.

Connect Instagram to ChatGPT and Claude

Frequently asked questions

Does the person need to follow my Instagram account?

No. Anyone who sends the account a DM can be answered within 24 hours of their message. When the flow starts from a comment, the question arrives as the comment's private reply, in their inbox if they follow you and in message requests if they do not.

What if the number they give has no WhatsApp?

easyCoexistence cannot check that beforehand, so it shows only when the template is sent: the send fails, the run log says why, and you get an email about the failed run, so you can follow up on Instagram.

Can I see who agreed to be contacted?

Yes. The number is saved on the person's contact as the whatsapp field, the run log shows the number they gave, and their reply stays in the conversation in Conversations for your retention period.

Does Meta charge for moving the chat?

Meta bills the WhatsApp template per delivered message to your own WhatsApp Business Account, by its category and the person's country, and easyCoexistence adds no markup. Replies you then type in the WhatsApp Business app stay free, as they were before Coexistence.

Keep reading

Connect your first channel in two minutes.

No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.

  • 3 days free
  • Cancel any time
  • Official APIs only
  • Monitored 24/7

Verified on