Webhook Receive
The Webhook Receive feature allows WhatsBot to receive real-time data from external platforms such as WooCommerce. Based on the received webhook data, you can trigger Template Bots to automatically send WhatsApp messages.
Overview
- Receive webhook data from external platforms (e.g., WooCommerce)
- Trigger automated WhatsApp template messages
- Use dynamic data from webhook payload in messages
- Enable real-time communication based on events
How It Works
- Configure a webhook in your external platform (e.g., WooCommerce)
- Set the Delivery URL provided by WhatsBot
- Choose the event/action (e.g., order created, status updated)
- When the event occurs, data is sent to WhatsBot
- WhatsBot receives the webhook and processes the payload
- Template Bot is triggered and sends a message using the received data
WooCommerce Setup
In WooCommerce, you can configure webhooks for specific actions such as:
- Order Created
- Order Updated
- Order Status Changed
- Customer Created
Steps:
- Go to WooCommerce → Settings → Advanced → Webhooks
- Click Add Webhook
- Enter:
- Name (e.g., Order Webhook)
- Status → Active
- Topic → Select event (e.g., Order Created)
- Delivery URL → Paste WhatsBot webhook URL
- Save the webhook
Using Webhook Data in Templates
Webhook payload data can be used as dynamic variables in Template Bots.
Example:
Hi {{billing.first_name}},
Your order {{id}} has been received successfully.
Total Amount: {{total}}
Status: {{status}}These variables are automatically replaced with real-time data when the message is sent.
Webhook Payload Data
- All incoming webhook data is stored and displayed in a structured format
- You can view available fields and copy keys easily.
- These keys can be used directly in message templates
Use Cases
- Send order confirmation messages
- Notify customers about order status updates
- Send payment or delivery updates
- Trigger messages based on any external event
Note
Ensure the cron job is properly configured for this feature to work as expected.