Documentation

Net Promoter Score Question

Article

Net Promoter Score Question

When and Why to Use

Use this to capture Net Promoter Score (NPS), which measures the likelihood of a respondent to recommend a product, service, or brand. Ideal for:

  • Customer satisfaction benchmarking

  • Brand tracking

  • Loyalty measurement

This is a special case of a rating scale with specific scoring thresholds for Promoters, Passives, and Detractors.

Chat Experience
  • Slider or button input centered with numeric scale

  • Optional labels help anchor the ends and midpoint

  • Optional “Don’t know” option appears below scale

See rating question for examples of the UX.

Traditional Experience
  • Layout shows more of the scale horizontally

  • Works with keyboard/remote navigation

  • Star and button styles are supported for more visual UIs

See rating question for examples of the UX.

Configuration Options
OptionTypeRequiredDefaultDescription
questionstringyes-The question shown to the respondent
number_of_pointsintno11Number of scale points (typically 0–10)
first_pointintno0First value on the scale
stylestringnoslider“slider”, “button”, or “star”
labelsDict[int, str]no{0: "Not at all likely", 10: "Extremely likely"}Labels for points on the scale
imageMediaItemno-Optional image above the question
defaultintnorandomValue used in test mode
dont_know_optionstrno-Text label for “Don’t know” button
recodesDict[str, str]no-Maps raw responses to grouped values
custom_validator`Callable[[int], strNone]`no-
min_promoter_scoreintno9Minimum score considered a Promoter
max_detractor_scoreintno6Maximum score considered a Detractor
tagss.tag()no-Used for dynamic substitution and reporting
Example Code

Basic NPS question:

s.net_promoter_score_question( "How likely are you to recommend this product to a friend?", number_of_points=11, labels={ 0: "Not at all likely", 10: "Extremely likely" } )

With recodes:

s.net_promoter_score_question( "How much do you like this brand?", number_of_points=5, recodes={ "1": "Dislike", "2": "Dislike", "3": "Neutral", "4": "Like", "5": "Like" } )

With “Don’t know” option:

s.net_promoter_score_question( "How likely are you to recommend {brand}?", number_of_points=11, dont_know_option="Not sure", brand="Tesla" )
Notes
  • NPS is calculated by subtracting the % of Detractors (score = min_promoter_score)

  • dont_know_option responses are recorded as -999

  • Use recodes for top-box / bottom-box analysis or segmentation

  • custom_validator can block test inputs or enforce attention