Skip to main content
Connect a WhatsApp Business number directly to IrisAgent, and your AI agent answers every customer who messages that number. Answers are grounded in your knowledge base, in the customer’s own language.
This page covers connecting WhatsApp directly through the Meta WhatsApp Cloud API. If WhatsApp already runs through Zendesk or Salesforce, see WhatsApp through Zendesk or Salesforce instead.

Ways to connect

Your number stays in your own WhatsApp Business Account whichever way you connect, so you can switch later without changing numbers.

Connect with Facebook

Connect with Facebook opens Meta’s WhatsApp signup in a popup. You pick or create your WhatsApp Business Account and number there, and IrisAgent sets up everything else.

What you need

  • IrisAgent admin access.
  • A Facebook account that is an admin of your company’s Meta Business portfolio, or that can create one.
  • A phone number that can receive an SMS or voice call for verification, and that isn’t in use on WhatsApp anywhere else. If it’s on the WhatsApp Business app or with another WhatsApp provider, see the warning under Connect through your own Meta app.
  • Pop-ups allowed for web.irisagent.com.

Steps

  1. In IrisAgent, go to Deploy → Text channels.
  2. On the WhatsApp card, click Connect with Facebook.
  3. Sign in to Facebook in the popup, if asked.
  4. Choose your Meta Business portfolio, or create one.
  5. Choose your WhatsApp Business Account, or create one.
  6. Add your phone number and display name, then verify the number with the code Meta sends by SMS or voice call.
  7. Review the permissions IrisAgent asks for and click Confirm.
The popup closes, and IrisAgent connects the number. The card then shows your WhatsApp number with a Connected status, and AI replies are on. Meta reviews your display name, which usually takes a few hours. Your number can receive and answer messages before the review finishes.
IrisAgent sets a two-step verification PIN on your number while connecting it. If you ever move the number to another provider, reset the PIN in WhatsApp Manager → Phone numbers → Settings → Two-step verification.
Add a payment method in WhatsApp Manager → Account tools → Payment methods so Meta can bill your messages. See Meta’s WhatsApp pricing.

Before you connect manually

Use this option if you’d rather not sign in with Facebook in IrisAgent, or if your IT team manages Meta access tokens. You need:
  • IrisAgent admin access
  • A WhatsApp Business Account (WABA) in Meta Business Manager, with a registered phone number
  • A Meta system user access token for that WhatsApp Business Account, with the whatsapp_business_messaging and whatsapp_business_management permissions
From WhatsApp Manager (or your Meta app’s WhatsApp → API Setup page), note:
  • The Phone number ID of the number customers will message. This is a numeric ID, not the phone number itself.
  • The WhatsApp Business Account ID.
Create the token for a system user rather than a personal Meta account, and give it no expiry. A token tied to a person stops working if they leave or lose access. See Meta’s guide to system users.

Connect your number

  1. In IrisAgent, go to Deploy → Text channels.
  2. Find the WhatsApp card, below the US SMS number card.
  3. Enter the Phone number ID.
  4. Enter the WhatsApp Business Account ID.
  5. Paste the System user access token.
  6. Click Connect WhatsApp.
IrisAgent checks that the token can access the number before saving it, then stores the token encrypted. The card then shows your WhatsApp number with a Connected status, and AI replies are on. You don’t need to set up a webhook or callback URL. IrisAgent receives your messages automatically once the number is connected.

Connect through your own Meta app

Use this option to go live on WhatsApp now. You create a Meta app in your own Meta Business portfolio, and the IrisAgent team connects it to your IrisAgent account. Meta bills you directly for WhatsApp messages.

What you need

  • A Meta Business portfolio (Business Manager) where you are an admin. Completing business verification is recommended; it raises your messaging limits and lets you use your company’s display name.
  • A phone number that can receive an SMS or voice call for verification.
  • A privacy policy URL for your business, which Meta requires before an app goes live.
The phone number can’t be in use on WhatsApp anywhere else. If it’s on the WhatsApp Business app or the regular WhatsApp app, delete that WhatsApp account first (in the app: Settings → Account → Delete account). Chat history stays on the phone but does not move to IrisAgent. If the number is with another WhatsApp provider, ask that provider to release it first.

Step 1: Create a Meta app

  1. Go to Meta for Developers and click Create app.
  2. Enter an app name (for example, “Acme WhatsApp”) and your contact email.
  3. For the use case, choose Connect with customers through WhatsApp.
  4. Select your Meta Business portfolio, then click Create app.

Step 2: Add your phone number

  1. In your app, open WhatsApp → API Setup.
  2. Click Add phone number and enter your business display name, time zone and category.
  3. Enter the phone number and verify it with the code Meta sends by SMS or voice call.
  4. Wait for Meta to approve the display name. This usually takes a few hours, and sometimes up to two days.
  5. In WhatsApp Manager → Account tools → Payment methods, add a payment method so Meta can bill your messages. See Meta’s WhatsApp pricing.

