metrics: list references both custom metrics you defined and Roark’s system metrics, all by slug.
nameis the slug config identity.displayName(optional) is the collector’s name as it appears in Roark, where spaces and capitals are allowed; it defaults toname. Set it to a collector’s exact existing name to bring one you created in the app under config (apply takes it over instead of creating a duplicate), for exampledisplayName: "Credit Card Apr"withname: credit-card-apr.modalityiscallorchatand is immutable once created (make a new collector to switch).- Metrics are referenced by their stable slug, not a UUID, and must be visible to the project and support the collector’s
modality. - Filters are condition groups: groups OR together, conditions within a group AND. An
AGENTcondition’skeyis a config-managed agent name (resolved on apply); every other type (CALL_SOURCE,CALL_PROPERTY,INTEGRATION) uses itskey/valueverbatim. Omitfiltersto score every matching conversation.
Per-collector metric settings
Some metrics take a setting that applies only in this collector, the same setting the app’s inline metric config sets. Write the metric as an object withmetric (its slug) and its setting, next to plain slugs:
- A metric takes at most one setting, and only the one listed for it. Anything else fails the apply with an error naming the metric and the setting it takes. A misspelled setting fails validation rather than being ignored.
- The file is the source of truth. A metric listed without a setting runs with its default, so a setting made in the app is replaced on the next apply that changes the collector. Keep the setting in the file.
- Tool and knowledge base scoping differ per environment (they reference ids), so they are set in the app or through the metric policies API (
metrics[].settings) instead.
Re-scoring past calls with the collector’s settings
Changing a setting applies to conversations scored afterwards. To re-score earlier calls with the collector’s settings, create a metric collection job with the collector’s id aspolicyId:
metrics defaults to all of the collector’s metrics. The collector’s filters are not applied: the calls you list are scored as given.
For the full field reference of every kind, see the Config DSL reference schema.