Build a WhatsApp agent around your existing number.
A practical architecture for receiving group and direct-chat events, running your own agent and replying through a scoped API.
Prelaunch information. Confirm availability and limits for your installation before relying on a workflow.
Keep transport and business reasoning separate.
Your agent should decide what a message means and what business action is authorised. SuperSkope should handle the WhatsApp connection, permitted transport requests and recorded outcomes. That boundary lets you change your model or orchestration without rebuilding the WhatsApp integration.
The current transport links a regular WhatsApp device through WAHA. It is not an official WhatsApp Business Platform integration. Customer-facing API and older agent-bridge contracts have different semantics; verify capabilities for your installation before choosing a contract.
Start with a read-only loop.
Create a key for one number and a small set of conversations. Grant status, chat/message reads and events only. Receive a signed event, store its ID once, fetch the allowed content and produce a draft inside your own system. Do not enable sending while testing basic routing.
// Read-only first call with the SDK supplied for your installation.
const status = await client.status();
const chats = await client.chats({ limit: 20 });
// Review the returned account and chat IDs before granting write access.Copy-only example. This page never runs a request or asks for a credential.
Use the installed agent contract.
The locally prepared pull-agent API supports scoped registration, conversation enrolment and activation/context retrieval. Bot output still uses normal message submission with the required context and permissions. It does not grant an arbitrary callback URL or make every message a bot instruction. Verify this capability on your installation before relying on it.
Add a deliberate reply path.
Once routing and business permissions are tested, grant only the required send permission. Create one stable request key for one intended reply, persist it beside the business job and inspect the result. Keep the original payload and key if the result is uncertain. Never generate a new key merely because an HTTP request timed out.
Group bots need context beyond the text.
Preserve verified sender identity, current membership, reply provenance and human takeover. A group’s name or an unverified phone string is not enough to establish authority. A bot must not regain control just because its registration refreshes. Shared-API migration is intended to preserve these behaviours from the existing bridge, not replace them with a generic webhook.
Continue reading.
A WhatsApp API for the system you want to build.
Connect your own backend or agent to WhatsApp messages, groups and files with explicit permissions and recorded outcomes.
Keep your business system in charge.
Use a scoped API, server SDK, signed webhooks and a local MCP adapter, with honest connector limits.
Start with one workflow.
Describe your team, the conversations involved and what you want to improve.
Discuss a managed pilot