Skip to content

Rules: automatic SMS in WordPress

Updated:

On this page

A rule tells the plugin: "when X happens, send this SMS to Y". An event is, for example, an order status change, a form being sent or a new booking.

Add a rule

  1. Open SMS Portal|app → Rules and click Add automatic SMS.
  2. 1. Event: pick the plugin, then the event that should send the SMS. You can change it later with Change.
  3. 2. To whom: choose Customer (the phone from the order, booking or form) or Fixed number (for example yours, to hear about new orders).
  4. 3. Text: write the SMS. Insert a variable by clicking its name in the list "Variables: click to insert".
  5. Click Save. The Enabled switch decides whether the rule runs.
Rule editor: event, recipient, text with variables, counter and preview
Rule editor: event, recipient, text with variables, counter and preview

The list of events depends on which plugins are active. The articles cover the supported plugins: WooCommerce, forms, bookings and Ultimate Member and Uncanny Automator.

Variables

A variable is a spot in the text that the plugin replaces with data, for example {first_name} with the customer's first name. Polish names work the same way: {imie}, {numer_zamowienia}, {nazwa_sklepu}. Example:

Hi {first_name}, order {order_number} is ready. {store_name}

An empty variable, for example a missing tracking number, disappears from the text and the SMS still goes.

Counter and preview

Under the text field you see "Characters: X · SMS: Y". Without Polish letters, 160 characters fit in one SMS. One Polish letter makes it 70. A longer text goes as several parts, which the recipient's phone joins into one message. More: special characters and SMS length.

The preview shows the text with the data of the latest such event. If there has been none yet, it shows the variable names.

Test and SMS lifetime

The Send a test SMS to me button sends the text to the number from Settings and does not save the rule.

Under More settings, the field "Do not send if it is late by more than" (hours) sets how long an SMS may wait for the phone. The default is 12 hours, and 0 means never. After that time the SMS gets the status Expired.

List of automatic SMS rules with On switches
List of automatic SMS rules with On switches

What next

Check the status of sent messages under Sent: Sent and Log.

Questions and answers

Will a customer get the same SMS twice?
No. Each event, for example order 1042 set to Completed, sends at most one SMS, even when the status is set again.
What happens when a variable is empty?
The variable disappears from the text and the SMS still goes. This happens, for example, when there is no tracking number.

Didn’t find the answer? Contact us

Send your first SMS today

Create a free account, connect your phone and see how customers respond to messages from your number.