ActivoRules · AI orchestration · DecisionRules · dedicated solvers

ActivoRules: the decision stack

A live, executable copy of how your business decides.

The decision stack is the architecture behind ActivoRules. Your policies become versioned rules in DecisionRules, our rules engine partner. ActivoRules’ AI agents orchestrate the work around them, 24/7, and dedicated solvers handle the hard optimisation: prices, stock transfers and fulfilment routes. Your leadership team sets the limits and handles the exceptions, and your systems of record stay clean, controlled and auditable.

Rules engine partnerDecisionRules

DecisionRules gives our 24/7 agents a deterministic decision layer

ActivoRules orchestrates the agents, solvers, workflows and human checkpoints. DecisionRules is our rules engine partner: it runs your policies as decision tables, decision trees, scripting rules and flows, with version history, a test bench and audit logs, and every agent can call it through its MCP server or APIs, in the cloud or on-premise.

Agents bring language and judgement, solvers bring optimisation, and DecisionRules guarantees the same input gets the same, explainable answer.

Agents proposeRead, extract, research, frame scenarios, draft.
Rules decideDecisionRules applies versioned policy. Same input, same answer.
Solvers optimiseFind the best plan; rules check it before commit.
People own the envelopeCEO sets limits; owners approve rules and exceptions.
Records stay trueERP, CRM, payroll change only through governed paths.
01 · Generic architecture

One stack, every process

Each layer has one job. Probabilistic work (language, documents, judgement calls) sits above the decision line; deterministic work (policy, limits, calculations) sits on it; the systems of record sit below it and are never written to directly by an agent.

People in the loopOwn intent, risk appetite, rules and exceptions

CEO / owner

Sets goals and the risk envelope (margin floor, cash buffer, autonomy levels). Asks scenario questions. Reads the weekly decision digest.

Process owners

FD, sales lead, ops manager. Own their rule sets in DecisionRules, approve new rule versions, decide escalated cases.

Operators

Work the exception queue. Every override is logged with a reason, which feeds rule improvements.

Admin / IT partner

Connectors, permissions, secrets, monitoring. Often a fractional or outsourced role in an SME.

Goals, questions, approvalsBriefs, exceptions, scenario results
ChannelsMeet people where they already work
Slack / TeamsEmailWeb forms & portalApproval inboxCEO scenario cockpitWeekly decision digest
Requests, documents, eventsAnswers, drafts, approval cards
Agent layer · probabilisticReads, reasons, drafts, proposes. Never the final word on policy.

Orchestrator agent

Takes the request, plans the steps, delegates to specialists, calls DecisionRules for every policy decision, calls a dedicated solver when a rule says the case needs optimising, and assembles the answer or approval card.

Intake & extraction

Invoices, contracts, emails, forms into typed fields with a confidence score.

Research & enrichment

Company registries, CRM history, supplier data, market signals.

Scenario analyst

Turns a question into assumption sets and candidate policies; runs them through DecisionRules and, for large search spaces, a solver; explains the trade-offs.

Execution agent

Prepares actions and triggers DecisionRules flows. Holds no direct write credentials to records.

Comms agent

Customer replies, supplier emails, approval briefs, the CEO digest.

Monitor agent

Reads execution logs, spots drift and frequent overrides, drafts rule-change proposals.

Typed payload: facts + confidenceOutcome + reason codes + rule version
DecisionRules · deterministic decision layersame input → same output · versioned · logged

Rules

  • Decision tables and decision trees
  • Lookup tables
  • Scripting rules (JavaScript) for calculations
  • Rule variables (thresholds, limits)

Flows

  • Decision flows chain rules, API calls and database connectors
  • Integration flows for long-running background jobs
  • AI agent nodes for extraction, classification, enrichment

Testing

  • Test bench to simulate cases
  • Rule comparison between versions
  • Batch runs of what-if inputs

Governance

  • Version history per rule
  • Audit logs for every decision
  • MCP server and REST API for every agent
Connects to:MCPREST APIPostgreSQLMySQLSQL ServerOracle DBAI model connectors· Cloud or on-prem
When a rule says optimise: inputs + constraintsOptimal plan, checked by rules
Dedicated solvers · optimisation layerHeavy maths, outside the rules engine

