Rules

Exact replies, tags and hand-offs that run before the AI.

A rule says when it applies and what to do. Rules are checked on every visitor message, in order, before the AI. The first match wins.

Make a rule

  1. Open AI agent › Rules and press Add rule.
  2. Under When, add conditions.
  3. Under Then, choose what happens.
  4. Check how many recent messages it would have matched, then save.

When

Conditions can look at:

  • the message: its text, and whether it is the first one
  • the page the visitor is on: its address and title
  • what you know about the visitor, like their plan, and whether they are verified
  • the conversation: its tags and attributes, and whether a person has it
  • the time: the hour and weekday in your workspace's timezone

Then

ActionWhat happens
ReplySends your exact text. The AI stays quiet.
Instruction for the AIThe AI answers, with one extra instruction for this message
TagLabels the chat, so you can search for it
Hand offMarks the chat as needing a person
RememberSaves an attribute that later rules and tools can use

Replies can include what you know: We're back at 9:00, {contact.name}.

Examples

GoalWhenThen
Set expectations at nightHour is at least 18Instruction: say that the team replies in the morning
Send legal questions to a personMessage has any of the words: lawyer, lawsuit, courtHand off, tag legal
Look after paying customersVisitor attribute plan is proTag pro
A fixed answer about pricesMessage contains any of: discount, couponReply with your exact policy

Use a rule when the answer must never vary. For everything that needs judgement, use a playbook.