Artificial intelligence (AI) unites a variety of technologies, such as image and voice recognition, NLP and so on. We will concentrate on Natural language processing or understanding (NLP).
In reality a chatbot is not able to understand a human being, however he is able to fake it. Check it out.
We have already discussed the intents in Analytics chapter. It is any NLP system’s job to derive an intent from a human message.
Ok, let's imagine the conversation:
Human:
“How is the weather in San Francisco today?”
Bot:
“Mostly sunny, 68ºF, in San Francisco today”.
It looks like a chat between two human beings, right? See how it works:
%question=How is the weather in San Francisco today?
%city=San Francisco
), time (%date=today
) and intent (%intent=weather
).%city
, %date
and %intent
.%intent=weather
variable the bot goes to the weather map.%weather=Mostly sunny, 68ºF
.%weather, in %city %date
(Mostly sunny, 68ºF, in San Francisco today).NLP allows to build magic conversations. There are quite a few NLP services. Try dialogflow.com for instance. To connect it to your bot you need to customize the following settings in the @default
node:
Click icon to copy this map or open it in