NULLBIT
NULLBIT
Blog
Author: ALFRED

Real-Time Decisioning: How It Works and How to Build It

Real-time decisioning explained: how a decision engine turns live events into actions, what data it needs, where it fits, and how to build one safely.

Real-Time Decisioning: How It Works and How to Build It

Real-Time Decisioning: How It Works and How to Build It

Hand-drawn decision system title card

Real-time decisioning is software that takes a live event, adds the relevant history, applies rules or a model, and picks an action while the interaction is still happening. A card payment is approved or declined, an offer is shown, a ticket is routed, a machine is stopped. The insight is not displayed for someone to read later. The decision is made and acted on. This guide explains how that works, what data and architecture it needs, where it pays off, and how a business can build it without creating a system nobody can control.

Nullbit
Build Decisions Into Your Software
Nullbit develops custom software and AI solutions to help businesses automate decisions and optimize processes in real time.
Explore Nullbit's solutions

TL;DR

  • Real-time analytics tells you what is happening now. Real-time decisioning decides what should happen now and triggers the action.
  • The core loop is signal, logic or model, action. Most failures come from stale data, fragmented identity and unclear authority, not from the model.
  • Speed requirements depend on the consequence of a late decision. Fraud checks may need tens of milliseconds; a next-best action can tolerate about a second.
  • For consequential decisions, keep business policy in versioned rules, log every decision, and give humans an override path.
  • Start with one decision and one measurable outcome, test in shadow mode, then go live with monitoring and rollback.

Table of Contents

What real-time decisioning means

As Confluent describes it, the core loop is signal, then logic or model, then action. A click produces a recommendation. A sensor event causes a shutdown. A transaction is approved or declined. Three parts matter in that definition:

  1. A live event. Something just happened, and the decision has a deadline.
  2. Context. The event alone is rarely enough. The engine combines it with history: the customer’s recent behavior, the account’s limits, the machine’s last readings.
  3. An executed action. The output is a decision that flows into a system, through an API or workflow, not a chart.

The same source frames the broader shift as moving from systems that report on the past to systems that influence the future. The useful question is not whether your data is fresh. It is what your organization can do because it is fresh.

Analytics, decisioning and fast batch are different things

These get mixed up constantly, and the difference drives cost and design.

Real-time analytics Real-time decisioning Fast batch
Question answered What is happening now? What should happen now? What did we compute earlier?
Consumer A person or dashboard A system, sometimes with human review A system reading stored results
Output Metric, chart, alert Executed or recommended action Pre-computed score or segment
Weakness Needs someone to act Needs governance and reliable data Cannot react to what just changed

RudderStack’s explanation draws the line precisely: in true real-time decisioning, the decision is computed during the interaction from live state, not merely fetched quickly from a cache of earlier results. If your “real-time” score was calculated last night, you have a fast lookup, which may be perfectly fine, but it is not the same thing.

Where businesses use it

The common use cases, according to Confluent’s overview of decision engines, are:

  • Fraud and risk intervention
  • Eligibility checks and transaction approval
  • Personalized offers and next-best actions
  • Service routing and recommendations
  • Dynamic pricing
  • Operational responses to machine or supply-chain events

The same source stresses that the value comes from acting while the opportunity or risk still exists, not from speed alone. A decision made in 5 milliseconds that nobody can act on is worth nothing. A decision made in 800 milliseconds that saves a sale is worth a lot.

A worked example: service routing

Imagine a support team that routes every incoming chat to the next free agent. A decisioning layer instead looks at the customer’s plan, open tickets, the page they were on and the sentiment of their first message. It then selects among permitted actions: answer with an automated flow, route to a billing specialist, escalate to a senior agent, or offer a callback. Each action is allowed by policy, and each decision is logged. The first-response gains come from matching the case to the right handler at the moment it arrives. Our own write-up on AI for customer service covers the response-time side in more depth.

A worked example: recruiting and retention signals

Decisioning is not limited to payments and ads. One real-estate software platform, 3 Data Pulse, ranks prospective agents by fit, drafts personalized outreach and raises retention-risk alerts. The pattern is the same as in a payments engine: signals come in, logic scores them, and a specific next step is recommended to a person. The difference is that the deadline is hours, not milliseconds, which shows how much the “real-time” in your project depends on the business consequence.

