Receive every inbound message as a webhook. Reply via REST API. Plug in GPT, Claude, or any AI model, WABridges handles the WhatsApp connection, you handle the logic.
WhatsApp is where your users already are. Building a bot for it shouldn't require a business account approval, a 90-day review process, or per-message billing that scales against you.
WABridges gives you a real WhatsApp number under full API control. Inbound messages arrive as webhooks. Replies go out as REST calls. Everything between is yours to build.
We keep the number online and hand you every event. You write the part in the middle.
Create a bridge with a POST request. Pair it with any WhatsApp number, personal or dedicated SIM.
Set a webhook URL on your bridge. Every message sent to your WhatsApp number hits that endpoint as a POST with a JSON payload.
Parse the message, run it through your AI model or decision tree, then POST the reply to the send endpoint. The whole loop takes milliseconds.
Reply with text, images, audio, documents, polls, or location pins. The same API handles all media types.
Every loop below is the one above with your own logic in the middle.
Copy this prompt, paste it into any AI assistant, get working code in your language.
I want to build a WhatsApp chatbot using WABridges for the WhatsApp connection and an AI model to generate replies. My stack: [Node.js: update this] My setup: - WA_API_KEY: my WABridges API key - OPENAI_API_KEY: my OpenAI key (or tell me how to swap for another model) - Bridge customer_ref: "my-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 message sent to gpt-4o-mini with a system prompt I can customize 4. The AI reply sent back via the WABridges send API 5. The webhook must respond quickly, process the AI call asynchronously Please read the WABridges API docs before writing: https://wabridges.com/llms-full.txt Keep it under 60 lines if possible. Add a comment where I should customize the system prompt.
What you get on the WhatsApp side, whatever you build on yours.
Other guides that build on the loop you just read.
Choosing a provider? See how WABridges compares to Twilio, 360dialog, and other WhatsApp API providers.