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
- In IrisAgent, go to Deploy → Text channels.
- On the WhatsApp card, click Connect with Facebook.
- Sign in to Facebook in the popup, if asked.
- Choose your Meta Business portfolio, or create one.
- Choose your WhatsApp Business Account, or create one.
- Add your phone number and display name, then verify the number with the code Meta sends by SMS or voice call.
- Review the permissions IrisAgent asks for and click Confirm.
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.
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_messagingandwhatsapp_business_managementpermissions
- 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.
Connect your number
- In IrisAgent, go to Deploy → Text channels.
- Find the WhatsApp card, below the US SMS number card.
- Enter the Phone number ID.
- Enter the WhatsApp Business Account ID.
- Paste the System user access token.
- Click Connect WhatsApp.
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.
Step 1: Create a Meta app
- Go to Meta for Developers and click Create app.
- Enter an app name (for example, “Acme WhatsApp”) and your contact email.
- For the use case, choose Connect with customers through WhatsApp.
- Select your Meta Business portfolio, then click Create app.
Step 2: Add your phone number
- In your app, open WhatsApp → API Setup.
- Click Add phone number and enter your business display name, time zone and category.
- Enter the phone number and verify it with the code Meta sends by SMS or voice call.
- Wait for Meta to approve the display name. This usually takes a few hours, and sometimes up to two days.
- 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
- In Business Settings, open Users → System users and click Add.
- Name the system user (for example, “IrisAgent”) and give it the Admin role.
- Click Assign assets and give the system user Full control of:
- your new app, and
- your WhatsApp Business Account.
- Click Generate token, choose your app, and set the expiry to Never.
- Select the
whatsapp_business_messagingandwhatsapp_business_managementpermissions, then generate the token. - Copy the token. Meta shows it only once.
Step 4: Collect your app details
- In your app, open App settings → Basic.
- Copy the App ID.
- Next to App secret, click Show and copy it.
- Enter your Privacy policy URL and choose a Category, then click Save changes.
- 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.- In your app, open Publish.
- Click Publish and confirm.
Step 6: Send your details to IrisAgent
Send these five values to your IrisAgent contact: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 withhttps://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:
- Open WhatsApp → Configuration in your app.
- Under Webhook, click Edit.
- Paste the Callback URL and the Verify token, then click Verify and save.
- Under Webhook fields, click Manage and subscribe to messages.
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
- From a personal WhatsApp account, message your business number with a common question, such as “What is your refund policy?”
- Confirm your AI agent replies with an answer from your knowledge base.
- 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.
Change the connected number
- On the WhatsApp card, click Change number.
- Enter the new Phone number ID and WhatsApp Business Account ID.
- 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.
- Click Save number.
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:- Open the conversation and click Take over. The AI stops replying while you own the conversation.
- Type your reply. It is sent to the customer on WhatsApp.
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.
- 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.