> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/chatlayer-documentation-pt-br/comece-rapido/bot-templates/nps.md).

# NPS

O modelo Net Promoter Score® coleta feedback dos seus clientes e o salva em uma Tabela.

<figure><img src="https://181262846-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&amp;token=51a4feab-87f8-4f1f-8579-8f3349e561b0" alt="" width="281"><figcaption><p>O bot de modelo de NPS.</p></figcaption></figure>

## Visão geral do modelo

Use este modelo para coletar feedback valioso sobre o seu negócio usando o sistema de pontuação NPS. Os usuários serão questionados sobre a satisfação com seus serviços, a probabilidade de recomendarem você a outras pessoas e sugestões de melhoria. Com base nas avaliações deles, será calculado um Net Promoter Score (NPS).

{% hint style="info" %}
Saiba mais sobre o sistema NPS [aqui](https://www.netpromoter.com/know/).
{% endhint %}

Continue lendo para aprender como você pode personalizar este modelo para você!

## Como personalizar este modelo

{% hint style="info" %}
Certifique-se sempre de [atualizar o NLP](https://docs.chatlayer.ai/understanding-users/natural-language-processing-nlp#updating-the-nlp) após carregar um modelo!
{% endhint %}

Para salvar as avaliações e o feedback dos seus usuários, este chatbot usa [Tabelas](/chatlayer-documentation-pt-br/navegacao/tables.md) para armazenar as avaliações NPS.

<figure><img src="https://181262846-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&amp;token=91d50373-9e76-4b09-8dd2-f9b7712d73a7" alt=""><figcaption><p>A tabela para armazenar as avaliações NPS.</p></figcaption></figure>

### Fluxo: NPS

#### Bloco: Verificar avaliação

Este bloco verifica a avaliação que um usuário dá; depois disso, ela é armazenada como a variável `{nps}`. Se eles derem uma avaliação de 9 ou mais, o usuário será classificado como um 'promotor' na variável {`respondent}` e redirecionado para o *Resposta do promotor* bloco, perguntando por que eles gostam dos seus serviços (resposta armazenada como o `{positive_feedback}` variável.

Se eles derem uma avaliação de 7 a 8, serão classificados como 'passivos'; se derem uma avaliação menor que 7, serão classificados como 'detratores'. Tanto os passivos quanto os detratores serão redirecionados para o *Feedback de melhoria* bloco. Lá, o bot pergunta o que pode ser melhorado (resposta armazenada como `{negative_feedback}`).

#### Bloco: Adicionar registro à tabela

<figure><img src="https://181262846-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&amp;token=af1b4aaf-2973-497e-868b-aabc116778d3" alt="" width="323"><figcaption><p>Bloco Adicionar registro à tabela.</p></figcaption></figure>

Este bloco de ação adiciona os valores coletados à tabela de avaliações.

***

É isso! Agora seu bot pode coletar facilmente avaliações NPS e feedback dos seus usuários!

{% hint style="success" %}
Depois que você tiver coletado avaliações de usuários suficientes, poderá usá-las para calcular o Net Promoter Score geral do seu negócio. Você pode aprender como calcular essa pontuação [aqui](https://customergauge.com/blog/how-to-calculate-the-net-promoter-score).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chatlayer.ai/chatlayer-documentation-pt-br/comece-rapido/bot-templates/nps.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
