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

You can also add intents with possible spelling errors Intents are not case sensitive Dont 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

Category

Intent

iphone 7

iphone 7

iphone7

iphone 8

iphone 8

iphone8

iphone 10

iphone 10

iphone10

iphone x

iphonex

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