decision control
Nodes

Velocity

Aggregates a feature series for one entity over a time window.

The Velocity node answers "how many, or how much, did this subject do recently?". It reads an aggregate from the feature store; the decision never sees the raw events, only the number.

When to use it

  • Fraud and abuse checks: transactions per customer in 24 hours, failed logins in 30 minutes.
  • Limits over time: total amount sent this week.

How it works

  1. The entity expression is evaluated (a customer id, an account). It must be a text or a number; a missing one has nothing to aggregate.
  2. The feature store aggregates the observations of that entity in the series over the window (minutes, hours or days).
  3. The operation is one of count, sum, avg, min, max or distinct.
  4. The value and the number of observations behind it are written to variables.

Ports

PortTaken when
NextAlways, after the variables are written.

Configuration

FieldWhat it does
NameLabel shown on the canvas and in the trace.
SeriesThe feature series to read, for example transactions.
EntityThe subject to aggregate over.
WindowAn amount and a unit: minutes, hours or days.
Operationcount, sum, avg, min, max or distinct.
Store result inThe variable name for the value.

What it writes

Two variables: the value (vars.tx24h) and the observation count beside it (vars.tx24h_count). The value is null when there is nothing to aggregate.

In a real flow

The number of transactions of a customer in the last 24 hours is read. Too many raise an alert before the response is returned.

When it fails

  • The subject is an object or a list: VALIDATION_FAILED.
  • The feature store cannot answer: AGGREGATE_FAILED.
  • No series, no entity, a non-positive window or no output variable are errors in Checks.

Good to know

  • The store is fed by the recordObservation action or by posting to the ingestion endpoint. A decision can record its own events for next time.

On this page