Intent & Context
Intent is one the core module of Smart Replies which helps the NLP & AI engine to take more accurate decisions on which answer is the best match for the user inputs.
Intent understand the intention of your users or topics which they are asking , lets understand with an example
I am looking to buy iPhone 10
Whats new features of iPhone 10
Here in both questions the intents is iPhone 10
So against "iPhone 10" category add iPhone 10 as an intent so that the bot understands when a user input matches "iPhone 10" it look up first in the "iPhone 10" category for the most relevant answers and if not found it will start looking up other categories, if not found any relevant answers it will give default reply.
Adding Intents
You can add intents against each category as shown below
Now Add more intents to the iPhone 10 category , you can see we have added 4 intents since iPhone 10 also known as iPhone x and the intents are added with and without spaces like iPhone , iPhone 10 because when user input a space in a sentence it treats as 2 words , if a user types "iPhone" which cant be recognized until you add it.
You can also add intents with possible spelling errors.
Intents are not case sensitive
Don't add any questions here , add only keywords.
Lets Explain More with Examples
if you are a mobile phone dealer and have 3 phone models each phone model specs, price, feature may vary from one to another so here you can create categories for each phone model and add your phone model name , number etc as intents against the relevant categories
Now lets say you have 3 phone models to sell then create category and intents as below
Add multiple intents only if your product or services are known in different names like here iPhone X also knows as iPhone 10
We have now learned how to add intents against each category, now lets learn more about Context
Now let’s see how context works with intents.
Context helps to remember the last user interaction and reply more intelligently and naturally , Intent and Question Variations always works together in a conversation with intents, lets explain more with examples;
Do you have an iPhone 10 ? Yes, we do have an iPhone 10.
Whats price of 64 GB? Its $499 and 10% offer on credit card payments.
Have you observed that In the second question the user don’t specify the phone model but from the last question smart reply identified the intent as “iPhone 10” and saved to context so the next question is answered intelligently like a human.
We have successfully learned how to Add Intents & How Context Works with Intents, now we need to learn more about Question Variations or Training Phrases
Last updated