Chatbot Assistant
Chatbot Assistant
Chatbot Assistant
on
CHATBOT ASSISTANT
DEVELOPED BY:
Ravi Kumar
Kanhaiya Verma
Prachi Bhardwaj
Ashok Kumar
Kurma Anil Kumar
Section: K18BY
LOVELY PROFESSIONAL
UNIVERSITY
What is a chatbot assistant?
An Intelligent Virtual Assistant (IVA) or Intelligent Personal Assistant
(IPA) is an artificial agent who can perform tasks or services based on
commands or questions for a person. The term "chatbot" is sometimes used to
refer to virtual assistants which are generally or directly accessed via online
chat. Internet chat services are in some cases solely intended for entertainment
purposes. Some virtual assistants can read human speech and react through
synthesized voices. Users can ask questions from their assistants, monitor home
automation systems and media playback through voice, and use verbal
(spoken?) commands to handle other basic tasks, such as email, to - do lists and
calendars.
As of 2017, virtual assistant functionality and use are rapidly expanding, with
new products entering the market and a strong emphasis on both email and
voice user interfaces. Apple and Google have large user bases built on their
smartphones. Microsoft has a wide installed base of personal computers,
smartphones and smart speakers running on Windows. Amazon has a broad
deployment base for smart speakers.
Method of interaction
Virtual assistants do work through:
Text including: online chat (especially with an instant messaging app or
other device), text message, email or other text-based communication
channels.
Voice with, for example, Amazon Alexa on an Amazon Echo app, Siri on an
iPhone, or Google Assistant on Google-enabled / Android mobile devices
By taking and/or uploading photos, as in the case of Samsung devices.
Virtual assistants use natural language processing (NLP) to align executable
commands with user text or voice data. Many are constantly learning by using
techniques of artificial intelligence like machine learning.
To activate a virtual assistant using the voice, a wake word might be used. This
is a word or groups of words such as "Hey Siri", "OK Google" or "Hey
Google", "Alexa", and "Hey Microsoft".
Concepts on which virtual assistant works
Algorithms: An algorithm is a finite sequence of well-defined,
computer instructions in mathematics and computer science,
usually to solve a class of problems or to perform a computation.
Algorithms are always unambiguous and are used to perform
calculations, data processing, automatic reasoning, and other tasks
as defined.
Services
Provide data, such as weather, facts, e.g. Wikipedia or IMDb, set an alarm,
make to - do lists and shopping lists
Stream music from streaming services including Spotify and Pandora; play
radio stations; read audiobooks
Stream video, TV shows or movies on TV, streaming from e.g. Netflix
Conversational trade: live chat on messaging apps such as WeChat,
Facebook Messenger and WhatsApp, and messaging app chatbots or
websites.
Assistance in public government communications (see Artificial
Government Intelligence).
Complementing and/or replacing customer service by humans. One report
estimated that an automated on-line assistant produced a 30 per cent
decrease in the workload for a human-provided call center.
Developer platforms
In April 2017, Amazon Lex was opened to developers. It involves natural
language understanding technology combined with automatic speech
recognition and was brought in November 2016.
Google provides Actions on Google and Dialogflow platforms for
developers to create "Gestures" for Google Assistant.
Apple provides SiriKit to developers to create extensions for Siri
Watson's IBM, while sometimes speaking as a virtual assistant is actually
an entire artificial intelligence platform and a community powered by some
virtual assistants, chatbots and many other types of solutions.
How voice assistant works?
Say the interaction words like OK Google, Alexa or Siri or click
the voice assistant button.
Speak the task to be done.
Voice assistant implements the task.
1. OK Google
2. Alexa
3. Siri
Concept behind how the voice assistant works
Alexa, Siri and Google Assistant all work in a similar way, but there are policy
and data privacy intricacies involved when switching from assistant to assistant.
When you activate one of the assistants, your request is immediately packed and
sent to the servers operated by your respective system service.
On arrival, the words and tone of your request are evaluated by an algorithm,
which is then matched to a command it believe you asked for. Essentially, it
means, "We're eighty-five percent sure you asked this question," which is why
you don't always get the answer you were looking for. If the algorithm isn't sure
enough, it might ask, "Did you mean blank?” and give you the best guess of
what you wanted or it might say, "I'm sorry I can't do that yet."
While the algorithm is evaluating the problem, your device is trying to figure
out if it can handle the command without requiring information from the sever.
For example, a demand like "Can you pause music?"" is easy; if you want an
assistant to translate a word from Italian to English, it's more complicated. If
your request is more complex than a local command your system can connect
back to the server and continue to cross-check your question to make sure it
knows what you're asking for.
Finally, the answer to your question is given. If you have asked your assistant to
answer a trivial question, it will search the answer from the web (Google, Bing,
etc.) and move the answer back to your device. When you ask your Echo to turn
on your smart lights, a wi-fi signal will be sent to them, and they will be turned
on. The difficulty is related to the pace of the job and the perception of what
you want in the first attempt. Once an assistant knows what to do, that's the
basic process of logging into a website, a third-party computer, or another
electronic device.
The implemented assistant can open the application (if it is installed in the
system), check the query for Google, Wikipedia, and YouTube, measure any
mathematical problem, etc., by simply giving the voice command. We can
process the data as needed or add the features depending on how we code things
.
Packages that may be required to run the chatbot assistant successfully:
Speech Recognition Package: When you voice a question, we're going to
need something to catch it. The Speech Recognition program allows Python
to access audio from the microphone of your system, to transcribe audio, to
save audio into an audio file, and other related tasks.
Text to Speech Package: Our assistant will have to translate your spoken
question to one that is text And then, once the assistant looks up an online
answer, the response will need to be translated into a voiceable phrase To
this end, we will use the gTTS (Google Text-to-Speech) kit. This kit
interfaces with the Google Translate API.
Audio Playback Package: All that’s left is to give voice to the answer. The
mpyg321 package allows for Python to play MP3 files.
Selenium needed for web-based work from browser.
Wolframalpha package will be needed for calculation given by user.
pyaudio will be required for voice engine in python.
After this, we have to get started with the coding the program. We will be
dividing each function as a single code for easy understanding.