How fast does it need to be?

How fast does it need to be? — overview diagram

Not as fast as vendors often imply. RudderStack reports illustrative latency targets: under 100 ms for fraud detection, under 200 ms for eligibility, under 500 ms for in-session personalization and under 1 second for next-best action. The source is explicit that these are not universal requirements.

A better method is to start from consequence, not from a latency number. Industrial guidance published by NIST on cyber-physical systems notes that processes interacting with the physical world are subject to the time constraints of that process. Before you pick infrastructure, write down:

  • What happens if the output is late, wrong or absent
  • The maximum end-to-end deadline, from event to executed action
  • What the system does when it is offline or cannot decide
  • Which component is authorized to change state
  • What evidence you need to reconstruct each material decision

A late dashboard and a late protective control fail in very different ways. If a delayed answer is merely inconvenient, a simple design is enough. If it is dangerous or expensive, you are designing for fail-safe behavior first and speed second.

The architecture of a decision engine

A decision engine typically combines business rules with predictive analytics or machine learning, evaluates the incoming context, chooses among permitted actions and returns the result through an API or workflow. SAS’s documentation for its decisioning software lists the capabilities production teams look for: design, testing, automation, governance, auditability, explainability and human approval or override.

The common building blocks are:

  1. Event streaming. Clicks, payments, device readings and system events arrive as a continuous flow.
  2. State or feature layer. Current and historical attributes (balance, last purchase, recent error rate) available with low latency.
  3. Decision service. Rules and models evaluated against the event and its context.
  4. Action connectors. APIs into the CRM, payment gateway, messaging tool, ticketing system or machine controller.
  5. Observability. Latency, error rates, decision distributions and drift.
  6. Feedback loop. Outcomes flow back so rules and models can be corrected.

Most of the engineering effort sits in items 1, 2 and 4, the plumbing. The model is often the smallest part of the system.

The data foundation most projects underestimate

The minimum dependable foundation, per RudderStack’s data requirements, is fresh event data, a stable resolved identity, governed feature delivery and deterministic routing. Without these, even a good model produces bad decisions:

  • Stale state. The engine offers a discount to someone who bought ten seconds ago.
  • Fragmented profiles. The same customer appears as three people, so history is split.
  • Schema drift. An upstream team renames a field and the feature silently becomes empty.
  • Consent violations. Data the customer did not agree to be used ends up in a decision.
  • Contradictory routing. Two rules fire and send the customer in opposite directions.

We have seen the same shape in operational work: monitoring is only useful when the signal is trustworthy. Our case study on catching a failing server before it goes down is a small example of turning a continuous signal into an early action, and the forecasting model built from a dozen disconnected data sources shows how much of the work is unifying data before any model runs.

Rules, models and human oversight

There is a temptation to hand everything to a machine-learning model. For consequential decisions, that is often the wrong call. The European Data Protection Supervisor’s TechDispatch on human oversight notes that interpretable-by-design models such as rules and decision trees make oversight easier. Explanation techniques like SHAP, LIME and counterfactuals can help with complex models, but they have limits, and the EDPS warns that explanations can even encourage overreliance on the system.

This is European guidance, and legal duties differ by country and sector. If your decisions affect people’s credit, employment, housing, insurance or access to services, ask your legal counsel and compliance team which rules apply in the jurisdictions you operate in. Our overview of mapping AI governance to NIST, ISO and the EU AI Act is a practical starting point for that conversation.

A robust production design usually includes:

  • Business policy kept in versioned rules, with models scoring inside those boundaries
  • Tests against recorded production cases before every release
  • Logs of inputs, rule and model versions, outputs and overrides
  • A defined human review path for exceptions
  • A manual fallback when the engine is unavailable
  • Where a decision affects an individual, an appeal or override route

How to build it: a practical sequence

