Skip to main content
All CollectionsChatbotBot Studio Pro
Associate keywords with the same intent, using conditions!
Associate keywords with the same intent, using conditions!

We provide the option to save keywords as variables in the bot, allowing you to create conditionals instead of multiple intents.

Caio Cesar Garcia avatar
Written by Caio Cesar Garcia
Updated over a year ago

Extending the functionality of our bot, it is now possible to assign multiple keywords to the condition and not just the intent, making it possible to create multiple conditions without the need to create separate intents for each keyword. This optimizes interaction and improves system efficiency.

Let's see how this works in a practical example:

Imagine a bot that provides information about bikes and tents.

You want the same intent to fire on both the bike search and the tent search, but you want each to return different responses. In the "parent" intent you must include keywords "bicycle", "tent" and their synonyms as in the image below:

  1. To differentiate bike and tent response, let's create conditions for each. In the first condition, select "value contains" and associate it with a variable called "@chat.keyword". Add the keywords "bicycle" and their synonyms.

  2. In the second condition, select "value contains" again, associate to the same variable "@chat.keyword" and include the keywords "tent" and their synonyms.

  3. In the last "if not" condition, you can direct the interaction to a specific flow, such as an error, start, or other custom flow, if it is not linked to any of the previous keywords.

With this setting, you will have the ability to reduce the amount of intents created, allowing for more effective optimization of settings within conditions. This not only improves your customer experience, but also ensures your bot performs more efficiently.

Want to know more about this feature? Contact us!

Did this answer your question?