Skip to content

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

  1. Configure a webhook in your external platform (e.g., WooCommerce)
  2. Set the Delivery URL provided by WhatsBot
  3. Choose the event/action (e.g., order created, status updated)
  4. When the event occurs, data is sent to WhatsBot
  5. WhatsBot receives the webhook and processes the payload
  6. 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:

  1. Go to WooCommerce → Settings → Advanced → Webhooks
  2. Click Add Webhook
  3. Enter:
    • Name (e.g., Order Webhook)
    • Status → Active
    • Topic → Select event (e.g., Order Created)
    • Delivery URL → Paste WhatsBot webhook URL
  4. 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.

© 2024 - Corbital Technologies. All rights reserved.