The delivery sequence that holds up in practice, in line with the SAS guidance on operationalizing decisions, looks like this:

  1. Define the decision and the outcome. One decision, one metric: fewer chargebacks, faster first response, higher conversion on a specific offer.
  2. Map event sources and permissions. Where does each signal originate, who owns it, and what are you allowed to use?
  3. Set the deadline and the failure behavior. What counts as too slow, and what happens then?
  4. Build rules, models and action integrations. Start with rules you can explain; add a model where it earns its place.
  5. Test on historical and shadow traffic. Run the engine beside the live process and compare, without acting.
  6. Deploy with versioning, monitoring and rollback. Treat decision logic like code.
  7. Measure lift and drift. Validate against a controlled baseline instead of assuming improvement.

The inputs are broader than training data. You also need business policies, the list of candidate actions, identity and consent rules, latency and availability targets, escalation thresholds, test cases, named owners and success metrics. Teams that skip this list tend to discover the gaps in production.

Build, buy or combine

Packaged decisioning platforms are strong when your decisions match their built-in patterns. A custom build makes sense when your event sources, policies or downstream systems are unusual, when decisioning has to live inside a product you already operate, or when you need to own the logic. Many businesses do both: a general-purpose component for the commodity parts, custom services for the decisions that are specific to the business.

Our perspective

We build custom software and AI systems, and we are wary of the phrase “real-time” used as a goal in itself. The projects that work start with a decision somebody already makes badly, slowly or inconsistently, and a number that proves it.

Two convictions shape how we approach it. First, AI belongs inside the core system, not bolted on at the end. A decision engine whose model sits outside the workflow becomes a report again. Second, the unglamorous layers decide success: clean event data, a single view of the entity being decided on, explicit rules that the business can read, and logs that let you reconstruct why a decision was made.

We also advise starting small. A proof of concept on one decision, run in shadow mode against live traffic, tells you more in a few weeks than any architecture diagram. If the lift is real, you scale. If it is not, you have spent little and learned which assumption was wrong. Where an AI agent needs to call your systems safely, we often expose them through MCP development, so that the agent acts through controlled, auditable tools rather than direct access.

— Matija

Working with Nullbit on a decisioning project

We can take this from first decision to production. A proof-of-concept is the usual entry point: proof-of-concept development starts from 5,000 EUR one-off. If the first step is a narrower automation, smaller, targeted automations start from 3,000 EUR one-off. For a full build, our cooperation models are an Agile Engagement (time and materials) at 5,000 to 40,000 EUR per month, or a Fixed-Price Project (turnkey) at 5,000 to 60,000 EUR one-off. You can see how we have delivered similar work in our portfolio, or talk to us about the decision you want to automate.

FAQ

What is real-time decisioning in simple terms?

It is software choosing and triggering the best action at the moment an event happens, using live data plus history. A payment is approved, a customer sees a tailored offer, or a support case is routed to the right person. The decision is made inside the interaction, not in a later report.

What is a real-time decision engine?

It is the component that evaluates an incoming event against business rules, analytics or machine-learning models, chooses among permitted actions and returns the result through an API or workflow. Around it you usually need event streaming, a state layer, connectors to execute actions, monitoring and a feedback loop.

Is automated decision-making the same as real-time decisioning?

Not exactly. Automated decision-making means software decides or recommends with limited or no human intervention at that moment. Real-time decisioning adds the deadline: the decision is computed during the interaction from live state. A nightly credit-scoring run is automated but not real-time.

Do we need AI for real-time decision support?

Not always. Well-written rules handle many operational decisions and are easier to explain and audit. Machine learning earns its place where patterns are too complex for hand-written rules, such as fraud signals or next-best-action ranking. Most strong systems combine both.

How do we know it is working?

Compare against a controlled baseline, for example a group of cases handled the old way, and track the outcome metric you defined at the start. Also monitor latency, error rates and drift. Do not assume the lift: measure it.

Sources

Tags
real-time decisioning
Stay ahead of the competition

Exclusive insights that drive change.

Get access to proven methodologies for digital growth, AI tool implementation, and AI product development.

  • Weekly digital strategy analyses
  • Advanced insights into AI trends and technology solutions

Your privacy is a priority. You can unsubscribe at any time.