Wire a real WhatsApp number to Anthropic's Claude models. WABridges handles the WhatsApp connection; Claude handles the conversation. Every inbound message becomes a webhook, every reply is one REST call.
Claude is great at conversation — but it doesn't come with a phone number. WABridges is the missing half: a real WhatsApp number under full API control, with no WhatsApp Business API approval queue and no per-message billing.
Point your WABridges webhook at a small handler, forward each message to the Anthropic Messages API, and send Claude's answer back. You keep the conversation history, the system prompt, and the model choice — everything runs on your own backend.
I want to connect a WhatsApp number to Claude using WABridges for the WhatsApp layer and the Anthropic Messages API for the replies. My stack: [Node.js — update this] My setup: - WA_API_KEY: my WABridges API key - ANTHROPIC_API_KEY: my Anthropic API key - Bridge customer_ref: "claude-bot" I need: 1. A webhook endpoint that receives inbound messages from WABridges 2. Conversation history tracked per chat_id (in-memory is fine to start) 3. Each turn sent to the Anthropic Messages API with a system prompt I can customize, using model "claude-sonnet-5" (or "claude-haiku-4-5" for lower latency) 4. Claude's reply sent back via the WABridges send API 5. The webhook must return 200 immediately and call Claude asynchronously so WhatsApp doesn't re-deliver the message Please read both sets of docs before writing any code: - WABridges API: https://wabridges.com/llms-full.txt - Anthropic API: https://docs.anthropic.com/en/api/messages Keep it under ~70 lines. Add a comment where I customize the system prompt, and show me how to swap the model.