deniz.in

Markets

Weather

Loading weather

· via dev.to (home feed)

AskAround: MCP server lets AI agents negotiate over your WhatsApp

A dev.to post demonstrates AskAround, a hosted MCP server that links ChatGPT, Claude and Meta assistants to a WhatsApp number as a linked device so they can autonomously message and negotiate with real businesses.

AskAround: MCP server lets AI agents negotiate over your WhatsApp

A developer has demonstrated AI agents autonomously messaging and negotiating with real businesses over WhatsApp. In a post on dev.to, Erik Kokalj introduces AskAround, a hosted MCP server that plugs assistants such as ChatGPT dots, Claude Duet and Meta Muse into a WhatsApp account, letting them read and send messages from the user's own number. The author claims setup takes about two minutes, and the same connector works with any client that supports custom MCP servers.

The showcase scenario is a scooter hunt. Asked to find a Saturday rental and drive a hard bargain, the agent contacted 14 rental shops in Tulum, countered the six cheapest offers, and persuaded three of them to lower their prices, with the winning quote falling from 550 to 380 pesos per day. When the user later opened WhatsApp, the full Spanish-language conversations and a confirmed booking were already sitting in their own chat list.

Why the official API does not fit

The post explains why WhatsApp's Business Platform API cannot serve this use case: it runs on a separate business number, it cannot see existing chats, and it requires pre-approved templates before messaging someone new. AskAround instead speaks the same protocol as WhatsApp Web. The phone remains the primary device, and the server joins the account as a linked device, much like a browser session. It shows up under WhatsApp's Linked devices menu and can be revoked from there at any time.

Because an assistant lives in a chat window rather than a browser, pairing uses WhatsApp's link-with-phone-number option instead of a QR code. The assistant displays a short code that the user must type into the phone within about three minutes. The author frames that physical step as the consent mechanism, since nobody can link an account without holding the phone.

One worker, one database per account

Everything runs in a single Cloudflare Worker. It exposes MCP over streamable HTTP with around 30 tools for listing chats, reading messages, sending replies, starting conversations and fetching media. Authentication is OAuth 2.1 with PKCE, so each assistant connector receives its own token, and those tokens are kept out of tool output. Each WhatsApp account gets its own SQLite Durable Object holding its Signal keys, contacts, chats and messages; the account is selected from the validated token, so no tool argument can steer a request at someone else's data. The WhatsApp side is handled by Baileys, patched to run inside Cloudflare's workerd runtime.

There is no always-on socket. The assistant opens a brief connection window to sync what arrived, send replies, and then disconnect, with the window closing itself after about two minutes. Scheduling is left entirely to the assistant: AskAround ships no scheduler and no model of its own, so ChatGPT or Claude decides when to check for replies and when to follow up. Voice notes, photos and PDFs come back in their original formats, meaning an agent can listen to a voice message or read a photographed price quote.

Access control and throttles

A freshly linked assistant cannot read any existing chat by default. The user names the specific chats it may use, while messaging new contacts is enabled out of the box and can be switched off. On the free plan, connection windows are limited to one every 30 minutes and new conversations are spaced a minute apart. All accounts are capped at 30 new conversations per day to stay clear of WhatsApp's spam detection.

The post is candid about the fragility here: this is an unofficial linked device, WhatsApp can restrict accounts it judges to be automated, and users are advised not to aim it at hundreds of strangers.

Privacy trade-offs

Because AskAround is a hosted service, the linked-device keys and every message an agent reads live in the operator's Cloudflare infrastructure. The author concedes the operator could technically read them, which means the arrangement does not preserve the end-to-end encryption a user normally expects. The suggested mitigation is to link a second number, such as a cheap prepaid SIM or a separate WhatsApp Business line on the same phone, so personal chats never leave the device and any enforcement action lands on the spare number instead.

Why it matters

This is one of the clearest demonstrations yet of agents acting in the world rather than answering questions: an assistant that researches, negotiates, chases and books across live messaging threads, while the human simply finds the results in their own inbox. It also shows MCP settling into its role as a shared connector layer that works identically across rival assistants from OpenAI, Anthropic and Meta.

The compromises are just as instructive as the demo. Because the official business API is too rigid for personal-agent tasks, builders route around it with unofficial linked-device clients and accept the ban risk that comes with them. And delegating messaging power to a hosted middleman that holds your Signal keys quietly undermines the encryption promise that makes WhatsApp private in the first place. As agents gain the ability to act, the hard questions shift from capability to permission: who is allowed to link an account, what an autonomous agent may say on your behalf, and where a negotiation stops feeling like yours.

  • #mcp
  • #whatsapp
  • #ai-agents
  • #cloudflare-workers
  • #chatgpt

Related posts