Integrations
WordPress integration
Business Messaging for WbizTool is the official WordPress plugin. It sends WhatsApp messages from your connected number when something happens on your site: a WooCommerce order changes, a WP Amelia booking is rescheduled or cancelled, or a Contact Form 7 form is submitted.
| Requirement | Value |
|---|---|
| Plugin version | 1.0.3 |
| Requires WordPress | 5.0 or later (tested up to 6.8) |
| Requires PHP | 7.4 or later |
| WooCommerce | 4.0 or later (tested up to 9.0) |
| Works with | WooCommerce, WP Amelia, Contact Form 7 |
Before you start#
- A Wbiztool account with a connected WhatsApp number on WhatsApp settings.
- Your Client ID and API key from Settings → API keys.
- The WhatsApp Client ID of the number to send from, shown on WhatsApp settings.
Install the plugin#
Install from WordPress
In your WordPress admin, go to Plugins → Add New, search for Business Messaging for WbizTool, click Install Now and then Activate. You can also download it from the WordPress plugin directory and upload the zip under Plugins → Add New → Upload Plugin. If the upload fails (for example because of a file size limit), unzip it and copy the
business-messaging-for-wbiztoolfolder into/wp-content/plugins/over FTP, then activate it under Plugins.Open the plugin settings
A new WbizTool menu appears in the admin sidebar with four pages: Settings, Templates, Test Messages and Logs.
Set up the plugin#
Enter your API credentials
On WbizTool → Settings, under API Configuration, fill in Client ID, API Key and WhatsApp Client ID, then click Test Connection.
With correct credentials, Test Connection queues a real test message to the placeholder number
10000000000, so it appears in your Wbiztool message history. It can't be delivered and shows as failed there; you can ignore it. If you see Unable to connect to WbizTool API. Please check your internet connection., your Client ID, API key or WhatsApp Client ID is most likely wrong, or your plan has no messages left. It rarely means a problem with your internet connection.Set the general options
Under General Settings:
- Default Country Code: used when a WooCommerce order's billing country can't be matched to a calling code. The default is
1, so change it to your main country, for example91. - Test Mode: when on, messages are written to the log but not sent.
- Admin Notifications: this checkbox has no visible effect in version 1.0.3, because the settings page has no field for the admin phone number it uses. For admin alerts on form submissions, use the Contact Form 7 settings below.
- Default Country Code: used when a WooCommerce order's billing country can't be matched to a calling code. The default is
Turn on integrations and events
Under Integration Settings, enable each plugin you use and tick the events that should send a message. An integration only shows its options when that plugin is active on your site. Click Save Settings.
Edit the message templates
On WbizTool → Templates, pick the WooCommerce, Amelia or Contact Form 7 tab, choose an event, and edit its text. The page lists the variables you can use and shows a live preview. Reset restores the default text.
Send a test
On WbizTool → Test Messages, send a message to your own number to confirm everything works, then check WbizTool → Logs.
WooCommerce#
Messages go to the order's billing phone. The country code comes from the billing country; if that country isn't recognised, the Default Country Code is used.
| Event | When it sends |
|---|---|
| Order Created | A new order is created. |
| Order Processing | An order moves from pending to processing, or a payment completes and the order is processing. |
| Order Completed | An order moves to completed from pending or processing, or a payment completes and the order is completed. |
| Order Shipped | An order moves to a status called shipped. |
| Order Cancelled | An order is cancelled. |
| Order Refunded | An order is refunded. |
| Payment Failed | An order's status changes to failed. |
Template variables:
| Group | Variables |
|---|---|
| Customer | {customer_first_name}, {customer_last_name}, {customer_full_name}, {customer_email}, {customer_phone} |
| Order | {order_id}, {order_number}, {order_total}, {order_subtotal}, {order_tax}, {order_shipping}, {order_date}, {order_status}, {order_currency}, {order_items}, {order_items_count} |
| Links | {order_url}, {payment_retry_url}, {my_account_url} |
| Store | {store_name}, {store_url}, {store_email}, {store_phone} |
| Shipping | {shipping_method}, {tracking_number}, {tracking_url}, {delivery_date} |
| Payment | {payment_method}, {transaction_id}, and for refunds {refund_amount}, {refund_reason} |
Example template:
Hi {customer_first_name},
Thank you for your order #{order_number}.
Total: {order_total}
Track your order: {order_url}
{store_name}
WP Amelia#
Messages go to the customer phone on the booking. The settings page lists six events:
- Booking Added (Frontend bookings)
- Booking Rescheduled
- Booking Cancelled
- Appointment Added (Backend)
- Event Booking Saved
- Event Booking Updated
Variables available in Amelia templates:
| Group | Variables |
|---|---|
| Booking | {booking_id}, {booking_status}, {booking_date}, {booking_time}, {booking_duration}, {booking_price}, {booking_persons} |
| Customer | {customer_first_name}, {customer_last_name}, {customer_full_name}, {customer_email}, {customer_phone} |
| Service | {service_name}, {service_description}, {service_duration}, {service_price}, {service_category} |
| Provider | {provider_first_name}, {provider_last_name}, {provider_full_name}, {provider_email}, {provider_phone} |
| Location | {location_name}, {location_address}, {location_phone} |
| Appointment | {appointment_id}, {appointment_date}, {appointment_start_time}, {appointment_end_time} |
| Rescheduling | {old_appointment_time}, {new_appointment_time} |
| Site | {site_name}, {site_url}, {current_date}, {current_time} |
Contact Form 7#
When a form is submitted, the plugin can message you (the admin), the person who filled in the form, or both.
| Setting | What it does |
|---|---|
| Admin Phone Number | Your number with country code, for example +919876543210. |
| Enable admin notifications | Send a message to the admin number. On by default. |
| Enable customer auto-reply | Send a thank-you message to the phone number entered in the form. Off by default. |
| Form Submitted Successfully | Send when Contact Form 7 sends its email successfully. |
| Form Submission Failed | Send when Contact Form 7 fails to send its email. |
The plugin finds the name, email, phone and message in your form by field name. Use common names such as your-name, your-email, your-phone (or phone, mobile, whatsapp), your-subject and your-message. The customer auto-reply only goes out when a phone field is found. Ask for the number with its country code: the plugin recognises only some country codes and uses the Default Country Code otherwise.
Template variables:
| Group | Variables |
|---|---|
| Form | {form_id}, {form_title}, {form_url}, {submission_date}, {submission_time} |
| Contact | {contact_name}, {contact_email}, {contact_phone}, {contact_company}, {contact_website} |
| Content | {subject}, {message}, {all_form_data} |
| Site | {site_name}, {site_url}, {admin_email}, {current_date}, {current_time}, {current_datetime} |
Every form field is also available by its own name, with hyphens replaced by underscores. For example, a field named your-city is {your_city}.
Example admin notification:
New enquiry from {contact_name} ({contact_phone}) on {form_title}:
{message}
Line breaks in the visitor's message are removed, so {message} arrives as one line.
Logs#
WbizTool → Logs lists the messages the plugin tried to send, with the date, event type, integration, phone, message and status. Use it to check whether an event fired and whether the message was sent. It doesn't show why a message failed.
Troubleshooting#
| Problem | What to check |
|---|---|
| No message after an order | The WooCommerce integration and that event are ticked, the order has a billing phone, and Test Mode is off. |
| Message goes to the wrong number | The billing country or Default Country Code is wrong for that customer. |
| Log status is Failed | Click Test Connection on WbizTool → Settings. Check the Client ID and API key on Settings → API keys and the WhatsApp Client ID on WhatsApp settings, and confirm your plan has messages left. |
| Logged as sent but not received | The message is queued until your WhatsApp number is connected. |
| Amelia event ticked but nothing sent | See the Amelia limitation above. |
| No WbizTool menu in the admin sidebar | The plugin is activated under Plugins, and you're logged in as an administrator (the menu needs the manage_options capability). If it still doesn't appear, check the PHP error log, then deactivate and reactivate the plugin. |
To see PHP errors from the plugin, turn on WordPress debug logging in wp-config.php. Errors are written to wp-content/debug.log. Turn it off again when you're done.
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);