Price optimisation

Prices tuned to demand, stock and competitor moves, inside floors set by rules.

Stock transfers

Which site sends what to whom, at the lowest total cost.

Fulfilment & routes

Warehouse splits, carriers and delivery routes for each order.

How they run

Python or Node with OR-Tools, PuLP or SciPy on serverless compute. Triggered by a DecisionRules flow or the agent; never write to records directly.

Governed write-back onlyReads via DB & REST connectors
Control gatesAgent tool calls pass the same gates
Value & action limitsApproval thresholdsLeast-privilege credentialsIdempotent writesKill switch & version rollbackAudit trail
Committed changesSource-of-truth data
Systems of recordThe golden source. Optimised, controlled, never bypassed.

Finance & ERP

Xero, QuickBooks, Sage, NetSuite: ledger, AP/AR, price lists.

CRM

HubSpot, Salesforce, Pipedrive: accounts, deals, quotes.

Operations

Inventory, orders, WMS, helpdesk.

People

HRIS, payroll, expenses.

Bank & payments

Read balances; payments released by people.

Data & documents

Warehouse, policies, contracts. Read-only for agents.

Improvement loop. Agents never edit rules in production. The monitor agent drafts a change (for example, “raise the auto-approve discount band for tier-A customers from 5% to 7%”), backtests it against logged cases in the DecisionRules test bench, and sends it to the process owner. Approved changes ship as a new version that can be rolled back.

02 · Humans in the loop

Who decides what, and how autonomy is earned

The routing of each case is itself a DecisionRules decision table, owned by the CEO. That keeps the “when does a human step in” policy explicit, versioned and easy to tighten after a bad week.

L1

Assist

Agent drafts and checks; a person does the action. Use for new processes and anything irreversible.

L2

Approve

Agent, rules and any solver prepare the decision with reasons; a person clicks approve or overrides with a reason.

L3

Supervise

Auto-execute inside DecisionRules limits. People handle only the exceptions the rules send them.

L4

Autonomous

Auto-execute with sampled review. The CEO sees outcomes and drift in the weekly digest.

Promote a process one level when its override rate stays under target (say 2%) for four weeks. Demote it automatically when exceptions spike or the rule version changes materially.

Decision table · autonomy_routing v3owner: CEO · example thresholds
Value at riskReversibleAgent confidenceRule result→ Mode→ Reviewer
< £1,000Yes≥ 0.90Clean passAuto-execute5% sampled
< £1,000Yes< 0.90Clean passConfirmOperator
£1k – £10kAnyAnyClean passApproveProcess owner
> £10,000AnyAnyAnyDecideCEO or FD
AnyNoAnyAnyApproveProcess owner
AnyAnyAnyConflict or missing dataHold & askOperator

Rows evaluate top to bottom; first match wins. Thresholds are illustrative; set your own per process.

03 · Scenario management & deterministic optimisation

Agents widen the options; rules score them the same way every time

The agent’s creativity goes into framing scenarios and generating candidate policies. The judgement of which candidates pass and how they rank comes from a pinned DecisionRules rule version, so the result can be reproduced, defended to the bank or board, and re-run next month.

CEO

Ask

States the question and what must stay true (cash buffer, margin floor).

Scenario agent

Frame

Builds assumption sets: base, downside, stress. Pulls actuals read-only.

Scenario agent

Generate

Lists candidate policies: price moves, order quantities, alternative supplier.

DecisionRules

Evaluate

Runs every scenario × candidate through the same rule version: constraints pass/fail, objective score.

Scenario agent

Rank & explain

Shortlists the top options with reason codes and plain-English trade-offs.

CEO / owner

Decide

Picks one. It is promoted as a new rule version or a variant test.

DecisionRules + monitor

Track

Execution logs compare real outcomes to the scenario; drift triggers a re-run.

Example run · supplier +8% cost, demand −5%rules: pricing_policy v12 · illustrative figures
CandidateGross marginCash low pointConstraintsScore
Price +3%, switch 40% volume to supplier B34.1%£182kAll pass 86
Price +5%, keep supplier A35.0%£171kAll pass 74
Hold price, cut reorder qty 15%31.2%£205kAll pass 61
Hold price, keep supplier A29.4%£148kMargin floor 30% —

