How to use Entities
Objective
Working with Entities.
Applies To
- Vonage AI Studio
Procedure
An entity is a list of values and their synonyms that provides us a predefined database. Each parameter has a type, called entity type, which is used to extract and validate pieces of data from a user’s natural language input, using the predefined database.
You can also create or import your own entity for matching custom data. For example, you could define a size entity that can match the types of sizes available in a pizza delivery agent.
Create your own entity
- In the left navigation, click on Properties --> Entities.
- A drawer is going to open on the right, click ‘Create Entity’ on the top right.
- Name the entity - for example “size” and click ‘Add new Entity Value’.
- Add new entity values- for example, “small”, “medium”, and “large”, and if there are synonyms (see synonyms) add them to each value to help the agent identify more types of inputs (i.e. synonym for “large” can be “big”).
- To save a value, press anywhere on the screen to save.
- Don't forget to hit "save" once you're done adding new values.
Synonyms
Sometimes there are more than one or two words that have the same or nearly the same meaning. For example, if I ask what pizza size do you want, you can answer “large” or “big” and even “huge”. You can’t know what the caller will use, and this is why it’s important to add as many synonyms as you can.
Entity Recordings
Only relevant for voice agents.
If your agent is utilizing human voice recordings instead of the available robotic voices, it only makes sense to also add recordings to your entity values. Either add the recording on the spot or select it from the drop-down which shows all recordings from the Recordings Property.
Afterward, you will be able to use these recordings throughout the flow. E.g. in a Speak node. The agent will ask the user "Which pizza size is right for you today?" and the user might answer "Large". If you wanted to confirm the user's choice, the agent will be able to use the entity value of "Large" using the attached recording.

How to use entities
Let's say you have created an entity called "numbers" with recordings for each number 1, 2, etc. In the flow, you are collecting an amount from the user with the parameter "NUMBER".
If you want to use these values in a Speak node, you can do so by clicking on the "Audio" option next to "Text to Speech" and then "Use Parameter".
It will allow you to either choose a parameter or you can create it on the spot. In this case, we are creating our "NUMBER" parameter right there and then.
The agent will now be able give out the value of the number collected utilizing the recording from the entity.

Import an Entity
- In the left navigation, click on Properties --> Entities.
- A drawer is going to open on the right, click 'Import Entity' on the top right.
- The AI Studio will prompt you to select the relevant file from your device. The format of the file should be CSV. Make sure your format the file in a way that is compatible with the agent. Please see the correct format below. The name of your file will be the name of the entity.
- If needed, you can always make changes to the entity. Don't forget to hit "save" once you're done adding new values.

Export an Entity
You can export an entity by clicking on the little export symbol on the right of the entity. This will export a CSV file containing all values and synonyms of the entity.

System Entities
The agent has predefined data that exists in all the agents you have created.
Comments
0 comments
Article is closed for comments.