01
📊 Metric Policies
Automate metric collection across your calls with conditions-based rules. Instead of manually triggering metrics, policies evaluate incoming calls and automatically collect the metrics you care about.
Key Features:
- Conditions-based targeting — Filter by agent, call source (Vapi, Retell, etc.), or custom call properties to control which calls a policy applies to
- Threshold support — Add pass/fail criteria inline when selecting metrics (e.g.,
Customer Satisfaction >= 7,Response Time < 1000ms) - System + User policies — Roark auto-creates system policies for core metrics; you create your own for custom evaluations
- Full SDK support — Create, update, list, and delete policies programmatically via the Node.js SDK
Use Cases:
- Run compliance checks on every production call automatically
- Collect different metrics for different agents or call sources
- Set quality thresholds that flag underperforming calls without manual review