NPS (revenue-weighted)
analyze_npsCalculate standard and revenue-weighted Net Promoter Score for your product. Identify detractors ranked by MRR-at-risk to surface unhappy high-value customers.
Instructions
NPS for the product: the standard −100…100 score AND revenue-weighted NPS (each respondent weighted by their account MRR), plus detractor accounts ranked by MRR-at-risk (highest first). Surfaces when your biggest customers are the unhappy ones even if the headline looks fine. Computed deterministically off survey responses inside window_days (default 90, valid 1–365); returns an empty result when none fall in the window. product_id optional (primary product when omitted). Quantify sentiment after get_product_brain, then dig into a detractor with get_customer_360.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | No | Product id, from whoami (optional; the org's primary product when omitted). | |
| window_days | No | Lookback window in days (optional; default 90, i.e. the last quarter). |