# Expressions

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

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FvyMNHDpNrJmBjsdYmPf4%2FScreenshot%202024-05-31%20at%2019.10.27.png?alt=media&#x26;token=4e47ae0e-4e5d-4de0-9965-b876c60b06a7" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FlJLzdzlRpVLFxKD557CP%2FCopy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20(5).gif?alt=media&#x26;token=79ee90b2-c727-4d36-944b-a22ee47cbd9f" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F16G8pNKjbexdkRqB5LZI%2Fintent%20page.gif?alt=media&#x26;token=a0c9bcb3-ccdb-44c9-a520-1b519f52d342" alt=""><figcaption></figcaption></figure>

## Add contextual entities to your expressions

To add [contextual entities](https://docs.chatlayer.ai/nlp/natural-language-processing-nlp/detect-information-with-entities/contextual-entities) 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FTGpDKv497Lek51ZBFZgx%2FScreenshot%202023-09-05%20at%2010.57.23.png?alt=media&#x26;token=2e7f87a1-3f65-4a7e-af86-276a2d821960" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F7APiNryUmkRIuVYyJ79H%2FCopy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20Copy%20of%20add%20.gif?alt=media&#x26;token=784e5ada-226f-48a4-8dcf-a346b8de66e7" alt=""><figcaption><p>Add entities to your expressions.</p></figcaption></figure>
