How to Build, Preview, and Run a Rule

Create conditions, actions, preview the audience, and execute safely.

Last updated

On this page

How to Build a Rule

  1. Open Audience Rules.
  2. Open the Rules tab.
  3. Click Create Rule for a new rule or Edit for an existing rule. The rule form opens in a right-side drawer.
  4. Give the rule a clear name that describes the business purpose.
  5. Choose the trigger carefully. Supported automatic triggers now include conversation close, new inbound message, assigned agent changed, contact category changed, conversation reopened, first inbound message, first assignment, contact created, tag added, conversation closed by agent, and inbound message keyword matching. "Manual run only" is for admin-controlled testing or batch runs.
  6. Add condition rows that define which conversation records should match. The drawer now shows only the relevant inputs for each selected condition type.
  7. If the trigger and conditions contradict each other, such as automatic close trigger plus Conversation Status = Open, the drawer now shows a warning before save.
  8. For the tag added trigger, use "Added tag is" only when the rule should react to one specific newly added tag. Leave it out when the rule should react after any tag is added and then evaluate the rest of the current conversation conditions.
  9. Keyword rules should include a "Current message contains" condition so the rule stays tied to the exact inbound message payload.
  10. Add action rows that define what should happen.
  11. Keep the rule inactive until preview results are correct.
  12. Save the rule.

Condition Rows

Conditions decide who enters the rule. Use the smallest number of conditions that still describes the audience accurately. Too many conditions can make the rule impossible to match.

When a condition has fixed known values, such as Conversation Status, the drawer shows a dropdown instead of making the user type the value manually.

Action Rows

Actions should be safe, reversible where possible, and easy to explain to the team. Avoid creating duplicate tags or changing contact state without a clear reason.

The contact category changed trigger stays bounded to the latest conversation for that contact instead of replaying actions across every historical conversation.

How to Preview and Run

  1. Click Preview to see the real matched total and a sample of matched conversation rows.
  2. Review the sample rows carefully.
  3. Adjust conditions if the audience is too broad or too narrow.
  4. Run the rule only after the preview is correct.
  5. Run manually is available even when a rule is Off, so you can test safely without enabling automatic execution.
  6. Manual run is a batch scan of the rule against the current matching audience. It is not limited to only the one contact or event that was changed most recently.
  7. The newer event-only triggers do not allow broad Preview or Run manually from the table because that would touch too much audience outside the real event. Test those rules by causing the real event on a safe sample record.
  8. Check the Run History tab and Execution Logs tab after execution.

Expected Result

  • The rule applies only to the intended conversation-scoped audience.
  • Run History and Execution Logs give the admin a quick health check after execution.
  • Large histories stay readable because Run History and Execution Logs now use paging instead of one endless table.

FAQs & Troubleshooting

What is the safest first rule?

Start with a simple tagging rule on a small audience, preview it, then run manually.

Why did a manual run touch more contacts than the one contact I changed?

Example: if the trigger is "When contact category changes" and you changed only one contact from Marketing to Customer, the automatic event run reacts only to that changed contact. But when you press Run manually, the module scans all current matching conversations and applies the rule to everyone who fits the rule now. Manual run does not replay only the most recent category-change event.

Why are Preview and Run disabled on some triggers?

The newer event-only triggers, such as first inbound message, tag added, contact created, and message contains keyword, react to one exact event context. A broad preview or manual batch run would not represent that event honestly, so those buttons stay disabled and the rule should be tested through the real event on a safe sample record.

What does the keyword trigger actually inspect?

It checks only the current inbound message text or caption being processed for that event. It does not scan older conversation history for old words.

Troubleshooting Checklist

  • If preview and run counts differ, check whether records changed between preview and execution.
  • If actions duplicate tags, standardize tag naming before running more rules.
  • If a note does not add again, confirm whether the same Audience Rule note already exists on that conversation.
Next ArticleHow to Test Audience Rules