01. The Five Components
- Rules layer — the deterministic engine handling the documented happy path. Fully predictable, cheapest to run, and the first thing to build.
- Judgment layer — the AI component applied to classification and interpretation for cases the rules layer can't resolve on its own.
- Integration layer — connections into systems of record through documented APIs and event streams. The largest engineering surface in most builds.
- Orchestration — routes each case to the right path, manages retries, and enforces time and spend budgets.
- Verification — structured logging with deterministic replay, plus dashboards reporting accuracy and exception rates.
The order matters. Teams that start with the judgment layer before the integration layer is solid end up rebuilding it once real API constraints, rate limits, partial failures, surface. Build the boring parts first.
02. How a Case Actually Flows
The orchestration layer is what actually enforces this, not the rules engine and not the judgment layer individually. It's worth building as its own component even in a first project, because the alternative is routing logic scattered across both layers, which becomes very difficult to reason about once a second workflow shares the same infrastructure.
03. Build vs. Buy Considerations
- Keep an existing rules engine or RPA platform if it's stable, it's the deterministic core the judgment layer builds on top of, not something to replace.
- Build the judgment layer custom when the exception patterns are specific to your business, generic classification tools rarely match the accuracy of one evaluated against your own case history.
- Buy integration connectors where a mature one exists for your systems, and build custom only for internal or unusual APIs.
- Always build verification and replay in-house, it needs to match your specific audit and compliance requirements, which off-the-shelf tooling rarely covers completely.
04. Where Architectures Go Wrong
- No dedicated orchestration layer, routing logic scattered across the rules and judgment components, becoming unmaintainable past the first workflow.
- Verification bolted on after launch instead of designed in from the start, making incident investigation slow when something goes wrong.
- The judgment layer sized for the average case instead of the hardest realistic one, causing it to silently degrade as exception variety grows over time.
See our AI automation guide for how these five components fit into the full intake-to-verify pipeline.
05. Frequently Asked
Do I need a separate orchestration layer, or can the rules engine handle routing?
For a single simple workflow, the rules engine can handle its own routing. Once you have more than one workflow, or a workflow with several exception categories that need different handling, a dedicated orchestration layer keeps routing logic out of the rules engine and reusable across workflows.
Should the judgment layer call the same model for every case?
No. Route high-confidence, well-understood classifications to a smaller, cheaper model, and reserve stronger models for genuinely ambiguous cases. This is a cost decision, not an accuracy one, both tiers should meet the same evaluation bar.
What's the most commonly missing piece in a first build?
Deterministic replay. Teams build logging that captures what happened but not enough structure to reconstruct exactly why a case was routed the way it was. That gap is invisible until the first dispute over a wrong classification, at which point it's expensive to retrofit.
Cloudz Computing architects automation systems around verification and replay from day one, not as a retrofit after the first incident.
Explore the AI Automation solution →
Request a private consultation