Trellvix
GuideRules and thresholds

Guide Connect and decide

Rules, hard stops and thresholds

How the office decides what goes through, what waits for a person and what is refused.

The short version

By default, anything an agent asks to send, spend or do for good waits for a person. You have three ways to change that, and they pull in different directions.

  • A rule lets one kind of routine request through, up to a limit, until a date.
  • A hard stop makes one kind of request always wait. No rule can allow it.
  • A threshold makes anything large wait, whatever the rules say.

How a request is judged, in order

Every request goes through the same questions, top to bottom. The first one that gives an answer ends it.

  1. Is this tool on the agent’s list?

    Refused if it is not. An agent may use only the tools it was given when it was brought in.

  2. Is a stop switched on?

    Stopped if a stop covers this agent, or every agent. See Stopping an agent.

  3. Does a hard stop hold this kind of request?

    Waits for a person if one does, every time.

  4. Has anyone signed this kind off?

    Waits for a person if nobody has. A kind the office has never agreed to judge is never let through.

  5. Is it at or above a threshold?

    Waits for a person if the amount, or the number of people it reaches, is at or above a line the company drew.

  6. Does it only look, or can it be undone, and name no money and no people?

    Goes through if so. Reading a calendar is an example.

  7. Does a rule cover it?

    Goes through if a rule that has not ended covers this kind, for this agent, within its limits. The record names the person who wrote the rule.

  8. Otherwise

    Waits for a person If a rule covers the kind and the request is over the rule’s limit, the request says which limit.

Nothing on this list is a timer. A request that waits keeps waiting until a person decides. Silence is never a yes.

What a request says about itself

The office judges what the agent tells it. Each request carries:

  • The tool it wants to use, such as sms.send.
  • The kind of request, such as sms.send.reminder. Rules and hard stops are written on this name.
  • A sentence a person can read, such as “Text Ms Lee her appointment reminder”.
  • What it can do: only look, be undone, or not be undone.
  • The amount, when money is involved, and how many people a message reaches.
  • The words it will send to a person, when it sends any.

All of this is the agent’s own word. Keep that in mind for the examples, and for the limit after them.

Worked examples

The examples use a made-up clinic, Brightside Dental. Its office came from the Dental clinic template, so it was born with two hard stops, on payments and on anything clinical, and an amount threshold of 500. Dana is its owner.

A reminder text to one patient

Agent
Reminders
Kind of request
sms.send.reminder
Reaches
1 person
  • The first time Waits for a person

    Nobody has seen this kind before. The request says: Nobody has signed off on this kind of action yet, so a person decides.

  • After Dana writes a rule for it, up to 50 people Goes through

    Nobody is asked. The agent is told Allowed under a standing rule Dana granted, and the record names her.

A refund of 800

Agent
Billing
Kind of request
refund.issue
Amount
800
  • With a rule that allows refunds up to 1,000 Waits for a person

    The rule would allow it. The threshold comes first: 800 is over the office’s line of 500. The request says it is at or above the amount threshold, so a person decides whatever the rules say.

  • The same rule, a refund of 300 Goes through

    Under the threshold and inside the rule.

  • In an office made from the E-commerce template Waits for a person

    That office was born with a hard stop on refunds, so every refund waits, whatever its size, and no rule can be written for it. The request says: This always needs a person: a refund moves money.

An email to 300 people

Agent
Reminders
Kind of request
email.send.newsletter
Reaches
300 people
  • With a rule that allows emails to up to 50 people Waits for a person

    The rule covers emails, and 300 is over its limit. The request says it is Over the cap of the rule Dana granted, up to 50 people, so the approver sees why a routine email is in the queue.

  • In an office made from the E-commerce template, with a rule that sets no limit on people Waits for a person

    That office was born with a threshold of 100 people. The rule would allow the email. The threshold comes first.

When a request is mislabelled

This is the limit to be plain about. The office judges the label it is given. It does not watch what the agent does afterwards, and it does not read a message to work out what kind it really is. A wrong label gets the answer for that label.