Step 3: Create a permanent access token

  1. In Business Settings, open Users → System users and click Add.
  2. Name the system user (for example, “IrisAgent”) and give it the Admin role.
  3. Click Assign assets and give the system user Full control of:
    • your new app, and
    • your WhatsApp Business Account.
  4. Click Generate token, choose your app, and set the expiry to Never.
  5. Select the whatsapp_business_messaging and whatsapp_business_management permissions, then generate the token.
  6. Copy the token. Meta shows it only once.

Step 4: Collect your app details

  1. In your app, open App settings → Basic.
  2. Copy the App ID.
  3. Next to App secret, click Show and copy it.
  4. Enter your Privacy policy URL and choose a Category, then click Save changes.
  5. Open WhatsApp → API Setup and copy the Phone number ID and the WhatsApp Business Account ID.

Step 5: Publish your app

Meta only sends real customer messages to apps that are live.
  1. In your app, open Publish.
  2. Click Publish and confirm.
You don’t need to submit your app for App Review. An app can always message through its own business’s WhatsApp numbers.

Step 6: Send your details to IrisAgent

Send these five values to your IrisAgent contact:
The app secret and access token give full access to your WhatsApp number. Share them only over a secure channel, such as a password manager share or a one-time secret link, never in a regular email or chat message. IrisAgent stores both encrypted.

Step 7: IrisAgent connects your app

The IrisAgent team saves your details, subscribes your app to your WhatsApp Business Account, and points your app’s webhook at your own IrisAgent webhook URL. You don’t need to do anything in this step. To confirm, open your app’s WhatsApp → Configuration page. The Callback URL starts with https://frontend-api-server-v2.api.irisagent.com/v1/webhooks/whatsapp/, and messages is subscribed under Webhook fields. If the IrisAgent team asks you to set the webhook yourself, they send you a Callback URL and a Verify token. Then:
  1. Open WhatsApp → Configuration in your app.
  2. Under Webhook, click Edit.
  3. Paste the Callback URL and the Verify token, then click Verify and save.
  4. Under Webhook fields, click Manage and subscribe to messages.
When it’s connected, follow Test it below.

Switching to Connect with Facebook later

You can reconnect your number with Connect with Facebook at any time. The number stays in your WhatsApp Business Account, so your customers keep messaging the same number. After it’s reconnected, you can delete the Meta app you created.

Test it

  1. From a personal WhatsApp account, message your business number with a common question, such as “What is your refund policy?”
  2. Confirm your AI agent replies with an answer from your knowledge base.
  3. In IrisAgent, open Activity → Conversations to see the conversation.

Pause or resume AI replies

Use the AI replies toggle on the WhatsApp card:
  • Connected: incoming WhatsApp messages are answered by your AI agent.
  • Paused: incoming messages are received but not answered.
You don’t need to re-enter the token to pause or resume.

Change the connected number

  1. On the WhatsApp card, click Change number.
  2. Enter the new Phone number ID and WhatsApp Business Account ID.
  3. Leave the token empty to keep the current one, or paste a new token if the new number is in a different WhatsApp Business Account.
  4. Click Save number.
The previous number is disconnected. The AI replies setting stays as it was.

How your AI agent answers on WhatsApp

  • Text messages and button replies are answered. Images, voice notes, and other media are not answered yet.
  • Answers are sent as plain text. Source links appear as “Title: URL” after the answer.
  • The AI replies in the language the customer writes in.
  • After 24 hours without messages, the next message starts a new conversation. This matches WhatsApp’s 24-hour customer service window.

Reply from the inbox

Your team can take over a WhatsApp conversation and reply from Activity → Conversations, the same way as live chat:
  1. Open the conversation and click Take over. The AI stops replying while you own the conversation.
  2. Type your reply. It is sent to the customer on WhatsApp.
When a customer asks for a person on WhatsApp, the conversation waits in the inbox for an agent. WhatsApp only delivers replies within 24 hours of the customer’s last message. After that, the conversation shows as Resolved, and the customer’s next message starts a new conversation in the inbox.

Current limitations

  • IrisAgent does not send WhatsApp template messages, so it never messages a customer first or outside the 24-hour window.
  • Each WhatsApp number can be connected to only one IrisAgent account.

Troubleshooting

Customers aren’t getting replies

  • Check that the card shows Connected, not Paused.
  • Check the number’s Quality rating and messaging limits in WhatsApp Manager. Meta may restrict a number with a low rating.
  • Make sure the number isn’t also connected to another WhatsApp tool, such as the WhatsApp Business app or another provider.
If you connected through your own Meta app, also check that:
  • the app shows Published (Live) in the Meta App Dashboard;
  • WhatsApp → Configuration shows the IrisAgent callback URL, with messages subscribed;
  • the access token hasn’t been deleted or regenerated. If it has, send the new token to your IrisAgent contact;
  • the app secret hasn’t been reset. If it has, send the new secret to your IrisAgent contact.