Skip to content
Wbiztool

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.

RequirementValue
Plugin version1.0.3
Requires WordPress5.0 or later (tested up to 6.8)
Requires PHP7.4 or later
WooCommerce4.0 or later (tested up to 9.0)
Works withWooCommerce, WP Amelia, Contact Form 7

Before you start#

Install the plugin#

  1. 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-wbiztool folder into /wp-content/plugins/ over FTP, then activate it under Plugins.

  2. 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#

  1. 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.

  2. 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 example 91.
    • 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.
  3. 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.

  4. 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.

  5. 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.

EventWhen it sends
Order CreatedA new order is created.
Order ProcessingAn order moves from pending to processing, or a payment completes and the order is processing.
Order CompletedAn order moves to completed from pending or processing, or a payment completes and the order is completed.
Order ShippedAn order moves to a status called shipped.
Order CancelledAn order is cancelled.
Order RefundedAn order is refunded.
Payment FailedAn order's status changes to failed.

Template variables:

GroupVariables
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:

GroupVariables
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.

SettingWhat it does
Admin Phone NumberYour number with country code, for example +919876543210.
Enable admin notificationsSend a message to the admin number. On by default.
Enable customer auto-replySend a thank-you message to the phone number entered in the form. Off by default.
Form Submitted SuccessfullySend when Contact Form 7 sends its email successfully.
Form Submission FailedSend 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:

GroupVariables
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#

ProblemWhat to check
No message after an orderThe WooCommerce integration and that event are ticked, the order has a billing phone, and Test Mode is off.
Message goes to the wrong numberThe billing country or Default Country Code is wrong for that customer.
Log status is FailedClick 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 receivedThe message is queued until your WhatsApp number is connected.
Amelia event ticked but nothing sentSee the Amelia limitation above.
No WbizTool menu in the admin sidebarThe 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);