Skip to main content

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 bot can accurately interpret different ways of a query and provide relevant responses.

For example, for ordering spectacles through bot, you can have synonyms like 'Specs', 'Shades', and 'Goggles'. Training the relevant intent with these synonyms enables the bot to trigger the desired flow whenever users type these terms or any other synonym associated with ordering spectacles.

Add synonyms

In order for the bot to understand the user query and provide relevant responses, you need to add the synonym name and the synonym or abbreviation and train the bot.

Before adding synonyms, ensure you have:

  1. Created a flow for your use case with the required intents and utterances.
  2. Trained your intents.

To add synonyms, follow these steps:

  1. Go to Studio > Train > Synonyms.

  2. Click + Add new synonyms.

  3. In the Synonym name field, add the name of your synonym. In the Synonym or abbreviation field, enter the similar words, separated by commas.

    drawing
  4. Click Add.

  • This will add the Synonym to the bot.
  1. 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:

  1. Go to the added synonym, click on the more options icon, and click Edit.

  2. Edit the Synonym name or Synonym or abbreviation as needed, and click Save.

    drawing

Delete synonym

When the added synonym becomes irrelevant, inaccurate, or redundant, you can delete it.

To delete a synonym, follow these steps:

  1. Go to the added synonym and click on more-options > Delete icon.

  2. A confirmation message is displayed, click Delete to confirm the deletion.

    drawing

Test your synonyms

Test your synonyms and abbreviations to ensure they are identified correctly by the bot.

You can test your synonyms via:

Test Synonym via Tools

  1. Go to tools.

  2. On the Test your bot tab, enter the synonym that you want to test.

  3. Enable the Verbose toggle button.

    drawing
  4. 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.

    drawing

Test the Synonyms via Flows

You can test your flows to check whether the bot is recognizing the synonyms. To know more how to test your flow, click here.

drawing