Skip to main content
The behaviors array in BatchConfig accepts two types of entries — preset reference strings and full BehaviorDef objects — and you can mix both freely.

Listing available presets

Call GET /api/velma-2-batch/list-presets or GET /api/velma-2-streaming/list-presets to retrieve the behavior preset catalog. Both endpoints require the X-API-Key header and return the same response format.
The identifier is what you use in a preset reference string. The detailed_description is the exact detection language Velma applies when you reference a preset — use it as a starting point when adapting a preset into a custom behavior.

Using preset references

Include a preset by adding a "preset:<identifier>" string to the behaviors array. Velma expands it into the full behavior definition before processing.

Including BehaviorDef objects directly

Put full BehaviorDef objects in the behaviors array for precise control. All four required fields must be present. To define a custom behavior: supply all four fields with a UUID you generate. See Custom behaviors.

Detecting a behavior more than once

By default, a behavior is detected at most once per speaker. trigger_limit on a BehaviorDef raises that cap, on both Velma Triage (batch) and Velma Triage (streaming).
A preset reference string cannot carry trigger_limit. To set it on a preset, copy the preset’s detailed_description into a custom BehaviorDef. Each speaker is capped independently, and each detection carries its own evidence clips.
  • Streaming: each detection arrives as its own behavior_detection event. Detections are not withdrawn or re-emitted.
  • Batch: behaviors holds one entry per occurrence, so a speaker can have several entries with the same behavior_uuid. Each entry adds four fields.
Excerpt
To count how often a speaker showed a behavior, set trigger_limit to null and read occurrence_count. With a numeric limit, truncated: true means the count stopped at the limit.

Mixing presets and custom behaviors

Preset references and BehaviorDef objects can coexist in the same behaviors array. If a custom BehaviorDef shares a UUID with a preset entry, the custom definition takes precedence.

Behavior fields reference