---
updatedAt: 2026-10-20T20:23:50.000Z
agentTools:
  projectIndex: https://developer.spreedly.com/llms.txt
---

# Custom velocity checks

Creating and managing custom velocity checks using Freeform Conditions

<Callout icon="far fa-circle-info" theme="info">
  Please note that this feature has been turned off and is no longer supported in Composer.
</Callout>

Start by going to the step palette and adding a decision

<Image src="https://files.readme.io/90d9f0e119b78091538d5c5b76b9ee1e27f9ea8e5992b73aae1e459b4b9cfaf5-Screenshot_2026-05-07_at_9.36.11_AM.png" align="center" width="400px" />

Then Click the Decision to start configuring

<Image src="https://files.readme.io/3628f858a4ce776d8df5311e1f0c32f6fd6278f9f4fb03665e0ed9dada79c179-Screenshot_2026-05-07_at_9.38.49_AM.png" align="center" />

Then Add a Path, for example "High Purchase Velocity" and click to add your first condition

<Image src="https://files.readme.io/bd342398a2c0330b08c2098381fc2cb6a8b72d08d7ee0f44a65b210553e81d0b-Screenshot_2026-05-07_at_9.41.12_AM.png" align="center" width="500px" />

Select "Free Form" and start entering a condition, you will be guided through the process of writing your condition, but look below to see some prebuilt examples with explanations:

<Image src="https://files.readme.io/e102d3a20d5beed2ee9b1699ca50f1e3e93c4d9d97ca43fbe4d12c06258ab116-Screenshot_2026-05-07_at_9.42.20_AM.png" align="center" />

Here are two example velocity formulas:

More than 5 "PAYMENT" Checkpoints in the last week for this Customer.

`CUSTOMER.checkpoints("PAYMENT").window("P1W").count().isGreaterThan(5)`

Less than 5 "FAILED\_LOGIN" events in in the last hour for this Customer.

`CUSTOMER.events("FAILED_LOGIN").window("PT1H").count().isLessThan(5)`

These functions are like building blocks, and each part can be customized in many ways. Here are some examples of what each part means.

* At the start of each function, choose what you want to consider `CUSTOMER`, `DEVICE` or `SESSION`
* Choose whether you want to count `checkpoints` or `events` for your velocity metrics. Events are more flexible, but are sent using `Dodgeball.event` using the Server SDK. Checkpoints are sent by using `Dodgeball.checkpoint`from the Server SDK. Each is referenced by name.
* Choose your `window`(how far your want to look back), the text inside must be an ISO 8601 Duration
* `count()` tells Dodgeball to count up the number of checkpoints/events within the window, this is an important part of velocity checks.
* The final step is your comparison function. We support a number of comparisons, which are all documented in the editor. For example`isGreaterThan` `isGreaterThanOrEqualTo` `isLessThan`... etcetera.

Once you have the condition defined, click "Add"

<Image src="https://files.readme.io/04e16d3f142fbb48b5adc46d033c985b52adcaf8d7cf35dc9a19eefc5bcaf3d8-Screenshot_2026-05-07_at_9.45.53_AM.png" align="center" width="500px" />

Then "Confirm"

<Image src="https://files.readme.io/1064a417c7c60cef9b05c223612ae986d61a1208a3dc347bcb4a7a3717c1b7f8-Screenshot_2026-05-07_at_9.46.30_AM.png" align="center" width="500px" />

Then Save

<Image src="https://files.readme.io/5061a4ab5e2635a0bf4c100a6183cecd54aebd4432eeb2a10d1f41fced618c17-Screenshot_2026-05-07_at_9.46.38_AM.png" align="center" width="500px" />

At which point, your checkpoint will be ready to go, splitting traffic into your desired branch based on velocity!

<Image src="https://files.readme.io/76e26b32cc859249155603419c63e89fd15f5de9ffd60425155f2f1309174d65-Screenshot_2026-05-07_at_9.46.43_AM.png" align="center" width="400px" />

You can then add additional logic or make new paths with different conditions as desired.