WMS Cloud Webhook Integration

Easily receive WhatsApp messages when your keyword is triggered.

🔧 How It Works

Once you've registered a webhook URL with your keyword in WMS Cloud, our system will:

📬 Webhook Payload (POST)

When your keyword is matched, WMS Cloud will send the following JSON to your webhook:

{
  "from": "60123456789",
  "full_message": "appointment John 12PM",
  "keyword": "appointment",
  "message_body": "John 12PM",
  "timestamp": "2025-06-22T11:40:00+08:00"
}

Field Reference:

💡 Example Webhook Handler (PHP)

This is a basic receiver script you can use to test or log messages:

<?php
$input = file_get_contents('php://input');
$data = json_decode($input, true);

// Save to file for testing
file_put_contents('wms_incoming.txt', date('c') . ' | ' . print_r($data, true), FILE_APPEND);

// Optional: Reply dynamically
$reply = 'Thanks! You sent: ' . $data['message_body'];

echo json_encode(['reply' => $reply]);
?>

Response JSON Example:

{
  "reply": "Thanks! Your appointment has been scheduled."
}

✅ Advantages of Using Webhooks

🔒 Security Tips

Ready to Activate?

Set your webhook URL under your keyword settings in your WMS Dashboard.

Create Account