WABridges
← All guides
Guide

Connect WhatsApp
to Claude.

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.

How it works

1
Provision a bridge & pair a number
One API call creates a bridge. Scan the QR code with any WhatsApp number — personal, VoIP, or a spare SIM. It's now under API control in under 60 seconds.
2
Set your webhook URL
Configure the bridge to POST inbound messages to your endpoint. Every message someone sends the number arrives as JSON.
3
Forward to Claude
In your handler, call the Anthropic Messages API (POST https://api.anthropic.com/v1/messages) with the message text, a system prompt, and per-chat history. Use a current model such as claude-sonnet-5, or claude-haiku-4-5 for the fastest replies.
4
Reply via WABridges
POST Claude's answer back to the WABridges send endpoint. Respond to the webhook with 200 immediately and do the Claude call asynchronously so WhatsApp doesn't retry.

What you can build

🤝
AI concierge
  • Answer FAQs 24/7
  • Book and reschedule appointments
  • Look up order status
  • Escalate to a human on request
🧠
Personal assistant
  • Summarize long threads
  • Draft replies in your voice
  • Translate on the fly
  • Set reminders via natural language
🛠️
Tool-using agent
  • Claude tool use / function calling
  • Query your database over chat
  • Trigger workflows from a message
  • Return charts and documents
🗂️
Context-aware support
  • Per-chat conversation memory
  • Inject customer records into the prompt
  • Route by intent
  • Keep full transcripts in your DB

Paste into Claude Code, claude.ai, or any AI assistant

Copy this prompt → paste into any AI assistant → get working code in your language.
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.

Why WABridges

Related guides