Skip to content
QwryAI
Documentation
Pages

Integrations

Add an AI agent to WhatsApp

Connect a WhatsApp number so your QwryAI agent answers customers on WhatsApp

The WhatsApp channel connects your QwryAI agent to a WhatsApp Business phone number, so the agent answers the messages customers send to that number. It suits any business that already talks to customers on WhatsApp, such as an online store answering order questions or a clinic confirming appointments. This guide covers connecting a number through Meta, then the Connection, Leads, Response delay, Actions and Automation tabs, costs, and what to check when something goes wrong.

Use cases

Customer support. Your agent answers from its data sources and reads the photos customers send, such as a picture of a damaged parcel. When someone needs a person, the Escalations Action opens a ticket and the AI stays quiet in that chat while your team replies from the Inbox.

Order questions. With Shopify connected, customers can ask "Where is my order?" on WhatsApp and get the status from your store. See Shopify Actions.

Proactive messages. WhatsApp campaigns send an approved template to the contacts you choose, and WhatsApp Automations send one for every new Shopify order.

Selling in the chat. WhatsApp Catalog shows your Shopify products as WhatsApp product cards that customers can add to a cart.

Before you start

A number you connect the regular way is used by QwryAI through Meta's WhatsApp Business Platform, so it can't also be signed in to the WhatsApp or WhatsApp Business app.

The number is already registered in the WhatsApp app

Delete the account in the app first:

  1. Open WhatsApp or WhatsApp Business on the phone that uses the number.
  2. Go to Settings › Account.
  3. Select Delete my account. After a few minutes the number can be registered again.
You used the number with Meta's developer tools before

Turn off two-step verification for it in Meta's WhatsApp Manager: open the phone number, then Settings › Two-step verification, and turn it off.

You also need a Facebook account that can manage your business on Meta, and a display name for the number that Meta can approve.

How to connect WhatsApp

  1. Open the WhatsApp channel

    Open your agent, select Channels in the sidebar, and find the WhatsApp card: Connect your agent to a WhatsApp number and let it respond to messages from your customers. Select Setup.

    Channels › WhatsApp › Setup.

To find it quickly, type in Search channels.

Search channels to find WhatsApp.
  1. Sign in with Facebook

    Setup opens Meta's own sign-up window. Sign in with the Facebook account that manages your business and continue.

  2. Choose your business and WhatsApp account

    In Meta's window, pick your business portfolio (or create one), then choose or create the WhatsApp Business account the number belongs to, and fill in its profile.

  3. Add and verify the number

    Enter the phone number and its display name, then verify it with the code Meta sends by text message or call.

  4. Finish

    Select Finish in Meta's window. QwryAI saves the number, confirms it, and from then on the WhatsApp card shows Manage.

  5. Check the Connection tab

    Select Manage on the WhatsApp card. The Connection tab lists your Connected phone numbers. Each card shows the number, Active or Inactive, the verified business name, an on and off switch, and a menu.

    Connection: every number on this agent.

To add another number, select Connect a new number at the bottom of the list. The switch on a card pauses the agent on that number without disconnecting it: chats still arrive in the Inbox, but the agent doesn't reply.

  1. Edit the business profile (optional)

    Open a number's menu. Edit Profile opens the number's profile in Meta's WhatsApp Manager, where you change the picture, description and other details customers see. Reconnect runs Meta's sign-up again for the number, and Delete Number removes it from QwryAI.

    Edit Profile, Reconnect or Delete Number.
Test from your phone.

Automatic lead collection

QwryAI can save each customer who messages your WhatsApp numbers as a contact, with their phone number and WhatsApp name.

To turn it on:

  1. Open Channels › WhatsApp › Manage › Leads.
  2. Turn on Enable automatic collection of leads.
  3. Tick the numbers it should apply to.
Leads: collect name and number.

Collected leads appear in Contacts.

Response delay

People often send several short WhatsApp messages in a row. If the agent answered at once, it would reply to each one before the customer had finished. The response delay makes the agent wait after the customer's latest message; anything sent during the wait is answered in one reply.

