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

# WhatsApp

> Let Sutando send and read WhatsApp messages and search past chats, paired as a linked device like WhatsApp Web.

Sutando connects to WhatsApp the way WhatsApp Web does: by pairing as a linked device on your phone. There is no token.

> [!WARNING]
>
> Meta's terms permit WhatsApp Web for personal use; driving your account from a non-Meta client is at your discretion. The connection lives on your Mac and messages travel through Meta's servers as they do for WhatsApp Web, with no third-party relay.

## Before you start

* WhatsApp installed and active on your phone.
* AG2 Space installed and signed in on your Mac ([desktop.ag2.space](https://desktop.ag2.space)).

## Pair from Settings

Open **Settings → Channels** and scroll to **Agent-Paired Channels**. Enter your phone number and click **Connect**: the agent sends a pairing code to type into WhatsApp on your phone. Leave the number blank and it sends a QR image to scan instead.

![Settings, Channels tab, showing WhatsApp under Agent-Paired Channels](https://mintcdn.com/open-space/Sa0HNrkuzgYynNN4/images/36-whatsapp-channels.png?fit=max\&auto=format\&n=Sa0HNrkuzgYynNN4\&q=85\&s=f34168b9553081a1ec1421e16fc8eadd)

Settings → Channels → Agent-Paired Channels.

## Or pair by hand through your agent

Paste this into your DM with the agent. It installs the `wacli` tool if needed, shows you the QR code and verifies the pairing.

```text theme={null}
Set me up with WhatsApp so you can read and send messages for me.

Work through this in order and tell me what you find at each step:

1. Check whether WhatsApp is already working: run `wacli chats list --limit 1`.
   If it succeeds, I'm already paired - skip to step 5.

2. If `wacli` isn't installed, check for Homebrew with `which brew`.
   - If Homebrew is missing, give me the one-line install command from
     brew.sh and stop there until I've run it.
   - If Homebrew is present, run `brew install steipete/tap/wacli`, then
     confirm with `which wacli`.

3. Run `wacli auth`. It prints a QR code as ASCII art. Show it to me in a
   fenced code block so it renders in monospace. If it doesn't come through
   readably, take a screenshot of the terminal, or tell me to run
   `wacli auth` myself in Terminal.

4. Wait for me. I'll scan it on my phone: WhatsApp -> Linked Devices ->
   Link a Device. Tell me when the pairing is confirmed.

5. Verify by running `wacli chats list --limit 3` and show me the result.

Don't send any WhatsApp message during setup. Once I'm paired, always
confirm the recipient and the exact text with me before sending anything.
```

Scan the code from your phone: WhatsApp → **Linked Devices** → **Link a Device**.

## Try it

* "What's the last message Jane sent me on WhatsApp?"
* "Send Bob on WhatsApp: running 10 min late, sorry."
* "Search WhatsApp for the address Mom sent me."

The agent confirms message content before sending. Messages stay end-to-end encrypted between your phone and the recipient; the agent is another linked device on your account.

## Common snags

* **The phone must be online?** Mostly not: linked devices keep working for a while with the phone offline, but the link expires if you do not open WhatsApp on the phone for about 14 days.
* **Old messages are missing.** Linked devices sync only the last few months of history.
* **It says not connected.** The link probably expired. Ask the agent to run `wacli auth` again and scan the new code.


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