Let your customers write business rules
in plain language

SmartFact compiles natural language into deterministic logic your application can evaluate. No AI at runtime. Full audit trail. Embeddable in your product.

Get in touch Learn more

Author in natural language

Your customers describe rules in their own words. The compiler translates intent into verified, executable logic with a confidence score.

Evaluate deterministically

Compiled rules are pure JSON Logic. Evaluate locally in any language, or call our API. No AI involved at runtime — fast, predictable, auditable.

🔐

Full audit trail

Every compilation, verification, and deployment is recorded. Version history, diff views, and exportable audit reports for compliance.

How it works

1

Define your field catalog

Tell SmartFact what data your customers' rules can reference — field names, types, descriptions. This is the vocabulary for rule authoring.

2

Embed the authoring tool

Drop an iframe or React component into your product. Your customers write rules, review the AI's interpretation, run test fixtures, and deploy — all within your UI.

3

Evaluate at decision time

When your application needs to check a rule, pass the data snapshot and get a boolean result. Evaluate locally with any JSON Logic library, or call our API.

// Your customer writes:
"If the ticket has been open for more than 4 hours and no agent has responded, escalate to the team lead"
// SmartFact compiles to JSON Logic:
{
  "and": [
    { ">": [{ "var": "ticket.open_hours" }, 4] },
    { "===": [{ "var": "ticket.assigned_agent_count" }, 0] }
  ]
}
// You evaluate in your application:
const result = jsonLogic.apply(rule, ticketData);
// result: true → escalate

Simple REST API

Three endpoints cover the full lifecycle.

POST /v1/compile

Compile

Send natural language + catalog ID. Get back JSON Logic, confidence score, and a plain-language restatement.

POST /v1/evaluate

Evaluate

Send a rule ID + data snapshot. Get a deterministic boolean result in under 5ms. Or evaluate locally — the compiled output is standard JSON Logic.

POST /v1/rules/{id}/verify

Verify

Auto-generate test fixtures from the compiled rule and field catalog. Run them, review results, catch mismatches before deployment.

Embed in minutes

Two lines to add rule authoring to your product.

iframe

<iframe
  src="https://saas.smartfact.ai/embed?token={embed_token}"
  width="100%"
  height="600"
/>

React SDK

import { SmartFactAuthor } from '@smartfact/react';

<SmartFactAuthor
  token={embedToken}
  onRuleDeployed={(rule) => handleDeploy(rule)}
  theme={{ accentColor: '#2E75B6' }}
/>

Built for multi-tenant SaaS

Each of your customers gets isolated rules, audit history, and data. You manage them all from a single partner console.

Your platform
Partner (your company)
Field Catalogs — shared across tenants
Tenant: Acme Corp — 12 rules, 3 users
Tenant: Globex Inc — 8 rules, 5 users
Tenant: Initech — 24 rules, 1 user

Ready to add rule authoring to your product?

We're onboarding partners now. Tell us about your use case and we'll set you up.

Get in touch