To set it:

  1. Open Channels › WhatsApp › Manage › Response delay.
  2. For each number, enter a Minimum delay and a Maximum delay in seconds.
  3. Select Save under that number.
A minimum and a maximum per number.

For each reply the agent waits a random time between the two values, so replies don't arrive at a mechanical interval, and each new message starts the wait again. Enter the same value twice for a fixed wait.

For example, with a minimum of 5 and a maximum of 10 seconds, a customer who writes "Hi", then "I ordered a jacket last week", then "Where is it?" a few seconds apart gets one answer to all three.

Channel settings

Overview shows the model and data sources your agent uses everywhere, the Actions turned on for WhatsApp, and the instructions. Turn off Sync with global instructions to write instructions for WhatsApp only.

Overview: what WhatsApp uses.

Actions lists your agent's Actions with a switch for each, so you decide which ones run on WhatsApp.

Pick the Actions that run on WhatsApp.

Automation sends WhatsApp templates for new Shopify orders. See WhatsApp Automations.

Messaging limits and billing

WhatsApp has two separate costs:

QwryAI message credits. Each reply your agent sends uses message credits according to its AI model, as on every other channel. See Usage.

Meta's charges. Meta bills your WhatsApp Business account for the messages sent through the platform, including every template message, at rates that depend on the country and the template category. Add a payment method in Meta Business Suite before you send templates or campaigns. See Meta's WhatsApp pricing for current rates.

The 24-hour window. Your agent and your team can send free-form replies for 24 hours after the customer's last message. After that, the only way to reach the customer is an approved template. When the customer writes again, the window opens again.

Messaging tiers. Meta limits how many people a number can start conversations with each day, depending on its quality and volume. Your current use shows on the WhatsApp campaigns page. See WhatsApp campaigns.

Limitations

  • The number is for the platform only. A number connected the regular way can't also be used in the WhatsApp or WhatsApp Business app. To keep the app, use coexistence.
  • Free-form replies end after 24 hours. After that, send an approved template.
  • Meta's account problems stop replies. If Meta locks the WhatsApp Business account or blocks it over billing, the number's card says so, with a link to WhatsApp Manager or Meta Business Suite, and messages resume once Meta lifts the block.
A card shows when a number stops working.

Best practices

Troubleshooting

The number can't be connected

If the number is registered in the WhatsApp or WhatsApp Business app, delete the account in the app first, or connect it with coexistence. If you used it with Meta's developer tools, turn off two-step verification. See Before you start.

The number card says Disconnected from WhatsApp

Meta no longer accepts QwryAI's access to the number, for example after the number was removed in WhatsApp Manager. Open the number's menu and select Reconnect to connect it again.

The agent stopped replying in one conversation

Check whether the conversation has an open ticket or was taken over: the AI stays quiet until the ticket is closed or the conversation is handed back. A conversation can also be paused from the Inbox with Pause AI, or by spam detection. If the agent is silent on every chat, check that the number's switch is on.

You can't send a free-form reply

The 24-hour window has closed. The Inbox shows The 24-hour reply window has closed with Choose template: send an approved template instead.

Template or campaign messages fail

Check that the contact has a valid WhatsApp number, that the template is still approved, and that a payment method is set in Meta Business Suite. See WhatsApp campaigns.

Frequently asked questions

Can I keep using my number in the WhatsApp Business app?

Yes, with WhatsApp Business app coexistence. Your agent and the app share the number, and replying from the app pauses the AI in that chat.

Can the agent message customers first?

Only with an approved template: one customer at a time from the Inbox, many at once with WhatsApp campaigns, or automatically for Shopify orders with WhatsApp Automations.

How much does WhatsApp cost?

Your agent's replies use QwryAI message credits based on its model. Meta separately bills your WhatsApp Business account for messages, including each template message. See Messaging limits and billing.

Can I connect more than one number?

Yes. Select Connect a new number on the Connection tab. Lead collection and response delay are set per number.

Next steps

Explore the documentation