What you need
- A HookMyApp account
- A connected WhatsApp channel (the sandbox for testing, or your own WhatsApp number)
- A channel token and phone number ID for that channel
- An agent runtime that can read incoming messages and send outgoing replies
Connect number
For testing, connect a sandbox session to your phone:Open the QR on your phone and send the prefilled WhatsApp message to HookMyApp test number.
See Sandbox for the full flow. To use your own number, connect your WhatsApp Business number through Meta embedded signup:
Configure agent
Pull credentials into a.env file your agent runtime can load.
For a sandbox session:
META_GRAPH_API_URL: the base URL your agent sends through for this channel (the sandbox writesWHATSAPP_API_URLinstead)WHATSAPP_ACCESS_TOKEN: channel token for sending messagesWHATSAPP_PHONE_NUMBER_ID: the WhatsApp number your agent sends fromWEBHOOK_HMAC_SECRET: webhook signing secret for your receiver
Agent capabilities
Your agent can receive messages, send replies, and use the CLI to inspect the connected number.Send messages
Use the send URL and token from the env values. See Send text for the basic message shape.Listen to conversations
For local development, listen for messages on your laptop:Use with agent framework
If your agent runs on OpenClaw or Hermes, use the native HookMyApp adapter — install it, run its setup command, and your agent sends and receives WhatsApp messages with no transport code: For other runtimes, give your agent the HookMyApp CLI and a prompt:Agent prompt
For other runtimes (Python, Go, Rust), use the same env values and adapt the transport on your side.
Next steps
- Build with AI: Use Cursor, Codex, or Claude Code to wire all this for you.
- CLI: Command reference for everything above.
- Send text: Send a WhatsApp text message.
- Receive webhooks: Inbound webhook handling and signature verification.