Constraints and the scoring formula live in DecisionRules as decision tables and rule variables, so the CEO can see exactly why an option failed.

“Can we hold our prices if our main supplier raises costs 8% and demand softens?”

What deterministic optimisation means here. The engine evaluates an explicit set of candidates against explicit constraints and an explicit objective, so the same inputs always give the same ranking. For SME-sized choices (a few price points, suppliers, order sizes) a grid of candidates is usually enough.

When the search space is large (multi-warehouse fulfilment, stock transfers, delivery routing, dynamic pricing), the rules decide that a case needs optimising, a DecisionRules flow or the agent calls a dedicated solver over an API, and the business rules check the solver’s answer before anything is committed. This decoupled solver pattern keeps heavy maths out of the rules engine, where scripting rules are best kept for moderate calculations.

04 · Use cases on the same stack

Ten processes, one pattern

Each card follows the same lanes as the architecture. The rule line shows the kind of logic that belongs in DecisionRules rather than in a prompt, and the solver lane shows where optimisation takes over.

Quote & discount approval

Sales

Trigger: a rep requests a discount in the CRM or Slack.

AgentPulls deal size, margin, customer history and competitor mentions; drafts the justification.
RulesDiscount matrix by tier, volume and margin floor returns approve, counter-offer or escalate.
HumanSales lead decides only out-of-band requests, with the brief attached.
RecordApproved price written to the CRM quote and ERP price list.
IF tier = A AND volume ≥ 500 AND margin_after ≥ 32% THEN max_discount = 7%

ValueQuote turnaround in minutes; discounting stays inside policy.

Customer onboarding & credit limit

Finance

Trigger: new trade-account application.

AgentReads the application and filed accounts; checks company registry details and director history.
RulesCredit scorecard, then a rule chain that sets limit, terms and deposit requirement.
HumanFD reviews borderline scores and any sanctions or registry mismatch.
RecordCustomer master, credit limit and terms created in the ERP.
score 60–74 → limit = min(£10k, 10% × turnover) · terms = 30 days

ValueSame-day onboarding with one consistent credit policy.

Supplier invoice processing

Finance · AP

Trigger: invoice arrives in the AP mailbox.

AgentExtracts header and line items; finds the PO and goods receipt; flags duplicates.
RulesThree-way match tolerances, VAT checks, approval matrix by amount and cost centre.
HumanBudget holder approves out-of-tolerance invoices; payment run released by a person.
RecordBill posted to the accounting system, scheduled for the next payment run.
|invoice − PO| ≤ 2% AND ≤ £50 AND GRN matched → auto-post

ValueHigher touchless rate; fewer duplicate and over-payments.

Stock replenishment & transfers

Operations

Trigger: nightly schedule, or a stock level crossing a threshold.

AgentReads sales velocity, promotions and supplier lead-time notes; flags unusual demand.
RulesReorder point and order quantity rules with MOQs, budget caps and a supplier-choice table; scenario runs for peaks.
SolverPlans stock transfers between sites before raising new POs, at the lowest total cost.
HumanOps manager approves POs above the cap or for new suppliers.
RecordPurchase orders raised in the ERP or inventory system.
reorder_point = avg_daily × lead_days + safety_stock · qty = max(MOQ, gap)

ValueFewer stock-outs with less cash tied up in inventory.

Cash-flow scenarios

CEO · Finance

Trigger: the CEO asks a question, or the monthly close completes.

AgentBuilds base, downside and stress assumptions from actuals; narrates the result.
RulesDeterministic cash rules: payment terms, payroll and VAT dates, covenant and buffer tests.
HumanCEO chooses the action: delay capex, chase debtors, draw the facility.
RecordRead-only on ERP and bank; the decision and its inputs are logged.
IF min_cash_13wk < £150k THEN flag = buffer_breach · action_list = playbook_B

ValueBoard-ready answer the same day, reproducible next month.

Support triage & refunds

Service

Trigger: a ticket, chat or email from a customer.

AgentClassifies intent and sentiment, finds the order, drafts the reply.
RulesRefund and goodwill eligibility table; SLA and queue routing by tier and severity.
HumanTeam lead handles high-value refunds and unhappy key accounts.
RecordHelpdesk ticket updated; refund issued through the payments system.
days_since_delivery ≤ 30 AND order ≤ £200 AND refunds_12m < 3 → refund

