> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qxlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# External WhatsApp agents

> Build an agent that answers your customers on a WhatsApp number.

An external WhatsApp agent answers your customers on WhatsApp. You build the agent, connect a WhatsApp number to it, and from then on it replies to everyone who messages that number. It only ever replies and never messages anyone first.

![A WhatsApp chat where a customer books a table and the agent confirms it](https://mintcdn.com/qx-labs/jCW2M0u2BR5MEdUl/images/agents/external-whatsapp-agents/customer-chat.png?fit=max\&auto=format\&n=jCW2M0u2BR5MEdUl\&q=85\&s=e47234cdacbac96835ae35cecf551468)

A customer booking a table with the agent

## Build the agent and connect a number

Go to [**Agents**](https://app.qxlabs.com/agents) → **New Agent**, choose **External**, and describe the job in the **Chat** sidebar. The builder writes the instructions and sets up the actions for you, see [Build with AI](https://docs.qxlabs.com/agents/create-an-agent/build-with-ai.md). Click **Test in chat** to try the agent before any customer does.

Once the agent is saved, go to its **WhatsApp number** section, type the number, and click **Connect**.

![The agent editor's WhatsApp number section with a number typed in and a Connect button](https://mintcdn.com/qx-labs/jCW2M0u2BR5MEdUl/images/agents/external-whatsapp-agents/connect-number-light.png?fit=max\&auto=format\&n=jCW2M0u2BR5MEdUl\&q=85\&s=af406bfbfbb2e13d4336d80bc16512bb)

A code appears. On the phone, open WhatsApp and go to **Settings** → **Linked devices** → **Link a device** → **Link with phone number instead**, then enter the code. The number links up like WhatsApp Web, and the agent starts replying.

![The WhatsApp number section showing a pairing code, the steps to enter it on the phone, and a countdown](https://mintcdn.com/qx-labs/jCW2M0u2BR5MEdUl/images/agents/external-whatsapp-agents/pairing-code-light.png?fit=max\&auto=format\&n=jCW2M0u2BR5MEdUl\&q=85\&s=4c3e6435fff6a1ca78c603bf9d3fed58)

One agent answers on one number, and one number belongs to one agent. If the number is already used by another agent, you'll be asked to move it. **Disconnect** stops the agent answering and frees the number for another agent.

## Manage your numbers

[**Settings → WhatsApp Numbers**](https://app.qxlabs.com/settings/whatsapp) lists every number you've connected and the agent answering on each. Click the agent's name to open its editor and change it.

![Settings, WhatsApp Numbers, listing a connected number with its agent and the Unlink and Delete buttons](https://mintcdn.com/qx-labs/jCW2M0u2BR5MEdUl/images/agents/external-whatsapp-agents/whatsapp-numbers-light.png?fit=max\&auto=format\&n=jCW2M0u2BR5MEdUl\&q=85\&s=f3afe7cef23542bcc6c70df561f1d246)

* **Add number** connects a new number. Type it, get a code, and enter the code on your phone, the same as in the agent editor. Pick its agent from that agent's editor.
* **Unlink** disconnects a number but keeps its agent and chats. **Pair** connects it again.
* **Delete** removes the number and every chat it had.

## What the agent can use

Strangers talk to this agent, so it gets less than your other agents. It can use:

* Its instructions and the [knowledge vaults](https://docs.qxlabs.com/knowledge/overview.md) you attach.
* **Web Search** and **Web Fetch**.
* **Actions**, single tasks in your apps that the builder sets up, like adding a row to one sheet or an event to one calendar.

![The agent editor's Capabilities, Knowledge, and Actions sections for an external agent](https://mintcdn.com/qx-labs/jCW2M0u2BR5MEdUl/images/agents/external-whatsapp-agents/agent-tools-light.png?fit=max\&auto=format\&n=jCW2M0u2BR5MEdUl\&q=85\&s=2fcc66e04d87779072e3696d21462156)

It has no workspace and no direct access to your connected apps, so customers can't reach anything you didn't approve.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.