> For the complete documentation index, see [llms.txt](https://docs-convai.wavy.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-convai.wavy.global/understanding-users/natural-language-processing-nlp/settings.md).

# NLP threshold

Both the intent recognition model as well as the entity extraction model are based on probabilistic approaches. That means the models are almost never 100% sure about an expression. Instead, they assign probabilities scores to the output. Depending on your application and available training data, you might want to decrease or increase this threshold.

Setting a threshold too high will result in very few user messages getting assigned the proper intent. Your customers will receive a lot if 'I did not understand that' messages (configured in the 'not understood' bot dialog). On the other hand, you will be more certain that the answer from the bot really belongs to the users input.

Setting a threshold too low will make the bot act more confident. This increases the chances of a wrong link between an expression and an intent.

## Example

Consider for example the following three expressions and scores

* I want to book a train ticket (93% confidence for intent 'Book train ticket')
* I need to be in Brussels tomorrow (79% confidence for 'Book train ticket')
* I lost something and still have my train ticket (66% confidence for 'Book train ticket')

In this example, the appropriate threshold would have been higher than 63% but lower than 79%.

A threshold of 80% or higher would result in the 'I need to be in Brussels tomorrow' expression to be incorrectly missed. The user would receive a reply "I am sorry but I did not understand that". This is annoying for the user.

A threshold of 65% or lower would result in the expression 'I lost something (...)' to be incorrectly classified as 'Book train ticket'. The user would receive a weird reply like for example "where do you need to be?"

{% hint style="info" %}
In most cases Chatlayer.ai recommends a threshold for both intents and entities of 80% as a starting point.
{% endhint %}

![](/files/-MFgE7LkAXWwpYHMIDcH)


---

# 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:

```
GET https://docs-convai.wavy.global/understanding-users/natural-language-processing-nlp/settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
