# NPS

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F079VjAOkeZ3LSbCL7uxn%2FScreenshot%202024-05-30%20at%2015.52.02.png?alt=media&#x26;token=51a4feab-87f8-4f1f-8579-8f3349e561b0" alt="" width="281"><figcaption><p>The NPS template bot.</p></figcaption></figure>

## Template overview &#x20;

Use this template to gather valuable feedback about your business using the NPS score system. Users will be asked about their satisfaction with your services, their likelihood to recommend you to others, and suggestions for improvement. Based on their ratings, a Net Promoter Score (NPS) will be calculated.

{% hint style="info" %}
Learn more about the NPS system [here](https://www.netpromoter.com/know/).
{% endhint %}

Keep reading to learn how you can customize this template for yourself!

## How to customize this template&#x20;

{% hint style="info" %}
Make sure to always [update the NLP](https://docs.chatlayer.ai/understanding-users/natural-language-processing-nlp#updating-the-nlp) after loading a template!
{% endhint %}

To save your users' ratings and feedback, this chatbot uses [Tables](https://docs.chatlayer.ai/navigation/tables) to store the NPS ratings.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FRr6pebM4xk8YO1SpPliS%2FScreenshot%202024-05-30%20at%2015.57.04.png?alt=media&#x26;token=91d50373-9e76-4b09-8dd2-f9b7712d73a7" alt=""><figcaption><p>The Table to store NPS ratings.</p></figcaption></figure>

### Flow: NPS

#### Block: Check rating

This block checks the rating a user gives, after which it is stored as the variable `{nps}`. If they give a rating of 9 or higher, the user will be classified as a 'promoter' in the variable {`respondent}` and redirected to the *Promoter response* block asking them why they like your services (response stored as the `{positive_feedback}` variable.&#x20;

If they gave a rating from 7 to 8, they will be classified as 'passive'; if they gave a rating lower than 7, they are classified as 'detractor'. Both passives and detractors will be redirected to the *Improvement Feedback* block. There the bot asks them what can improved (response stored as `{negative_feedback}`).

#### Block: Add record to Table

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FHLUTNtgVcLc6YEwWgsfc%2FScreenshot%202024-05-30%20at%2016.00.26.png?alt=media&#x26;token=af1b4aaf-2973-497e-868b-aabc116778d3" alt="" width="323"><figcaption><p>Add record to Table block.</p></figcaption></figure>

This Action block adds the gathered values to the ratings table.

***

That's it, now your bot can easily collect NPS ratings and feedback from your users!&#x20;

{% hint style="success" %}
Once you have collected ratings from enough users you can use these to calculate your business' overall Net Promoter Score. You can learn how to calculate this score [here](https://customergauge.com/blog/how-to-calculate-the-net-promoter-score).
{% endhint %}
