Guide · Template

Writing the rules for what agents may do alone

Every piMonk agent works inside a rule you set. This is the template we use ourselves: four tiers, starter rules by function, one worked example and a review routine.

The one test behind every rule

Does this action commit the business? If it binds you to a price, a date, a payment or a public statement, a person approves it. If it only records, prepares or informs, an agent can usually finish it.

When a rule is missing or unclear, the action waits for a person. Our approvals service never guesses. See agents and approvals for how it works across the suite.

Write the rules with your team. The people doing the work know where the real judgement calls are.

Four decision tiers

Tier 1, do and log: the agent finishes, and the action is recorded. Tier 2, do and tell: the agent finishes and tells the owner, who can reverse it. Tier 3, propose and wait: the agent prepares everything, and a named person approves, edits or rejects it. Tier 4, people only: the agent gathers information, and a person acts.

Size and situation move an action up. A discount up to 5 per cent might be tier 3 for a manager; above that, tier 4 for a director. A routine reply might be tier 2; the same reply to an unhappy customer is tier 3.

The rule template

A finished rule answers six questions. Action: exact, such as "send a follow-up after 14 days of silence", not "handle follow-ups". Tier: 1 to 4, plus what would move it. Approver: a named role, never "someone senior". Time limit: how long before it escalates. Escalation: to whom. Delegation: who approves when the approver is away. Until all six are answered, the action stays at tier 3 or 4.

Starter rules by function

FunctionActionTierApprover
SalesLog a call, email or meeting against the deal1—
SalesDraft a follow-up or proposal3Deal owner
SalesOffer a discount above the standard band4Sales director
MarketingPublish a post, email or page3Channel owner
MarketingSay anything about competitors, prices or regulated topics4Marketing lead
ServiceRoute a ticket, answer from approved articles2Team lead, told after
ServiceReply to an unhappy customer, offer goodwill3Team lead
ServiceRefund above the standard limit4Finance controller
ProjectsSort incoming work, suggest an owner2Project lead, told after
ProjectsChange a committed delivery date4Delivery director
SecurityBlock traffic that matches an agreed policy2On-call engineer, told after
SecurityCreate a new blocking policy or change a live system3Security lead

piMark sets approval per channel. In piSentinel, agents also earn a trust score: a trusted agent can act within a wider band, and anything outside it still goes to a person.

A worked example

Illustrative, for a sales team using piRevenue.

Action: Send a follow-up drafted by the Writer agent to a contact silent for 14 days.
Tier: 3. Moves to tier 4 above a deal value you set.
Approver: The deal's account owner.
Time limit: 48 hours.
Escalation: To the account owner's manager.
Delegation: A named deputy during leave.

Review on a schedule

Start one tier stricter than feels necessary. Every agent action is recorded, so after a few weeks you can see four things per rule. Approved unchanged almost every time: move it down a tier. Often edited: improve the agent's instructions, not its freedom. Waiting for days: the approver or the tier is wrong. Rejections: read each one with the team.

Review monthly during a pilot and quarterly after. Change one rule at a time, and write down why.

Where this fits. See agents and approvals, and the thinking in who decides?, our companion to Kintoro's essay judgement is the scarce resource.

Notes

  1. The tiers, thresholds and starter rules are illustrative starting points, not recommendations, and not legal or compliance advice.
  2. The approvals service and the record of agent actions are part of piMonk's platform standard; see agents and approvals for status by app.