Define, track, and automate your Key Performance Indicators with our agentic platform. Turn complex metrics into simple, actionable API calls and deliver continuous performance improvement.
import { kpis } from 'kpis.do';
// Track a new data point for a pre-defined KPI
const result = await kpis.track({
name: 'monthly-sales-growth',
value: 12.5, // Current month's growth percentage
dimensions: {
region: 'North America',
product: 'Enterprise Plan'
}
});
// Check the status and any triggered alerts
console.log(result.status); // 'tracked'
console.log(result.alerts); // [{...}] if any thresholds were crossed