> 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/nlp/natural-language-processing-nlp/sentiment-analysis.md).

# Análise de sentimento

**Análise de sentimento** em [PLN](/chatlayer-documentation-pt-br/nlp/natural-language-processing-nlp.md) refere-se ao processo de determinar e categorizar automaticamente o tom emocional ou a atitude expressa na entrada de um usuário, permitindo que o bot responda adequadamente com base no sentimento detectado.

No Chatlayer, a análise de sentimento consiste em:

* um `nome`: seja neutro, positivo ou negativo.
* um `pontuação`: variando de 0 a 1.

## Ativar análise de sentimento

Para ativar a análise de sentimento no seu NLP:

1. Acesse qualquer página na sua **PLN** guia.

<figure><img src="/files/f26dfc960adfe3f277a6b466457df4a70ae4dafd" alt="" width="375"><figcaption><p>Acesse as configurações de NLP na sua aba NLP.</p></figcaption></figure>

2. Clique no **Configurações** botão no canto superior direito.
3. Ative o **Análise de sentimento**.

<figure><img src="/files/5ecf4c6b7a2e964e8d86a38816894af39c9aa1aa" alt=""><figcaption></figcaption></figure>

4. Clique em **Salvar**.

## Acesse a análise de sentimento na sessão do usuário

Para acessar a análise de sentimento na sessão do usuário:

1. Use o bot [Depurador](/chatlayer-documentation-pt-br/buildabot/emulator.md#debug-your-bot) dentro do seu **Emulador**.
2. Encontre o `sentimento` no NLP. Ele consiste em:
   * `nome`: o nome do sentimento, seja positivo, negativo ou neutro.
   * o `pontuação` desse sentimento.

<figure><img src="/files/c1dd8d89255472c4291979e41db588ae1971a1cf" alt="" width="310"><figcaption><p>Acesse o sentimento do seu usuário pelo Debugger.</p></figcaption></figure>

3. Clique no **3 pontos** ao lado do sentimento `nome` ou `pontuação` para copiar seu caminho ou valor e usá-los dentro de um [**Condição**](/chatlayer-documentation-pt-br/buildabot/flow-logic/dialog-state/plugins.md) bloco para conduzir a conversa.

<figure><img src="/files/c995365bc033c5dd1c769ddaacdd973f8cb64c4c" alt="" width="375"><figcaption><p>Copie o caminho ou valor do sentimento para conduzir a conversa.</p></figcaption></figure>

{% hint style="info" %}
Você também pode verificar o sentimento de uma fala no [**Testar**](/chatlayer-documentation-pt-br/navegacao/natural-language-processing-nlp/intents.md#test-your-nlp) botão na sua aba NLP.
{% 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.chatlayer.ai/chatlayer-documentation-pt-br/nlp/natural-language-processing-nlp/sentiment-analysis.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
