Twilio SMS

To connect the Twilio service to your site and enable automated SMS notifications sending, you need to have a Twilio account.

Connect Twilio to your WordPress

The Twilio settings screen inthe Appointment Booking plugin.

  1. Install and activate the Twilio SMS addon for Appointment Booking (Requirements: Appointment Booking 1.17.0 or greater).
  2. Go to Settings > Notifications > SMS Notifications > SMS Sender > select Twilio SMS Notification Sender.
  3. Add an admin’s phone number. To this number, you can get test or regular SMS notifications.
  4. Fill in the fields required to connect Twilio to your site.

Find all of them in the dashboard page of your Twilio account > Account Info section > copy the credentials and add them to the plugin settings:
Twilio account info.

  • Account SID
  • Auth Token
  • From Contact: choose the one that suits your needs best in Twilio and embed it into this field in the addon settings.

You also need to embed a license key associated with the addon.

Create SMS notifications & configure their sending options

Go to Appointments > Notifications > Add New.

Notification types.

  1. Create a label for this notification.
  2. Notification type: select SMS.
  3. Trigger event: select when the notification must be sent.
  4. Recipients: select who must receive this notification (multiple choice is possible).
  5. As for Employees, you can add their numbers via Appointment > Employees > choose Employee > edit > Employee phone number.

    Employee settings in Appointment booking.

    If you select ‘Customer’ as a recipient, the addon will send SMS notifications to the client’s phone number provided in the dedicated field in the booking form.

    Phone number field in the booking widget.

  6. Custom phone numbers: add comma-separated phone numbers in international format.
  7. Message: add a text message with tags applicable to the type of notification. Consult Twilio to find out how the cost correlates with the length of an SMS.
  8. Click ‘Create’.
  9. Test the notification to see if it works properly: click on the ‘Send test notification’ from the right.

Test notifications are sent to the website admin’s phone number. There must be at least one confirmed booking to send a test notification.
A test sms from a Twilio account.

Once everything is set up, you can always have the up-to-date information on when the next execution for sending notifications is scheduled via Notifications.

The addon primarily uses WordPress cron to send SMS notifications. It’s triggered when people visit a WordPress website. Add the ‘real cron task’ link to your hosting server to run instant SMS notifications.

Cron work for the Twilio addon

To check if the notification was successfully sent, you can see the log for every booking via the Bookings menu > Edit Booking.

Video tutorial on how to set up Twilio SMS

Related Topics