The same email to 300 people, labelled three wrong ways

  • It does not say how many people, and the rule has a limit of 50 Waits for a person

    Held. A message that names no number is treated as over any limit a rule puts on people.

  • It does not say how many people, and the rule has no limit on people Goes through

    Not held. The email reaches 300 people and nobody was asked. A threshold on people would not have caught it either, because a threshold can only weigh a number the request names.

  • It calls itself something that can be undone, and names no number Goes through

    Not held, with no rule at all. Once a kind is signed off, a request of that kind that says it can be undone, and names no money and no people, goes through on the agent’s word.

A hard stop has the same limit. A reminder agent that texts medical advice under sms.send.reminder is not held by the hard stop on clinical. The stop holds what is labelled clinical, and the label is written by whoever built the agent.

What narrows the gap

  • An agent may use only the tools on its list. Anything else is refused.
  • A kind of request nobody has signed off always waits.
  • A request that names money or people is never let through on the agent’s word that it can be undone. A rule or a person has to cover it.
  • A threshold applies to any number the request names, whatever else the label says.
  • What the agent declared stays on the record beside the decision, with the words it sent. A wrong label can be found afterwards.

What you can do about it

  • Ask the builder to write each label in code, and never let an AI model choose it. See what to tell whoever builds the agent.
  • Give every rule for messages a limit on people, so a message with no number waits.
  • Write rules narrowly: one exact kind, one agent, a limit, a short life.
  • Sign a kind off on its own only when you are content for its harmless requests to go through unasked.

Writing your first rule

Rules are written by an owner. Approvers and viewers can read them.

  1. Let the agent ask once

    On screen Needs you

    The first request of a new kind waits. Read it and decide it.

  2. Find the kind

    On screen Rules

    At the top, the list Asked for, never signed off shows the exact name of each kind agents have asked for that nobody has agreed to yet, with who asked and how many times. A rule has to use that name, or the start of it.

  3. Write the rule

    On screen Rules, under Allowed without asking

    • Kind of request: type the name, for example sms.send.reminder.
    • Agent: pick the one agent this is for. Any agent is wider than you usually want.
    • Up to, in dollars: the most one request may spend. Leave it empty when no money is involved.
    • Up to how many people: the most people one message may reach.
    • For how many days: when the rule ends. It starts at 30.

    Press Allow it.

  4. Check it

    On screen Rules, then Agent log

    The rule is now in the table, with your name under Granted by and its end under Until. The next request it covers goes through, and its line in the log reads A standing rule in the column Who decided.

How a rule matches a name

A rule matches the kind exactly, or any kind that goes on from it after a dot. A rule on sms.send covers sms.send and sms.send.reminder. It does not cover sms.sender. A hard stop matches the same way: a stop on payment holds payment.propose.vendor.

The other controls on the same screens

  • Sign it off agrees that the rules may judge a kind, without writing a rule. Its requests that only look or can be undone, and name no money and no people, then go through. Everything else of that kind still waits each time.
  • Revoke ends a rule at once. It takes a second press. Anything the rule covered waits for a person again.
  • Under Hard stops: always need a person, fill in Kind of request and Why it always needs a person, then press Add a hard stop. Remove takes a second press.
  • Thresholds are on the screen Office, under Thresholds: Amount at or above which a person decides, whatever the rules and Recipients at or above which a person decides. Press Save thresholds. Leave a field empty for no line.

What this does not do

  • No timer ever approves for you. A rule is a yes you gave in advance, with your name on it. When it ends, its requests wait again.
  • A rule cannot be written over a hard stop. Remove the hard stop first, on purpose.
  • Rules and thresholds do not read the words of a message. They weigh the kind, the amount and the number of people.
  • Amounts are plain numbers, and the screens show them in dollars. There is no setting for another currency.
  • The office does not yet keep a history of who changed a hard stop or a threshold. A rule shows who granted it.

Last read against the product on . What this page says is not built or not published was true on that date.