P30.ai

How to connect your WhatsApp Business number to an AI agent: a step-by-step guide for non-technical teams

Create the Meta app, try your agent on Meta's free test number, then go live on a new number or on the WhatsApp Business number you already use. No coding needed.

By Magnus JernUpdated

Building a WhatsApp agent in P30 takes minutes. Connecting it to WhatsApp takes longer, because Meta (the company behind WhatsApp and Facebook) asks you to set a few things up on its side first. This guide walks you through every screen, in order, without assuming you have ever used Meta's developer tools.

You do it in three rounds:

  1. A free trial on Meta's test number. Meta gives you a test WhatsApp number that only talks to up to five phones you choose. You try your agent with colleagues; nothing is public.
  2. Getting your business ready. Meta verifies your company.
  3. Going live, one of two ways:
    • Option A: a new number in your own Meta app. A number that is not used in any WhatsApp app (a new SIM, a second line). No extra service needed.
    • Option B: the WhatsApp Business number you already use (optional), through a service called Dualhook. You keep using the WhatsApp Business app on your phone, and the agent answers on the same number.

Time. About one hour for round 1 the first time (most of it is clicking through Meta's screens once), then about 30 minutes for round 2 and either option, plus a few working days while Meta verifies your business.

You will not write any code. Where Meta uses technical words, the table below says what they mean and whether you need them.

Before you start

Have these ready:

  • A Facebook login that is an admin of your company's Meta business portfolio (at business.facebook.com). If your company has none yet, create one there; it takes two minutes.
  • Access to your company's admin page in P30. WhatsApp is on for every company: it is the WhatsApp card under Connections → Catalogue.
  • A notes file to paste a few values into as you go. Some are shown only once.
  • For option A: a phone number that is not used in the WhatsApp or WhatsApp Business app, and can receive an SMS or a call; a company card for Meta's payment settings; and the address of your website's privacy policy.
  • For option B: your phone with the WhatsApp Business app on the number you want the agent to answer. It must be the Business app (green icon with a "B"), version 2.24.17 or newer, and in active use for a while: Meta does not accept brand-new accounts straight away.

If you plan option B, never add that number to the Meta app you create in round 1. Once a number is attached to an app of your own, Meta will not connect it with the WhatsApp Business app kept on the phone until it is removed again.

The words Meta uses

Meta says What it is Do you need it?
Business portfolio Your company's account on Meta. Everything else belongs to it. You pick it from lists. Never paste its ID into P30.
App A "developer app" that lets software like P30 talk to WhatsApp for you. You create one; you never write code. Its App secret.
Messaging account (formerly WhatsApp Business Account) The WhatsApp account that holds your numbers. Its ID.
Phone number ID A long number that identifies one WhatsApp number to Meta. It is not the phone number itself. Yes, one per number.
System user A "user" that is not a person, so access does not stop when someone leaves the company. Only to make the access token.
Access token A long password that lets P30 send messages for you. Yes. Shown once.
App secret The app's own password, so P30 can check that messages really come from Meta. Yes.
Webhook The address where messages to your number are delivered. P30 gives you one; you paste it into Meta or Dualhook. You copy P30's values, never the other way round.

With option B, Dualhook replaces the access token, App secret and IDs: you only paste a Dualhook key.

Round 1: create the Meta app and try the agent on a test number

Everything in this round happens at developers.facebook.com, except step 5.

Step 1. Create the app (5 minutes)

  1. Go to developers.facebook.com and log in with the Facebook account from "Before you start". Click My Apps, then Create app.
  2. When Meta asks what the app is for, choose the option that leads to the Business app type. The wording changes from time to time; if it asks for a "use case", pick Other, then Business. Another app type will not offer the WhatsApp permissions later.
  3. Name it anything, for example P30 WhatsApp. Under Business portfolio, pick your company's portfolio. Click Create app.

Step 2. Switch on WhatsApp in the app (2 minutes)

  1. On the app's dashboard, find WhatsApp in the list of products and click Set up.
  2. When asked, pick the same business portfolio.

Meta now creates a messaging account for you with a free test number in it.

Step 3. Copy the two IDs and register your test phones (5 minutes)

  1. In the left menu, open WhatsApp → API Setup.
  2. Under From, the test number is already selected.
  3. Copy the Phone number ID and the Messaging account ID (older screens say WhatsApp Business Account ID) into your notes. They are two different long numbers.
  4. Under To, click Manage phone number list and add the mobile numbers of up to five people who will test the agent. Each one receives a code on WhatsApp to confirm.

You will see a Temporary access token on this page. Ignore it: it stops working after 24 hours, and your agent goes quiet with it. Step 5 makes a permanent one.

Step 4. Copy the App secret (1 minute)

In the left menu, open App settings → Basic. Next to App secret, click Show, type your Facebook password, and copy the secret into your notes.

Step 5. Make the permanent access token (15 minutes, the fiddly part)

This step happens at business.facebook.com.

  1. Open Settings (the gear icon at the bottom left). Under Users, open System users and click Add.
  2. Name it P30, choose the Admin role, and create it.
  3. With the new system user selected, click Assign assets:
    • choose Apps, tick your app, switch on Full control, and save;
    • click Assign assets again, choose WhatsApp accounts, tick your messaging account, switch on Full control, and save.
  4. Click Generate new token:
    • App: your app;
    • Expiry: Never;
    • Permissions: type whatsapp in the search box and tick both whatsapp_business_messaging and whatsapp_business_management.
  5. Click Generate and copy the token into your notes straight away. Meta shows it only this once.

If your app is missing from the list in point 3, it was created under another portfolio. Go back to developers.facebook.com, open the app, App settings → Basic → Business portfolio, choose your company's, and try again. If only one of the two permissions appears in point 4, the assets in point 3 were not saved.

Your notes now hold four values: Messaging account ID, Phone number ID, App secret and access token.

Step 6. Connect the test number in P30 (5 minutes)

  1. In P30, open your company's admin page, then Connections → Catalogue, open the WhatsApp card and click Connect a number.
  2. Keep My own Meta app selected. Paste the four values into their fields and give the connection a name, for example Test number. Click Connect.
  3. P30 checks the token with Meta, then shows a Callback URL and a Verify token. Copy both into your notes. They are shown only once.

Step 7. Tell Meta where to deliver messages (5 minutes)

  1. Back at developers.facebook.com, open your app, then WhatsApp → Configuration.
  2. Under Webhook, click Edit, paste the Callback URL and the Verify token, and click Verify and save. If Meta says it could not validate them, a character went missing: paste both again.
  3. Under Webhook fields, click Manage and subscribe to messages.

Step 8. Go live and send the first message (5 minutes)

  1. In P30, click Check connection. Every line should pass.
  2. Click Go live.
  3. If an amber notice says replies on this number are slower than they need to be, click Speed up once. Nothing else to do.
  4. Make sure your agent's design has the WhatsApp function, pointed at this number. Whoever built the agent in P30 does this.
  5. From one of the phones you registered in step 3, send a WhatsApp message to the test number. The agent answers within seconds.

Test as long as you like. When the answers are right, move on to round 2.

Round 2: get your business ready

Meta checks this before it lets a business message customers at scale. Start it early: verification can take a few working days.

Step 9. Verify your business with Meta (10 minutes, then Meta's review)

  1. At business.facebook.com, open Settings → Business info (on some screens, Security Centre) and click Start verification.
  2. Enter your company's legal name, address and website exactly as they appear on an official document, and upload that document (for example a company registration certificate or a utility bill in the company's name).
  3. Meta reviews it, usually within a few working days, and emails you when it is done.

You can carry on with round 3 while you wait, but until your business is verified Meta keeps your number on a low daily limit of new conversations.

Round 3: go live

Choose one option:

  • Option A if your agent gets a number of its own, one nobody uses in the WhatsApp app. Everything stays in the Meta app you already have; no other service is needed.
  • Option B if your agent must answer on the WhatsApp Business number your customers already know, while your team keeps using the WhatsApp Business app on the phone.

Option A: go live on a new number in your own Meta app

You keep the same app, system user, access token, App secret and messaging account from round 1. You add a number and switch the app on.

Step A1. Add the number (5 minutes)

  1. At developers.facebook.com, open your app, then WhatsApp → API Setup, and click Add phone number.
  2. Fill in the display name customers will see (Meta reviews it; a name that matches your company or brand passes), the category, and the number. Verify it with the code Meta sends by SMS or call.
  3. Under From, select the new number and copy its Phone number ID into your notes. The Messaging account ID does not change.

If Meta says Unable to create virtual account, the number is still registered in the WhatsApp or WhatsApp Business app on some phone. Use another number, or choose option B for that one.

Step A2. Add a payment method (3 minutes)

At business.facebook.com, open WhatsApp Manager, choose your account, then Payment settings, and add a card. Replies within 24 hours of a customer's last message are free; Meta still wants a card on file.

Step A3. Switch the app to Live (5 minutes)

  1. At developers.facebook.com, open your app, then App settings → Basic, and fill in Privacy policy URL with your website's privacy page. Save.
  2. In the top bar, switch App mode from Development to Live.

While the app is in Development mode, the number only talks to the test phones from step 3.

Step A4. Connect the number in P30 (5 minutes)

  1. In P30, open Connections → Catalogue → WhatsApp and click Connect a number.
  2. Keep My own Meta app selected. Paste the new Phone number ID, and the same Messaging account ID, access token and App secret as before. Name it, for example Main number, and click Connect.
  3. Copy the new Callback URL and Verify token, and paste them into Meta as in step 7. An app has one webhook address, so this replaces the test number's; both numbers keep delivering to P30.

Step A5. Go live (3 minutes)

  1. In P30, click Check connection, then Go live, and Speed up if the amber notice appears.
  2. In your agent's design, point the WhatsApp function at the new number instead of the test number. You can then disconnect the test number, or keep it for trying changes.

Done. Send the number a WhatsApp message from any phone.

Option B: keep your existing WhatsApp Business number, through Dualhook

This option is optional. You only need it to connect a number that is already in use in the WhatsApp Business app and should stay there. Your agent can go live without it, with option A.

Why Dualhook. P30 has partnered with Dualhook for connecting existing WhatsApp Business numbers: it is simple to set up and good value for money. Dualhook is approved by Meta to connect a number that stays in the WhatsApp Business app to software like P30, which Meta calls coexistence. We may offer our own connection in the near future; this guide will say so when we do.

Your team keeps chatting from the phone; the agent answers on the same number; P30 sees both.

The order matters: create the connection in P30 first, then in Dualhook, then link the phone. Meta shares your existing chat history only once, right at the moment you link the phone, and P30 can only keep it if the connection already exists.

Step B1. Check your WhatsApp Business app (5 minutes)

On the phone that holds your business number:

  1. Update the WhatsApp Business app to the latest version.
  2. Open Settings → Business tools → Business profile and check the business name. It is the name customers see, and Meta compares it with your company name; a name that matches your company or brand passes.
  3. Keep the phone at hand and charged for step B4.

Step B2. Create the connection in P30 (2 minutes)

  1. In P30, open your company's admin page, then Connections → Catalogue, open the WhatsApp card and click Connect a number.
  2. Choose Through Dualhook (keeps the app on the phone). Give it a name, for example Main number, and click Connect.
  3. P30 shows an Endpoint URL and a Verify token. Copy both into your notes. They are shown only once.
  4. Leave this window open, or click Finish later and come back to it from the number's settings in step B6.

Step B3. Create the connection in Dualhook (5 minutes)

  1. Go to dualhook.com and sign up. Every plan starts with a 14-day free trial; Dualhook asks for a card at sign-up. In November 2026 one number costs $12 a month.
  2. In your Dualhook dashboard, click New Connection.
  3. Fill in a connection name, then paste P30's Endpoint URL into the webhook URL field and P30's Verify token into the verify token field. Do not use Dualhook's option to generate a verify token: it must be the one from P30.
  4. Click Connect with WhatsApp. A Meta window opens.

Step B4. Link your phone in Meta's window (10 minutes)

In the Meta window:

  1. Click Continue.
  2. Pick your business number from the list; it shows a Registered badge. If it is not there, choose Enter a new phone number and type it. If Meta offers to send a code by SMS or call, stop and click Back: that path removes the number from the WhatsApp Business app.
  3. Check the business details shown and click Next. Pick your company's business portfolio and click Next.
  4. Meta shows a QR code. On your phone, open the WhatsApp Business app, tap Connect on the message from Facebook Business, and scan the QR code.
  5. On the phone, choose whether to share your chat history (up to the last six months). Sharing lets the agent and your staff see past conversations in P30. You make this choice once; it cannot be changed later.
  6. Back in the Meta window, confirm the time zone and what you share, then click Finish. Dualhook shows that it is finalizing the connection.

Step B5. Copy the Dualhook API key (2 minutes)

In Dualhook, open the connection, then Overview → Outbound API key. Create the key and copy it into your notes. It starts with dh_live_ and is shown only once.

Step B6. Go live in P30 (5 minutes)

  1. Back in P30, paste the key into Dualhook API key (dh_live_…) in the connect window. If you closed it, open the number's Settings in Connections → Catalogue → WhatsApp and paste it under Replace credentials.
  2. Click Go live. If P30 says the number has not arrived yet, send a WhatsApp message to your business number from another phone and try again: P30 recognises the number from the first message Meta delivers.
  3. In your agent's design, point the WhatsApp function at the new number instead of the test number. You can then disconnect the test number, or keep it for trying changes.

Done. Your customers write to the number they always used, and the agent answers.

What changes on the phone

Your team keeps using the WhatsApp Business app as before, with a few differences Meta applies to coexistence numbers:

  • When someone on your team replies from the phone, the agent steps back for two hours with that customer, so two people never answer at once. Every new reply from the phone extends the pause. Those replies also appear in the customer's conversation in P30.
  • Open the WhatsApp Business app at least once every 13 days. If the phone stays unused for about 14 days, Meta disconnects the number from Dualhook and the agent stops answering.
  • Disappearing messages, view-once messages and live location are switched off for one-to-one chats. Broadcast lists become read-only.
  • Linked devices (WhatsApp on a computer or tablet) are unlinked during the setup; you can link them again afterwards. WhatsApp for Windows is not supported on coexistence numbers.
  • Groups keep working on the phone, but the agent does not see or answer them.

When something goes wrong

What you see What it means What to do
Meta: Unable to create virtual account When adding a number (step A1): the number is still registered in the WhatsApp or WhatsApp Business app. In round 1: your login is not an admin of the business portfolio, or the portfolio is restricted. Use a number that is not in any WhatsApp app, or choose option B for it. Check Settings → People and Business Support Home at business.facebook.com.
P30: This access token expires on … The temporary token from the API Setup page was pasted. Make the permanent token (step 5) and paste it in the number's Settings under Replace credentials.
P30: You do not have permission to access this field The token is missing one of the two permissions. Make the token again with both permissions (step 5, point 4).
P30: nonexisting field (subscribed_apps) The ID in the messaging account field is the wrong one, often the portfolio ID from the browser's address bar. Open the number's Settings in Connections → Catalogue → WhatsApp, paste the Messaging account ID from WhatsApp → API Setup and click Save settings.
P30: No app is subscribed to this WhatsApp Business Account, or … sends its webhooks to "WA DevX Webhook Events 1P App" … Meta has not yet linked your app to the account. P30 links it when you connect, go live, or change the ID or token; this shows when Meta refused. Click Check on the number, then Subscribe the app. If Meta refuses again, the access token lacks the whatsapp_business_management permission: make a new one (step 5) and paste it under Replace credentials.
Meta: The callback URL or verify token couldn't be validated A character is missing in what you pasted. Paste both again. If you lost them, make a new pair in the number's Settings.
Meta asks for an SMS or call code during step B4 Meta did not offer to keep the app on the phone. Click Back and choose the number with the Registered badge. If it never appears, the app may be out of date or the account too new; ask Dualhook support.
Dualhook says the number is already connected elsewhere The number is attached to another app or provider (perhaps your own Meta app). Remove it there first, then repeat step B3. Dualhook's help pages explain how to release a number from another provider.
The test number answered, but stops a day later The temporary token was used. Make the permanent token (step 5).
The new number only answers the test phones The app is still in Development mode (option A). Switch it to Live (step A3).
Messages reach the phone but the agent never answers The number is not live, the agent's WhatsApp function points elsewhere, or (option B) someone replied from the phone in the last two hours. Click Check on the number's card in Connections → Catalogue → WhatsApp: it names the agents that answer, and why one that should does not. The card also counts the customers still waiting.
P30: No agent answers on this number No agent has the WhatsApp function with Listen and send on this number and has been started, or its function points at a number that is no longer connected. Open the agent named under the message, edit its WhatsApp function, choose this number again and save; start the agent once if it never ran.
P30: This number is Meta's test number The number is Meta's test number (+1 555 …). It only sends to the five or fewer numbers listed in the Meta app. Add the customer's number under WhatsApp → API Setup → To → Manage phone number list, or connect your real number (step A1).

FAQ

Frequently asked questions

Do I need to know how to code?
No. Every step is copying and pasting values between Meta, P30 and, for option B, Dualhook. The only fiddly part is the permanent access token in round 1, and this guide lists every click.
Do I need Dualhook?
No. Dualhook is only for connecting a WhatsApp Business number you already use and want to keep in the app on your phone. Your agent can go live on a new number in your own Meta app (option A) without it. P30 partners with Dualhook because it is simple to set up and good value for money, and may offer its own connection in the near future.
Why do I need a Meta app if my real number goes through Dualhook?
You only need it for the free test round. Meta's test number lives inside a Meta app, and it lets you try the agent with up to five phones before any customer sees it. With option B, your real number never goes into that app.
Can I keep using WhatsApp on my phone after connecting the agent?
With option B, yes: your team keeps chatting from the WhatsApp Business app, and the agent steps back for two hours with any customer someone on your team just replied to. With option A, the number works only through P30; staff reply to customers from P30.
Can I connect an agent to my personal WhatsApp?
No. WhatsApp's terms of use do not allow agents or bots on accounts that are not business accounts. P30 does offer simple automated ways to read content from your normal WhatsApp, such as copying chosen chats into P30. Contact us for more information.
What does it cost?
Meta does not charge for replies sent within 24 hours of a customer's last message; messages you start yourself are billed by Meta. Every answer the agent writes is billed to your P30 wallet, with a daily cap you set on the connection. With option B, Dualhook adds $12 a month per number after a 14-day free trial (prices in November 2026).
What happens if I do not open the WhatsApp Business app for two weeks?
With option B, Meta disconnects the number from Dualhook after about 14 days without the phone being used, and the agent stops answering. Open the app at least once every 13 days. To connect again, repeat option B from step B2.

Ready to get more from your AI usage?

See how P30 gives your business the clarity and execution power of a much larger company in a 20-minute walkthrough.

No commitment · See it on your business.