Use Messaging Rules to configure what happens at a particular location when a message event is used. A message template supplies the wording. The rule selects the template for the location and event and configures the trigger, channel and recipient.

Create a messaging rule

  1. Open Setup → Message Centre → Messaging Rules.

  2. Check the existing rules for the intended Location and Message event, then select Add messaging rule if you need a new rule.

  3. Select the Location and Message event first. The event determines which triggers, channels and recipients are available.

  4. Complete the remaining settings.

    Field What to choose
    Trigger Choose Manual send if staff should initiate the send. Choose Automatically after an action if the event supports automatic sending and you want the supported action to trigger it.
    Channel Choose one of the channels offered for the selected event and trigger.
    Recipient Choose one of the recipients offered for that configuration. In-app notification needs an internal user or role.
    Template Choose an active template for the same event and channel. Review the locale shown beside the template name.
    Rule is enabled Select this when the rule is ready to send messages. Disabled rules stay saved and do not dispatch messages.
  5. Save the rule. If editing an existing rule opens Request message rule edit approval, submit the request and verify the configuration after approval.

  6. Reopen the rule and check the location, event, trigger, recipient, channel, template and enabled status. Test from the location you configured using the manual send action or the event’s supported automatic action.

For example, to let staff send a sales order email from one branch, select that branch, the Send sales order event, Manual send, and Email where offered. Select an eligible recipient and an active email template for that event. Confirming a sales order by itself does not run a rule configured for Manual send.

Configure Official WhatsApp template variables

If you choose Official WhatsApp, enter the Twilio Content SID for the approved WhatsApp template from the Twilio account used by the rule. Under Template variables, map each numbered placeholder to a variable offered by the message event. Keep the placeholders in their original order.

For example, if the approved wording uses the customer name in {{1}} and the order number in {{2}}, map the first placeholder to the customer name and the second to the order number, if those variables are available for the event.

Troubleshoot a rule

What you see What to check
No active template exists for this message event. Open Templates and verify that a template is active and matches the selected event and channel.
Select a supported trigger, channel, and recipient. In-app notifications require an internal user or role. Review the selections in that order. For an in-app notification, choose an internal user or role offered by the event.
Staff expected an automatic message after completing an action. Verify that the rule is enabled for the location where the action happened and uses Automatically after an action for the event. Confirm that any rule edit requiring approval has taken effect.
One branch can use a template and another branch can’t. Check the rule for each location. A template’s active status makes it available for selection, and the location’s rule determines which template that site uses for the event.
An Official WhatsApp message needs different values in its placeholders. Check the approved template associated with the Twilio Content SID and compare each numbered position with the rule’s event-variable mapping.