SmartFACT Book a Demo

For Developers

SmartFACT exposes its compilation and evaluation capabilities via REST APIs. Bring your own domain, define your field catalog, and let the platform compile and verify rules for your application.

Compile a Rule

Send a natural language rule with a catalog profile. Get back a typed AST, lowered outputs, and a confidence score.

// POST /api/v1/compile
{
  "intent": "Released drawings with at least one PDF original",
  "profile": "reasoning"
}

// Response
{
  "confidence": 0.97,
  "restatement": "The document status is 'released' AND at least one attached file has application type 'PDF'",
  "compiled": { ... },
  "targets": {
    "filter": "DocumentStatus eq 'FR' and to_Attachment/any(d: d/MimeType eq 'PDF')",
    "evaluation": { ... }
  }
}

Architecture

NAIL Compiler

Natural language to intermediate logic. Our proprietary compilation engine maps domain-specific intent to a typed abstract syntax tree with field catalog validation and confidence scoring.

CALIBRE Evaluator

Pure boolean evaluation engine. Takes compiled intermediate logic and a data snapshot, returns true/false. Stateless, deterministic, zero AI overhead at evaluation time. Handles quantifiers, collection traversal, and vacuous truth.

Multi-Target Lowering

The compiled AST is the single source of truth. Target-specific lowerers produce evaluation logic, query filters, and structured condition outputs from the same tree.

Integration Patterns

Compile Once, Evaluate Many

Rules are compiled at authoring time and stored as lightweight artefacts. At runtime, the evaluator processes them without any AI calls. Evaluation is fast, cheap, and deterministic.

Bring Your Own Catalog

Define your domain's field catalog as a versioned profile. The compiler uses it to resolve natural language references, validate field paths, and produce correctly-typed outputs for your target system.

Native Evaluation

For performance-critical paths, compiled rules can be evaluated natively inside your target system. ERP function modules, CMS plugins, or any runtime that supports the evaluation format.

Encrypted Transport

Compiled rule artefacts are encrypted between compilation and evaluation. The IL is opaque to transit layers. Only the evaluator at the endpoint can decrypt and execute the logic.

Build With SmartFACT

We're working with development teams to bring SmartFACT compilation to new platforms and domains. Tell us what you're building.