Skip to main content
A kind: dashboard declares a dashboard: its window, the filters over every widget, and its widgets top to bottom. A widget is an analytics query plus a name, a chart type and a size, so a query you tried over the API drops straight into a widget.

Fields

Widgets

Filters

A filter is { type, property, operator, value }, the same shape as an analytics filter; operator defaults to EQUALS. A CALL_PROPERTY filter also takes IS_SET or IS_NOT_SET with no value: conversations where the property is set (whatever the value, an empty string included) or missing (never sent, sent as null, or removed).

Filter by another metric

A METRIC_VALUE filter keeps the conversations where another metric came out a certain way, such as refund accuracy only on calls where the task was completed. It works on the dashboard, a widget, a measure and a comparison group. property is that metric’s slug, resolved the same way as a measure’s metric, optionally followed by .AGENT or .CUSTOMER to read one side of a per-participant metric. operator and value are required, and depend on the metric: A slug that matches no metric, or a value the metric can’t compare, fails that dashboard’s apply and leaves it as it was. For how the filter matches, see Filter by another metric.

References

  • Metrics resolve by slug: a kind: metric in the same config (applied first), or any metric the project can see, system metrics included.
  • Agents in an agent filter can be written by their config name; Roark resolves them to ids, the same way other kinds reference agents.
Every widget is checked against what its metric can answer before anything is written. A widget asking for AVG of a classification, or naming a metric that doesn’t exist, fails that dashboard’s apply with the reason, and the dashboard is left exactly as it was.

In Roark

A dashboard created by config shows Managed by config. Its title and widgets are read-only in Roark and over the API (edits return 409): change them in your config and re-apply. Anyone viewing it can still pick a time range and filter it, and an apply only overwrites those when the config declares timeRange or filters. Duplicating a managed dashboard gives you an editable copy. A dashboard made in Roark with the same title as a kind: dashboard (its displayName, or name) is adopted on the first apply rather than duplicated, as long as exactly one unmanaged dashboard has that title.

Removing a dashboard

Deleting a dashboard from your config (with prune on, the default) deletes the dashboard and its widgets.