---
title: "Intents"
description: "Create intents with training phrases, set the confidence threshold, and export or import intents so an AI agent recognizes user goals."
---

# Intents

> Create intents with training phrases, set the confidence threshold, and export or import intents so an AI agent recognizes user goals.

**Intents** are specific purposes or goals that a user has in mind when interacting with a
conversational AI system. Intents represent the underlying intention behind a user's input. They can
include inquiries about store hours, product availability, sales, as well as frequently asked
questions, guidelines, procedures, and actions.

## Overview

To plan the scope of your AI agent, it's important to think about the types of questions you want it
to be able to answer. For instance, if you want your assistant to handle questions from users
wanting to track their order, you can create an intent called `#order_tracking`. The `#` prefix
helps distinguish the name as an intent.

Once you have identified the questions you want your assistant to address, it's time to start
creating the corresponding intents. Aim to have around 6-10 natural language examples for each
intent, some of which can also be [recommended automatically](#recommended-training-phrases) if needed.

### Use case

Check out the following example:

> I'd like to **book a reservation** at the **Italian restaurant** on **Friday night**.

In this example, the user's intention is to book a reservation, so a possible
intent is `#book_a_reservation`. The place and the time are information that may differentiate the
AI agent's response, so you can handle cases like this by creating two
[entities](https://docs.moveo.ai/docs/ai-agents/entities.md), `@place` and `@time`.

## Create an intent

To create an intent, follow these steps:

1. Open your AI agent and select **Workflows**.
2. Select **Intents**.
3. Press the **Create intent** button.
4. Rename your intent with a descriptive name by double-clicking on the intent name.
5. Add some natural language examples ([training phrases](#training-phrases)) that are related to
   the intent you want to create.

## Training phrases

The number of training phrases needed for an intent to achieve the best results can vary depending
on the complexity of the intent and the natural language patterns of your users. However, a general
rule of thumb is to include around 6-10 training phrases for each intent you want your assistant to
recognize.

Having a sufficient number of diverse training phrases can help Moveo learn to accurately classify
the intent, even if the user inputs different phrasing or wording. However, it is also important to
ensure that the training phrases cover a broad range of variations to avoid overfitting the model to
specific examples.

It is also important to note that the quality of the training phrases is more important than the
quantity. Training phrases that accurately represent the natural language patterns of your users
help the model achieve better results. Additionally, it is recommended to continuously monitor
the performance of the intent and adjust the training data as necessary to ensure optimal results.

### Recommended training phrases

Moveo finds user messages in previous conversations that match an intent and suggests them as
training phrases. The suggestions appear under **Recommendations based on user input** on the intent
page. Accept or reject each phrase, or select **Accept All** or **Reject All**.

## Intent performance

When building intents for your AI agent, it is important to consider the intent performance. While
around 6-10 natural language examples per intent are considered optimal, you should maintain a
balance between the number of phrases and the overall performance. The performance bar on the right
sidebar can give you a good idea of how well your intent performs, because it takes into
consideration the number of training phrases you have provided for the intent, as well as how they
compare to the other intents in the AI agent.

**Low**

**Sufficient**

**Too many**

## Confidence threshold

Adjust the confidence threshold of an AI agent depending on your needs at any time. This
threshold accepts a value between 0 and 1, representing the minimum confidence level your AI
agent should have to answer a question it is not exactly trained on.

For example, for a typo like "Helor there," your AI agent should have a high level of confidence to
respond with the `#greetings` intent, assuming you have added an expression like "Hello there" to
this intent. Conversely, for a phrase like "ffdfdgd," the assistant should have a low level of
confidence in replying.

:::note
An AI agent set at a 0.70 confidence threshold would respond to the "Helor there"
message and trigger the [unknown](https://docs.moveo.ai/docs/ai-agents/triggers/unknown.md) intent for the "ffdfdgd" message.
:::

To change the confidence threshold, open the **Settings** page of the AI agent. In the **Advanced**
card, drag the **Intent prediction threshold** slider. For details, see
[Prediction threshold](https://docs.moveo.ai/docs/ai-agents/advanced.md#prediction-threshold).

## Connect a flow

After you create your intent, you can immediately connect it to a new [dialog](https://docs.moveo.ai/docs/ai-agents/dialogs.md) by clicking
on **Connect**. Pick a name for your new dialog, as well as the folder you want to classify it.
Then, write the reply of the assistant, click **Create** and modify the dialog to your needs.

**Connect flow**

**Reply**

**Dialog**

## Good and bad practices

|                          Do's :heavy_check_mark:                           |                                  Don'ts :x:                                  |
| :------------------------------------------------------------------------: | :--------------------------------------------------------------------------: |
|                Do make sure the intent is specific enough.                 |     Don't make the intent and its expressions too general or too vague.      |
|                 Do ensure the intent has a clear purpose.                  |             Don't create intents that overlap or are redundant.              |
|                     Do use clear and concise language.                     |             Don't use ambiguous language and **unclear** jargon.             |
| Do try to maintain a balance in the number of training phrases per intent. | Don't add training phrases, in which the only variation is upper/lower case. |
|             Do try to merge subsets of the same flow into one.             |           Don't use similar training phrases to different intents.           |

### Create a specific and precise intent

To create a successful intent, it's important to make sure that it is specific enough to capture the
user's intention without being too general or vague. For example, if you want your AI agent to help
users check the status of their order, a good intent name might be `#check_order_status`. This name
is specific enough to accurately represent the user's intention, while also being clear and simple to
understand. On the other hand, an intent name like `#ask_about_orders` is too general and may not
accurately capture the user's intention. Similarly, when adding training phrases to your intent,
make sure they are specific and relevant to the intent's purpose, rather than being too broad or
ambiguous.

### Create clear and purposeful intents

When creating intents for your AI agent, it's important to ensure that each intent has a clear and
specific purpose. This makes it easier for the assistant to understand and respond to user
requests accurately. However, you should also avoid creating intents that overlap or are redundant,
as this can cause confusion for both the user and the assistant. For example, if you have an intent
called `#check_order_status`, you should not create a separate intent called `#view_order_details`
as these two intents are likely to have overlapping expressions.

### Use clear and concise language

Use simple and clear language for the training phrases of your intents. Avoid **ambiguous** jargon
and aim to familiarize the AI agent with your users' language.

- :heavy_check_mark: **Good examples**:

  - When will my order arrive?
  - How much does this product cost?

- :x: **Bad examples**:
  - ETA of package
  - What's the MSRP of this product?

### Use effective training phrases

You should aim to keep a consistent number of training phrases per intent, ideally 6-10. Having too
few or too many training phrases can lead to confusion or ambiguity for the AI agent. Avoid
duplicating training phrases that only vary in capitalization. For instance, instead of using
**Where is my order?** and **WHERE IS MY ORDER?** as separate training phrases, you can use a
different phrase conveying the same meaning, like **What is the status of my delivery?**. This
provides a more diverse range of inputs for the AI agent to recognize, resulting in a more accurate
and robust system.

### Merge different subflows into one

Consider combining similar thought processes into a single intent for better clarity. For example,
instead of treating **Pay with card**, **Pay with cash** and **Pay with a coupon** as separate
flows, it's strongly suggested to consolidate these cases into one flow, **Payment methods**.
Given that these cases share similarities and have overlapping training phrases, combining them can
help streamline the process and improve the confidence with which the assistant can answer a
question on this topic. Additionally, you can include the supported
**payment methods** as an [entity](https://docs.moveo.ai/docs/ai-agents/entities.md).

In this case, you should remove the intents handling the card, cash, and coupon cases, and move them
all into one intent called `#payment_methods`. This intent may include expressions such as:

- How can I pay?
- What are the available payment methods?
- In which ways may I pay off my account?
- Is it possible to pay with cash?
- Can I pay my account with my card?
- I want to use a coupon for the payment.

## Export and import intents

Export and import intents using CSV files. The process is the same for both operations:

### To import an intent:

1. Open the menu on the top right and select **Import** to choose a local CSV file.
2. The CSV file **must** have the following format:
   - Two columns with headers `Intent` and `Expression`
   - Optional: Under `Intent`, write the name of your imported intent
   - Under `Expression`, write the expressions referring to the imported intent
3. Once you upload the file, save to add the intent to your AI agent.

### To export an intent:

1. Open the menu on the top right and select **Export** to download the intent as a CSV file.
2. The exported file follows the same format as the import file.
3. You can then use this file to import the intent into another AI agent.

Download an
[example intent](https://media.moveo.ai/media/accounts/65251a75-c3c5-4e51-86b9-21bc1905ae69/daaf9c9a-6c2b-46d0-ae41-ddcd22ff5623.csv) to see the correct format.

## Off-topic messages

Your AI agent, once trained, has knowledge about the topics you teach it. However, it also knows
when it doesn't know something. Moveo classifies all user messages into two groups: those that fit
within an existing intent that it knows, and those that fall under the `#offtopics` category, which
is a default category that cannot be deleted. You can also add specific phrases to this _system_
intent that you want your agent to recognize as off-topic messages.

:::tip

Do not connect an [intent trigger](https://docs.moveo.ai/docs/ai-agents/triggers/trigger-text.md) to the `#offtopics` intent, but rather
handle the cases where it is triggered with a [fallback](https://docs.moveo.ai/docs/ai-agents/triggers/unknown.md).

:::

## Next steps

- [Entities](https://docs.moveo.ai/docs/ai-agents/entities.md)
- [Dialogs](https://docs.moveo.ai/docs/ai-agents/dialogs.md)
- [Triggers](https://docs.moveo.ai/docs/ai-agents/triggers/triggers-overview.md)
