When you expect your client to use a specific word or a phrase, use Keywords. This query matching system is excellent when you want an interaction triggered precisely by a word or phrase without considering the whole query.
When to use Keywords
-
When you expect the user to say a specific word or a phrase.
-
When you’re interested in one very specific word.
Good to know:
-
Keywords are alternative matching systems.
-
The matching system is configured individually for every user message.
-
The system searches only for keywords and ignores the rest of the query.
-
If there are more matching systems available, keywords won’t be prioritized.
How to use Keywords
The keyword matching system doesn’t analyze the whole user input but focuses on searching words on phrases defined in the user says. The Confidence Score error margin isn’t applied to this system so only precisely the same words are matched.
-
Create a new User Input or open the existing one.
-
Click the Add keyword button and fill out the input with your keyword.
-
Your user input will be triggered whenever a user types this keyword in the ongoing chat.
Usage example
The best way to explain the behavior of keywords is to use an example. Imagine that you own a small food truck business, and your bot takes food orders. One of your most famous menu options is a hot dog
.
With the updated keywords system we can take orders in a more precise way. Let’s check out some of the cases!
Now let’s see if the marching is successful using various user input:
-
The client types: I would like to have a
hot dog
?
✅ This is perfect matching as our bot could find bot keywords. -
The client types: Can I have
dog hot
?
✅ That’s pretty clumsy way to make an order but yes, our bot understands queries in reverse order. -
The client types: Can I have
hot
adog
?
✅ The bot accepts maximum one word between our keywords. The bot takes the order. -
The client types: Can I get
dog
jdhgfhot
?
✅ Probably a cat run through the keyboard. The bot will understand the query as there’s one allowed word between keywords and the bot accepts reversed order. -
The client types: Can I get a
hut dog
?
❌ The order won’t be taken. There’s a typo in the word hot. -
The client types: Can I come with my
dog
. It’s reallyhot
outside.
❌ Too many words between our keywords. The bot won’t recognize the query. -
The client types: Can I have a
hot dog
, I’m so hungry.
✅ The bot will take the order. The punctuation at the end of the keyword is accepted. -
The client says: Can I have a
hot-dog
?
❌ The bot won’t recognize these keywords. Two words with a punctuation mark in the middle are considered as one word.
Read more: