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 10Whats new features of
Here in both questions the intents is
So against "iphone 10" category add
iphone 10as 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.
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 iphonex , iphone 10 because when user input a space in a sentence it treats as 2 words , if a user types
"iphonex"which cant be recognised until you add it.
Adding Intent Against Each Category
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
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.