Skip to content
Tutorials Center
My learning

Topics

Lesson 22 of 37 ยท Service Hub

Customer Feedback: NPS, CSAT and CES Surveys

Learn the three standard customer feedback surveys HubSpot offers, how responses attach to contacts, and how to calculate NPS, CSAT and CES with runnable Python examples.

You cannot improve what you only guess at. Service Hub includes a customer feedback tool for the three most common survey types, and it stores each response on the contact record so you can segment and automate follow-ups. This lesson explains the surveys and the arithmetic behind the scores, which is the same wherever you run them.

HubSpot is not runnable on this site. Python snippets are stand-ins that compute scores from sample numbers. Survey tools are included in some plans only, and the survey property names in your portal can differ.

The three survey types

Survey Question Scale Measures
NPS (Net Promoter Score) "How likely are you to recommend us?" 0 to 10 Loyalty to the company
CSAT (Customer Satisfaction) "How satisfied were you with ...?" usually 1 to 5 Satisfaction with an interaction
CES (Customer Effort Score) "How easy was it to ...?" usually 1 to 7 Effort needed to get help

You can also create a custom survey with your own questions. Surveys are sent by email, by link, as a pop-up on a web page, or inside chat. A common setup sends a CSAT survey after a ticket closes, an NPS survey every six months to active customers, and a CES survey after onboarding or after using the help center.

How the scores work

  • NPS: promoters score 9 or 10, passives 7 or 8, detractors 0 to 6. NPS = % promoters minus % detractors, a number from -100 to +100.
  • CSAT: usually the percentage of responses that are "satisfied" (4 or 5 on a five-point scale).
  • CES: the average rating (higher means easier on a 1-7 agree scale), or sometimes the share of 5 to 7.
Python Calculate NPS

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Passives do not count in the formula, but they count in the denominator.

Python CSAT and CES from raw ratings

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Feedback flows into the CRM

Each response creates a feedback submission record associated with the contact (and, for ticket surveys, the ticket). That lets you:

  • filter contacts by survey answer (for example "NPS 0 to 6 in the last 30 days"),
  • trigger a workflow when a detractor answers: create a task for the account owner, send a heartfelt apology, or open a ticket,
  • trigger a different workflow for promoters: ask for a review or a case study,
  • report on trends by segment, product line, or agent.

Closing the loop

Send After ticket, or on a schedule
Respond Score and comment
Alert Workflow on low scores
Act and follow up Fix, then tell the customer

A survey without follow-up hurts trust

1 / 2

Routing follow-ups

Python Decide the follow-up action for each response

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

In HubSpot this is an if/then branch on the survey property inside a workflow; see branching, delays and enrollment.

Survey design tips

  • Ask once, ask short: one rating plus one optional comment.
  • Send close to the event: CSAT right after the ticket closes, not a week later.
  • Avoid survey fatigue with a suppression rule (for instance, no contact surveyed more than once per 30 days).
  • Segment results; a single global NPS hides which product or plan is struggling.
  • Watch sample size: with 12 responses a swing of a few points is noise.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. In NPS, which scores are detractors?

    Detractors are 0 to 6, passives 7 to 8 and promoters 9 to 10.
  2. 2. 10 promoters, 5 passives and 5 detractors give an NPS of...

    (10 - 5) / 20 = 25%, so NPS is 25.
  3. 3. Which survey best measures how hard it was to get help?

    Customer Effort Score asks how easy the interaction was.
  4. 4. What is a good automatic reaction to a detractor response?

    Closing the loop with a task shows you care and can save the relationship.

Summary

  • HubSpot offers NPS, CSAT, CES and custom surveys; responses attach to contacts and tickets.
  • Know the formulas: NPS is promoters minus detractors, CSAT is the share of satisfied answers, CES is an effort average.
  • Workflows turn answers into follow-up tasks and requests.
  • Keep surveys short, timely and segmented.

Next: Conversations Inbox, Live Chat and Chatbots