Synonyms
Synonyms are used to understand user inputs by recognizing different ways users might express the same intent. By mapping synonyms and its abbreviations to a specific intent, the AI-agent can accurately interpret different ways of a query and provide relevant responses.
For example, for ordering spectacles through AI-agent, you can have synonyms like 'Specs', 'Shades', and 'Goggles'. Training the relevant intent with these synonyms enables the AI-agent to trigger the desired flow whenever users type these terms or any other synonym associated with ordering spectacles.
Add synonyms
In order for the AI-agent to understand the user query and provide relevant responses, you need to add the synonym name and the synonym or abbreviation and train the AI-agent.
Before adding synonyms, ensure you have:
- Created a flow for your use case with the required intents and utterances.
- Trained your intents.
To add synonyms, follow these steps:
-
Go to Automation > Train > Synonyms.
-
Click + Add new synonyms.
-
In the Synonym name field, add the name of your synonym. In the Synonym or abbreviation field, enter the similar words, separated by commas.
-
Click Add.
- This will add the Synonym to the AI-agent.
-
Go to Intents and click the intent that will trigger the respective flow, and click Train intents to train the intent with the added synonym.
Edit synonyms
You can edit a synonym name along with its associated words or abbreviations.
To edit synonyms, follow these steps:
-
Go to the added synonym, click on the more options icon, and click Edit.
-
Edit the Synonym name or Synonym or abbreviation as needed, and click Save.
Delete synonym
When the added synonym becomes irrelevant, inaccurate, or redundant, you can delete it.
To delete a synonym, follow these steps:
-
Go to the added synonym and click on more-options > Delete icon.
-
A confirmation message is displayed, click Delete to confirm the deletion.
Test your synonyms
Test your synonyms and abbreviations to ensure they are identified correctly by the AI-agent.
You can test your synonyms via:
Test Synonym via Tools
-
Go to tools.
-
On the Test your bot tab, enter the synonym that you want to test.
-
Enable the Verbose toggle button.
-
Click on the Send icon.
-
A JSON response will be generated at the bottom of the page. You can see the added synonym under
processed_text
.
Test the Synonyms via Flows
You can test your flows to check whether the AI-agent is recognizing the synonyms. To know more how to test your flow, click here.
