Approval policy for a legal and contract agent

A legal agent reviews contracts, answers from matter files and sends drafts and notices. A document sent to the wrong party or a deadline moved by mistake cannot be taken back, so anything that leaves the firm or changes a date waits for a person. To make that person a lawyer, name the lawyers as the rules' deciders, on Business. It writes rules for the generator's kinds of action; the guide names sends, envelopes and deadlines more finely and holds some tighter, so add its rules for those names too.

Signs you in or up first. You see every rule in your workspace before any is added.

Or change it in the policy generator first: names, limits and how long a request waits. Two-person approval needs Team or above; the other rules need Pro. On Free every request waits for one person instead.

What it decides

Each kind of action the agent takes, the names it sends for it, what happens, and why.

  • Look things upread.*Runs on its own and is recorded.Looking things up changes nothing, so it runs on its own and is still recorded.
  • Calendar and internal taskscalendar.*Waits for a person to approve.Deadlines and renewal dates live in the calendar. Moving one later is how a right is lost, so a person checks every change.
  • Change customer or CRM recordsrecords.*Waits until two different people approve. One no stops it.Contract records hold renewal terms, notice periods and values. Two different people approve a change; one no stops it.
  • Email or message customersemail.*Waits for a person to approve.A draft, a redline or advice sent to a client or the other side cannot be unsent, and may carry privileged comments. Ask sends under email.* names and a person reads each one first; on Business, name the matter's lawyers as the rule's deciders.
  • Delete datadelete.*Never. The request is refused at once.Matter files are kept for retention and legal holds. The agent never deletes; a person does, after the hold ends.
  • Grant or remove accessaccess.*Never. The request is refused at once.Matter access and ethical walls are set by the firm's own process. The request is refused at once, so a person does it themselves.

The rules

These are the 6 rules the button adds, for every agent or the one agent key you pick. Every “never” and “ask” goes in before any “allow”, and rules you already have stay. When rules disagree the most cautious wins.

[
  {
    "action": "read.*",
    "effect": "allow"
  },
  {
    "action": "calendar.*",
    "effect": "ask"
  },
  {
    "action": "records.*",
    "approvals": 2,
    "effect": "ask"
  },
  {
    "action": "email.*",
    "effect": "ask"
  },
  {
    "action": "delete.*",
    "effect": "deny"
  },
  {
    "action": "access.*",
    "effect": "deny"
  }
]

The agent’s side

The agent asks before each action under one of these names, such as calendar.book, with the amount and currency where money moves, and acts only when the answer says allowed: true. An amount it leaves out never gets past a limit. The requests docs show the call, and the playground lets you try one without signing up.