Computer Science, asked by gurjeet15, 1 year ago

Explain how chatBots work.no spam answers please.

Answers

Answered by abhishekrana139
2
Bots use pattern matching to classify the text and produce a suitable response for the customers. A standard structure of these patterns is “Artificial Intelligence Markup Language” (AIML).

abhishekrana139: Thank you
gurjeet15: wlcm dear
Answered by zairawasim2000
1
If you want an indepth understanding of how Chatbots work, I recommend you read this great Medium piece on the subject. Below is the condensed version of the same.

Imagine for a minute what the process for communication with another human being is like.

Say your mother asks you to go buy some Tropicana 100% Orange Juice.

Your first question is how much of it does she want? 1 litre? 500ml? 200? She tells you she wants a 1 litre Tropicana 100% Orange Juice. Now you know that regular Tropicana is easily available, but 100% is hard to come by, so you call up a few stores beforehand to see where it’s available. You find one store that’s pretty close by, so you go back to your mother and tell her you found what she wanted. It’s $3 and after asking her for the money, you go on your way.

A chatbot follows the same process, with two fundamental differences, the channel of communication and what you’re talking to. I’ll give you a step by step on the most fundamental principles of AI/Chatbots based on the image below.
You find a product on Facebook’s Messenger, for the sake of consistency, let’s say it’s the same bottle of Tropicana. You only ever see the presentation layer and send the bot a message that is picked up by the backend saying you want some Tropicana.Using Natural Language Processing (what happens when computers read language. NLP processes turn text into structured data), the machine converts this plain text request into codified commands for itself.Now the chatbot throw this data into a decision engine, since in the bots mind it has certain criteria to meet to exit the conversational loop, notably, the quantity of Tropicana you want.Using Natural Language Generation (what happens when computers write language. NLG processes turn structured data into text), much like you did with your mother the bot asks you how much of said Tropicana you wanted.This array of responses goes back into the messaging backend and is presented to you in the form of a question. You tell the bot you want 1 litre and we go back through NLP into the decision engine.The bot now analyzes pre-fed data about the product, stores, their locations and their proximity to your location. It identifies the closest store that has this product in stock and tells you what it costs.It then directs you to a payment portal and after it receives confirmation from gateway, it places your order for you, and voila in one to two business days, you have 1 litre of Tropicana 100% Orange Juice.


Attachments:
Similar questions