Why routing rules matter
The value of AI analysis is not just the labels it assigns — it is what happens next. A piece of feedback marked "urgent, billing, negative" has no impact if it sits in a dashboard that nobody checks. The goal of a routing system is to ensure that the right signal reaches the right person through the right channel automatically, without anyone having to manually monitor the queue.
Rereflect's rule engine is the mechanism for expressing that logic. Rules are condition-action pairs that evaluate against every feedback item after analysis completes. If the conditions match, the action fires.
Anatomy of a rule
Each rule has three parts:
- Name — a human-readable label so you remember what the rule does when you come back to it six months later.
- Conditions — one or more logical tests on feedback fields. Fields available for conditions include: sentiment (equals/not equals), sentiment_score (greater/less than), pain_point_category (in list / not in list), is_urgent (boolean), is_feature_request (boolean), source (equals), customer_id (matches pattern), and metadata keys you populate at ingestion time.
- Action — what fires when all conditions match. Currently supported actions: send Slack notification (to a webhook URL), call an outbound webhook (arbitrary HTTPS endpoint), send email (to a list of addresses), and add a tag to the feedback item.
Conditions within a single rule are AND'ed together: all conditions must match for the action to fire. To express OR logic (fire if sentiment is negative OR if item is urgent), create two separate rules that share the same action.
A practical ruleset to start with
Most teams converge on a similar starting configuration. Here is a ruleset that covers the most common cases:
| Rule name | Conditions | Action |
|---|---|---|
| Urgent churn alert | is_urgent = true | Slack → #alerts-urgent |
| Billing pain points | pain_point_category = billing AND sentiment = negative | Slack → #team-billing + webhook → Linear handler |
| High-value customer negative | sentiment_score < 0.15 AND metadata.plan = enterprise | Email → csm@example.com |
| Feature request triage | is_feature_request = true AND sentiment != positive | Slack → #product-requests |
| Onboarding friction | pain_point_category = onboarding | Webhook → internal Notion handler |
Rate limiting and cool-down
Without rate limiting, a single burst of similar feedback — say, an outage that generates 50 "downtime" tickets in an hour — can flood your Slack channel with 50 identical-looking alerts. Rules support a per-rule cool-down period: once a rule fires, it will not fire again for the same category + source combination until the cool-down expires.
Reasonable defaults: 15 minutes for urgent alerts (you want to know quickly but not get paged every 30 seconds), 24 hours for pain-point threshold notifications (daily rollup is enough), and no cool-down for high-value customer rules (every enterprise customer complaint deserves its own alert).
Iterating on your rules over time
A routing configuration that made sense when you had 100 customers per month will have different failure modes when you have 1,000. Common iteration triggers:
- Channel is too noisy — tighten the conditions (add a sentiment_score threshold, restrict to a specific source) or increase the cool-down.
- Urgent items are being missed — the is_urgent condition is too restrictive; add a secondary rule that catches sentiment_score below a raw threshold even without the urgency flag.
- New integration added — add a source condition to route Intercom tickets differently from Zendesk tickets.
- Team structure changed — update the Slack channel or email list in the action; the condition stays the same.
- Pain point taxonomy updated — if you renamed a category, update the condition values that reference it. The UI shows you which rules reference each category name.
The rule engine is intentionally simple: conditions are field comparisons, actions are HTTP calls and notifications. That simplicity means you can reason about what will fire and why, and debug unexpected behavior without digging through code. The delivery log shows every rule evaluation and its outcome.