ValueFaster first response; consistent, fraud-resistant refunds.

Commission & incentive payouts

People · Finance

Trigger: month-end close.

AgentReconciles closed deals to payments; answers reps’ questions about their numbers.
RulesThe commission plan as versioned rules: tiers, accelerators, splits, clawbacks.
HumanFD signs off the payout file; sales lead resolves disputes.
RecordPayout lines sent to payroll.
attainment > 100% → rate = 1.5 × base on excess · churn ≤ 90 days → clawback

ValuePlan changes without code; fewer disputes.

Expenses & leave policy

People

Trigger: an expense claim or leave request.

AgentReads receipts, checks the trip or project context, answers policy questions.
RulesLimits by grade and country, per-diem tables, leave balances and blackout dates.
HumanLine manager approves exceptions only.
RecordHRIS, payroll and accounting updated.
category = hotel AND city = London AND nightly ≤ £180 → approve

ValueManagers stop rubber-stamping; policy is applied evenly.

Multi-warehouse fulfilment

Operations · E-commerce

Trigger: a multi-item order completes checkout.

AgentSends the order context through MCP, then acts on the approved plan.
RulesSLA tier, fraud risk and order size decide whether to optimise; max parcels, SLA date and a cost ceiling then check the plan.
SolverAn integer programme picks the warehouse split that minimises cost and carbon within stock and labour limits.
HumanOps lead sees only plans that break a limit.
RecordFulfilment orders created in the OMS and WMS; customer notified.
items ≥ 5 AND sla_tier IN (gold, silver) AND fraud_risk = low → run_optimisation = true

ValueFewer parcels, lower shipping cost and carbon per order.

Dynamic price calculation

Sales · E-commerce

Trigger: a daily schedule, or a stock or competitor price change.

AgentGathers demand, stock cover and competitor prices; explains each change.
RulesA scripting rule calculates landed cost and margin; tables set floors, ceilings and promotion limits.
SolverOptimises prices across the range for margin and sell-through, inside the rule limits.
HumanCommercial lead approves moves beyond the daily change cap.
RecordPrices published to the store and ERP price list.
new_price ≥ landed_cost × 1.30 AND |change| ≤ 8% per day → publish

ValueMargin protected without manual repricing.

05 · Getting started

Start with one decision, not one agent

The fastest return comes from a high-volume decision that already has a written policy. Encode the policy first; the agent wraps around it afterwards.

Phase 1 · weeks 1–4

Encode and shadow

  • Pick one decision (discounts, AP matching, refunds).
  • Write the policy as DecisionRules decision tables with an owner.
  • Connect read-only to the system of record.
  • Replay past cases in the test environment; compare to what people decided.

Exit: rules agree with good past decisions.

Phase 2 · weeks 5–10

Add agents at L2

  • Intake agent turns documents and emails into payloads.
  • Every case goes to an approval card with reasons.
  • Log overrides with a reason code.
  • Track cycle time, override rate, error rate.

Exit: override rate under target for four weeks.

Phase 3 · quarter 2 onwards

Supervise and scale

  • Move proven paths to L3 with governed write-back.
  • Give the CEO the scenario cockpit and weekly digest.
  • Switch on the monitor agent’s rule proposals.
  • Reuse the stack for the next process.

Exit: a repeatable template for every new process.

Responsibility matrixR responsible · A accountable · C consulted · I informed
ActivityCEOProcess ownerOperatorAdmin / ITAgentsDecisionRulesSolvers
Set risk envelope and autonomy levelsACII—R—
Author and approve rule versionsIACCCR—
Interpret inputs and draft outputs—IC—R——
Make the policy decision—A———R—
Optimise complex plans—A—CCCR
Handle exceptionsIAR—C——
Write to systems of record—A—C—R—
Monitor drift and propose changesIACCR—C

Build your decision twin with ActivoRules

We help you pick the first decision, encode it in DecisionRules, add solvers where the maths is hard, wrap the right agents around it and set the human checkpoints. The agent then runs 24/7, and you pay for the outcomes it delivers.

Get in touch