Easily receive WhatsApp messages when your keyword is triggered.
Once you've registered a webhook URL with your keyword in WMS Cloud, our system will:
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:
from
– WhatsApp sender's numberfull_message
– Full incoming messagekeyword
– The matched keywordmessage_body
– Portion after the keywordtimestamp
– ISO datetime when message was receivedThis 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."
}
Set your webhook URL under your keyword settings in your WMS Dashboard.
Create Account