# Expressions

{% hint style="info" %}
NLP sound unfamiliar to you? Make sure you have a look at our detailed [Natural language processing ](/nlp/natural-language-processing-nlp.md)page.
{% endhint %}

<figure><img src="/files/IAMtI4qjIYaBb6aV1R0w" alt=""><figcaption><p>The Expressions tab.</p></figcaption></figure>

## Add expressions&#x20;

**Expressions** are the sentences or phrases that customers use to communicate their intent to the chatbot. There are two methods to add expressions to your intents:

### Manual entry&#x20;

1. Go to your **Intent** tab.
2. Enter a new expression on the input filed.&#x20;
3. Click **enter** or **+**.

<figure><img src="/files/DypzVaGaql2T1s2URU8k" alt=""><figcaption></figcaption></figure>

### Generate expressions

If you'd like to accelerate the process, you can make the most of Large Language Models (LLM) to generate expressions automatically.&#x20;

To generate expressions using AI:

1. Access the intent you've created. If there are no existing expressions, the name and description of the intent will be used as a prompt for expression generation.
2. Click **Generate Expressions**. The chatbot will provide you with up to 5 suggested expressions based on the provided prompt.
3. Select the ones that you want to keep.
4. Click **Add Selected**.

<figure><img src="/files/Z1r9pFdUF2jWH4x5xqh1" alt=""><figcaption></figcaption></figure>

## Add contextual entities to your expressions

To add [contextual entities](/nlp/natural-language-processing-nlp/detect-information-with-entities/contextual-entities.md) to your expressions:&#x20;

1. As you write expressions, use the '@' symbol to indicate the presence of an entity.
2. You can either create a new contextual entity tag on the spot or select from existing contextual entity tags, depending on your chatbot's predefined contextual entities.

<figure><img src="/files/as3ppaQrBiHuPF40c5tb" alt=""><figcaption></figcaption></figure>

3. To add values to your selected entity, simply click on the entity tag. This will open a modal where you can view or add new values associated with that entity.

<figure><img src="/files/gEe3NpuU9QcSxSQGHQEd" alt=""><figcaption><p>Add entities to your expressions.</p></figcaption></figure>


---

# Agent Instructions: 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.chatlayer.ai/navigation/natural-language-processing-nlp/expressions.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.
