WhatsApp API Integration: Website, WooCommerce & CRM
Wire WhatsApp into the systems you already run: your website’s forms, your WooCommerce orders, your CRM pipeline. The integration patterns, from one webhook to full two-way.
The integration model
Every integration below uses the same two building blocks: a REST endpoint to send a message (POST /api/external/send-message with your API key), and an optional per-device webhook that pushes incoming replies to your system. Anything that can fire an HTTP request — code, plugins, or automation tools — can integrate.
Website forms → WhatsApp
The highest-value first integration: when someone submits your contact or enquiry form, your form handler makes one API call to (a) alert your sales team’s WhatsApp instantly and (b) send the lead a confirmation. Leads answered in the first minutes convert at a completely different rate than ones answered hours later.
// in your form submit handler
await fetch('https://app365.my/api/external/send-message', {
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({
device_token: 'your-device-token',
recipient: lead.phone, // e.g. '60123456789'
message: `Hi ${lead.name}, thanks for your enquiry! We'll be in touch shortly.`,
}),
})WooCommerce → WhatsApp order updates
Hook WooCommerce’s order status changes and send a WhatsApp update at each step. A minimal PHP hook in your theme or a small plugin:
add_action('woocommerce_order_status_processing', function ($order_id) {
$order = wc_get_order($order_id);
$phone = preg_replace('/\D/', '', $order->get_billing_phone()); // normalise
wp_remote_post('https://app365.my/api/external/send-message', [
'headers' => [
'Authorization' => 'Bearer YOUR_API_KEY',
'Content-Type' => 'application/json',
],
'body' => json_encode([
'device_token' => 'your-device-token',
'recipient' => $phone,
'message' => 'Order #' . $order->get_order_number() . ' confirmed! We are preparing it now.',
]),
]);
});CRM and no-code automation
- CRM: trigger follow-ups when a deal stage changes — one HTTP action in your CRM’s workflow builder
- Automation platforms (Make, n8n, Zapier-style tools): use the generic HTTP/webhook module to call the send endpoint — no code at all
- Google Sheets: an Apps Script loop can send personalised messages from a sheet of contacts
- Incoming webhook → CRM: auto-create a lead whenever a new WhatsApp enquiry arrives
Integration hygiene
- Normalise phone numbers to international format (60…) before sending
- Send transactional updates from a different number than marketing blasts
- Log every API response; queue and retry failures in your own system
- Message only customers who gave their number expecting contact
FAQ
Do I need a plugin for WooCommerce?
No plugin required — a small action hook (like the snippet above) is enough. Any developer can wire it in minutes, or use an HTTP-request automation tool.
Can I integrate without writing code?
Yes. Any automation platform with an HTTP module (Make, n8n and similar) can call the send endpoint and receive webhooks, so forms, sheets and CRMs connect without code.
Which systems can integrate?
Anything that can make an HTTP request or receive one: websites, WooCommerce/Shopify backends, CRMs, ERPs, booking systems, internal dashboards.
Ready to put this into action?
App365 handles the blasting, warmup, auto-replies and opt-outs for you — built for Malaysian businesses.