Settings → Keyword Rules console
Open Settings → Keyword Rules. The console at/settings/keyword-rules is where you write the rules that fire on inbound message keywords — auto-replies, routing handoffs, and your own opt-in/opt-out vocabulary. This guide walks a rule from creation to firing, in the order an operator hits each decision, and then shows a HELP-keyword auto-reply built end to end.
Keyword rules are a tenant-owned control: your organization decides which triggers exist, what your replies say, and which channels they watch. Orbit enforces the matching and the consent gate-write path; the lawfulness of your messaging stays with you. This guide is not legal advice.
1. What kinds of triggers the console supports
One console at/settings/keyword-rules holds every rule the inbound keyword matcher can fire. Each rule pairs a keyword + match type + channel with one of five actions:
Stop keywords vs custom. Orbit recognizes the standard opt-out/opt-in vocabulary (
STOP, START, and their localized equivalents) before your rules run — that built-in classification is not a rule and is not editable here. Your Opt-In and Opt-Out actions are for custom vocabulary (JOIN, QUIT, brand-specific words) that writes to the same consent records the built-in handler uses. The seeded alias vocabulary is documented on the Opt-Out Keyword Alias Table; the relationship section below explains why a STOP-style custom rule never fires.
The rules table lists keyword, channel, match type, action, an enabled/disabled status, and a language/market label for opt-in/opt-out keywords — an informational hint about where that vocabulary is common, never a routing scope. The console is gated to owner, admin, and developer roles.
2. Add a rule — channel, match mode, and the action
Select Create rule. The dialog carries the full rule contract:- Keyword — the text or pattern to match (
HELP,BOOK, a regex). - Channel — one of
sms,whatsapp,rcs, orviber. A rule only fires on inbound messages on its own channel. - Match type — how the keyword is compared to the message body:
- Exact — the whole message, trimmed, equals the keyword. Case-insensitive. Use for single-word commands.
- Contains — the keyword appears anywhere in the body. Use for phrases inside free text.
- Starts With — the message begins with the keyword.
HELPmatchesHELP me, notPLEASE HELP. - Regex — a full pattern compiled case-insensitively. Shapes with catastrophic-backtracking risk (nested quantifiers like
(a+)+, alternation inside a quantifier like(a|b|c)+) are rejected when you save — use a single quantifier or a character class like[abc]+.
- Action — pick Auto-Reply and fill the response body, or route the match to an agent ID / flow ID, or record Opt-In / Opt-Out with an optional confirmation message.
3. Matching — how the matcher resolves multiple rules
Rules are evaluated in creation order, oldest first, and the first match wins. One inbound message fires at most one rule. That makes sequencing your job:- Create specific rules before general ones. An
exact: YESrule beats acontains: YESrule for a bareYES; the contains rule still catchesyes that works. - A broad
containsor a catch-all regex created early shadows every more specific rule created after it. If a fallback is swallowing keyword traffic, it is older than it should be. - To re-sequence, delete the broad rule and re-create it — the new rule becomes the newest and evaluates last. A common catch-all is a regex
.*created after every specific rule.
CAFE and CAFÉ are different keywords.
4. The opt-out relationship — why STOP bypasses your rules
The inbound pipeline classifies each message before it consults your rules:- Built-in consent handling. The standard opt-out/opt-in vocabulary (multilingual
STOP/STARTand equivalents) is processed as an opt-out/opt-in directly. Your rules are never asked about those words — a customSTOPAuto-Reply rule will never fire, andSTOPaliases can never be removed by pruning the seeded table. - Keyword rules, oldest first. The first match executes its action. A custom Opt-Out or Opt-In rule writes to the same consent and suppression records the built-in handler updates, so your
QUITkeyword blocks future sends exactly likeSTOPdoes. - No match → normal routing. The message continues to the deployed agent for that channel if one exists, otherwise it opens the conversation in the Inbox.
all: a STOP on an SMS number fences that contact on SMS, WhatsApp, and RCS at once. The propagation happens at the suppression record, not in the alias table. Auto-replies still pass the outbound gate chain (suppression list → duplicate-content guard → frequency cap → dispatch), so a contact who has opted out is never reopened by a keyword reply.
5. Worked example — a HELP auto-reply tied to compliance
Regulatory senders owe the contact who textsHELP the support-handling info back at once. Build it like this:
- Open Create rule.
- Keyword:
HELP— Channel:sms— Match type: Exact. - Action: Auto-Reply.
- Response text:
CompanyName support: reply STOP to opt out, or contact us at support@yourcompany.example / +1 (415) 555-0101.
HELP in any letter case, which is the carrier-convention shape. Because HELP is not in the built-in opt-out vocabulary, the rule fires rather than being bypassed. For ratings-sensitive markets add per-language variants (AJUDA, AYUDA) as separate rules — the language label next to each keyword in the table is the hint for which market it serves.
To prove the rule fires:
- Create the rule on a channel where you have a reply-capable number.
- Send the inbound — text
HELPfrom a handset to that number. - Confirm both directions — the inbound and the fired reply are ordinary messages. Check the conversation in the Inbox and the outbound row in the Delivery log. If only the inbound exists, confirm the rule is enabled and no earlier, broader rule claims the keyword first.
6. Edge cases — collisions and time-of-day logic
- Cross-channel collisions. A rule only fires on its stored channel, but the same keyword on two channels means two rules to maintain. An SMS
JOINand a WhatsAppJOINare independent; delete one and the other still stands. Check both when a contact says a keyword “didn’t work” on one channel. - Same channel, overlapping patterns. A
contains: INFOrule shadows anexact: INFOrule created after it — the ordering rules from section 3 decide, every time. - Time-of-day logic. Keyword rules do not carry scheduling. If the reply should vary by hour — an after-hours auto-reply, a quiet-hours-safe response — attach Trigger Flow instead of Auto-Reply and branch on time inside the flow; the flow’s history shows the keyword that started it.
- Accents and invisible characters. Matching folds case only.
CAFÉ≠CAFE, and a carrier-injected zero-width character inside the body defeats an Exact match. If a rule that “should match” does not, switch to Contains or a regex likecaf[eé]. - Emoji are literal. An exact rule on
👍matches a message whose entire body is that emoji. For emoji inside sentences, use Contains.
7. Audit trail and changing behavior
Every console write leaves three kinds of evidence:- Org audit log. Create, update, and delete on keyword rules each emit an entry under Settings → Audit Log with the actor, timestamp, and before/after values — the answer to “who changed what the HELP reply says”.
- Consent history. A custom Opt-In or Opt-Out rule’s firings record on the contact’s consent timeline alongside the built-in STOP/START events — pair it with the suppression export for an external audit.
- Message record. A fired Auto-Reply leaves the inbound and outbound pair in the conversation thread and Delivery log; a Trigger Flow firing leaves a run in the flow’s history. There is no separate rule-hit counter — these records are the firing log.
See also
- Auto-reply rules — the keyword rule surface with the API request/response shapes.
- Opt-out keyword alias table — the seeded STOP/START vocabulary and how aliases propagate.
- Opt-out & suppression lists — the suppression ledger keyword opt-outs write to.
- Keyword rules recipes — common rule-set patterns.
- SMS keyword → agent escalation — routing keywords to deployed AI agents.
- Delivery log — where fired replies show up.