Skip to content
BOE Docs

Use BOE with an AI agent

An agent handles language and judgment calls. Decisions that must repeat exactly and stand up to review run in a rule engine. Your agent calls BOE for those.

The agent does

Reads the request, picks the ruleset, explains the answer.

BOE does

Runs the rules, versions them, records the lineage.

1. Give your agent the docs

BOE publishes its docs as plain text for models. Point your agent at the short index or the full text.

Plain text docs files
FileUse it for
https://docs.boerules.com/llms.txtA short index. The agent follows links as it needs them.
https://docs.boerules.com/llms-full.txtEvery page in one file, for agents with a large context window.

Both files are planned for this site. Give your agent llms.txt tracks them.

system-prompt.txt
You can make business decisions through BOE.
Read https://docs.boerules.com/llms.txt before you call it.
For approvals, scores, prices and routing, call the boe_execute
tool. Quote the result and the rules that fired. Keep the
executionId so the decision can be looked up later.

2. Let the agent call BOE as a tool

Wrap boe.execute as a tool in your agent framework. The agent supplies a short code and the facts.

The BOE MCP server serves this tool and six more. Connect an agent with the BOE MCP server.

boe_execute.json
{
  "name": "boe_execute",
  "description": "Run a BOE ruleset on facts and return the decision.",
  "input_schema": {
    "type": "object",
    "properties": {
      "shortCode": { "type": "string", "description": "The ruleset short code" },
      "facts": { "type": "object", "description": "Facts grouped by type" }
    },
    "required": ["shortCode", "facts"]
  }
}
A decision, start to finish
  1. Person: Can Dana get the Gold card?
  2. Agent calls toolboe_execute(shortCode: "credit-score", facts: { Applicant: [{ name: "Dana", income: 82000, missedPayments: 0 }] })
  3. BOE returnstotalScore 82, tier "approve", fired: income-score
  4. Agent: Yes. Dana scored 82, which falls in the approve tier. The income-score rule added the points, and no missed payments took any off. The decision id is saved for review.

3. Author rules by conversation

In the console, describe a rule in plain language. The authoring assistant proposes it as a rule card. You accept or reject each one.

Add a rule: two or more missed payments takes 30 points off.

Proposed rule
missed-payments-penalty

Takes 30 points off when the applicant has two or more missed payments.

Authoring uses a language model. Set the model and key for your account under LLM settings in the console. BOE uses its default model when the account has no key.

4. Plain English readouts

Every saved version carries one sentence per rule. A reviewer reads the sentences and skips the syntax. The save completes first and the sentences follow.

Readouts for credit-score
RuleReadout
income-scoreAdds one point per thousand of income.
missed-payments-penaltyTakes 30 points off when the applicant has two or more missed payments.