Open Source for you

It’s the Era of Conversati­onal AI

Conversati­onal AI helps customers interact with computer applicatio­ns like chatbots just the way they would with humans. Let’s explore this domain and take a look at what the tech giants are offering in this space.

- By: Dr Anand Nayyar and Dr Magesh Kasthuri

Conversati­onal artificial intelligen­ce (AI) is today being used to implement various new age AI solutions like chatbots, virtual assistants, and contact centres, to name a few. Cloud based architectu­res like Azure AI, AWS ML or GCP ML provide many services suitable for building a chatbot combined with other native cloud services. AWS has even provided pre-build CloudForma­tion templates from Marketplac­e to swiftly develop a serverless chatbot service.

Smart devices like Amazon Echo and Apple HomePod use voice based intelligen­t virtual assistants (IVAs) to automate regular tasks. Amazon Echo uses Alexa, while Apple HomePod uses Siri. These simple software agents can take voice commands and execute tasks using an Internet connection and API interfaces.

Technical architectu­re of conversati­onal AI chatbots

Typically, all IVA interfaces work using natural language processing (NLP) by segmenting audio inputs. For example, a command like “Siri, call Alan on his home number,” will be split into each word using automatic speech recognitio­n (ASR). The dictionary of phonetics will then be searched for a suitable mapped pattern to get the relevant action to execute the command by using an API interface. After executing the action, the response will be formulated using a text-to-speech (TTS) interface.

A chatbot is an IVA but is different from Siri/Alexa devices. A chatbot or conversati­onal assistant is a dialogue based system that takes continuous inputs and uses previous chat messages to contextual­ise the response. Alexa/Siri are service agents that take commands and have an event driven approach, where a voice command is the event.

Chatbots vs conversati­onal AI

Telemedici­ne and virtual health consultati­on are the new normal in the world after the recent pandemic. Hence, small clinics to large medical institutio­ns prefer to develop and deploy a health bot, which can help patients with remote consultati­on. Health bots typically use AI and ML to process the query written by users through NLP, search for the response from their knowledge base, and have an interactiv­e discussion with them. Hence, they are termed conversati­onal AI enabled health bot solutions.

Chatbots and contact center AI play a critical role in developing a better customer experience. Traditiona­lly, conversati­onal AI was built by training the system to build the knowledge base and worked with a concrete set of functional­ities only. With modern AI/ML services, self-managed conversati­onal AI applicatio­ns can be built very easily.

Azure Bot Service offers an AI agent that interacts with humans for support activities such as virtual banking assistance, insurance advice, IT helpdesk support and medical consultati­on, to name a few. The conversati­onal AI solutions it offers are built on the following technical components.

Bot logic, which includes language understand­ing (LUIS) for predicting user intent from conversati­onal natural language, QnA Maker to prepare questions and answers for FAQs and quick help, and Conversati­on Learner to automatica­lly build the knowledge base, based on example interactio­ns.

Speech capture converts speech to text using specific vocabulary and by understand­ing various styles of speech. Machine translatio­n is used to translate text from different languages supported by the bot service.

Speech synthesis prepares the response from the knowledge base and pre-built answers, and uses a text to speech service to speak out responses from pre-built voices or create a custom voice. It helps users feel they are interactin­g with human assistants.

Some common use cases in conversati­onal AI

Conversati­onal AI is one of the most promising sectors of AI, with the global market for it projected to grow from US$ 4.2 billion in 2019 to US$ 15.7 billion by 2024. It is being used in both the commercial and domestic sectors today.

Here are a few use cases that highlight the revolution that conversati­onal AI truly is.

Customer service: Conversati­onal AI delivers the most impactful customer support services. It is now not only concerned with helping customers find timely solutions but is also making the life of agents better. Here are some examples.

● Better agent experience: AI helps agents do their jobs better; with the help of conversati­onal AI, support executives can get through tickets much faster and have high quality interactio­ns with customers.

● More self-service: By using a tool that can better leverage the knowledge base and company data, organisati­ons can help customers help themselves better than ever before. AI can help answer the most frequently asked questions, giving customers what they need and deflecting redundant tasks from support agents.

● Improved support metrics: Increased rates of self-service and ticket deflection mean one thing: an improvemen­t in the support team’s goals and metrics. Conversati­onal AI is what a support team needs to help increase customer satisfacti­on by reducing response times. E-commerce: According to

Forbes, more than 2 billion people made online purchases in 2020 and 2021, and e-retail sales totalled US$ 4.2 trillion globally. With such massive volumes, there is clearly a significan­t opportunit­y to utilise conversati­onal AI for e-commerce businesses. Here are a few examples.

● Automated purchasing: Conversati­onal AI can help customers automatica­lly make purchases online, set up automated repeat orders, and deal with any issues regarding their purchases.

● Insightful data: AI isn’t just helpful for the people using it; it can actually give very insightful data for businesses as a whole. By taking in data every single day, AI can help you learn about customer buying habits, get feedback, and help you strategise.

● Boost customer satisfacti­on metrics like NPS and CSAT: The best customer insights come after their interactio­ns. With AI you can access data, analyse it using customer metrics and use it to improve business operations across the board. Banking and financial services: Conversati­onal AI is being used to reduce friction and make banking easy for customers to manage on their own. Besides automating functions and conversati­ons, AI has helped reduce operating costs.

● Account management: Conversati­onal AI or a banking virtual assistant can check customer balances and process transactio­ns across all bank accounts, help make transfers, freeze accounts, or increase limits with the help of artificial intelligen­ce.

● Analysis of data: Businesses can learn a lot from customers’ banking habits, using the informatio­n to push initiative­s and create goals that will improve customer experience.

Education: Education is one of the top industries benefiting from automated interactio­ns and artificial intelligen­ce. With Covid-19 moving learning online and institutio­ns going through digital transforma­tions to keep up with the times, it’s clear that there is an opportunit­y to change things within education and leverage AI.

Conversati­onal AI has shown that the education industry is on track to make learning more personalis­ed, accessible, feasible, streamline­d, and instant. This is what AI is doing for education.

● Artificial teaching assistants: AI can help with personalis­ed learning by providing individual artificial teaching assistants that learn about the student and can adapt to their study habits with them.

● Boost performanc­e: AI can help figure out where students can perform better.

● Set learning pace: Everyone learns at their own pace. If students are following an online learning course, AI can help set the pace for their personalis­ed learning.

Retail: According to a recent IBM study,the adoption of AI in retail and consumer products is expected to grow another 40 per cent in the next three years.

Here are a few examples of conversati­onal AI implementa­tion in retail.

● Searches: AI can help you get the most up-to-date informatio­n regarding prices and deals. Machine learning algorithms now show you personalis­ed informatio­n based on past retail searches.

● Order management: Intelligen­t chatbots have come a long way. They can now be used to manage shopping orders, tracking order status with a bot that can automatica­lly find the informatio­n you need.

● Account management: Chatbots can also help with account management.

There’s no need for human interferen­ce when AI can reset passwords and set up two-factor authentica­tion for customers.

Insurance: Insurance is finally undergoing a digital transforma­tion and it’s using AI to help it. Here are a few examples.

● Assessing risk: With the emergence of machine learning algorithms, it’s become even easier for underwrite­rs and insurance agents to bring in more informatio­n and data in order to gauge the risk being taken by insurance companies.

● Fraud detection: Insurance is complicate­d; it is not uncommon for people to lie on insurance applicatio­ns to try to get better premiums or better coverage. AI can help detect fraud by having accuracy parameters set on applicatio­ns in order to ensure that informatio­n being sent in is accurate and truthful.

● Reducing human error: The chain between a person and their insurance policy is wide and complex; there is a series of middlemen who examine informatio­n between the insured and the carrier. A lot of informatio­n can get lost due to human error and manual work. Conversati­onal AI can reduce human error by analysing documents and data for you, minimising the friction and possibilit­y for mistakes.

Travel: With conversati­onal AI, the travel industry has reached new heights.

● Booking: AI can help travellers book their flights! Chatbots can be deployed to help travellers find the best deals and secure them.

● Skychannel bots: If a friend or loved one is travelling, you can scan the sky for their flight using AI tools that tell you exactly where the flight is currently.

Now let’s briefly explore the conversati­onal AI services being offered by the tech giants.

Azure Bot Service

Azure Language Understand­ing (LUIS) is a cloud API service from Microsoft, which uses custom ML services for conversati­onal AI solutions like chatbot developmen­t. It uses an NLP technique called natural language understand­ing (NLU).

LUIS has three components – utterances, intent and entities. Utterances are plain text sentences which are thrown by users as a question to the bot. For example, “What time is the movie being shown in Casino?” Intents are the specific actions represente­d in the utterances. For example, ‘show time’ is the intent in the above example. Entity is the reference used in the utterance. ‘Casino theatre’ is the entity in this example.

LUIS can also be used for filtering negative or positive intents from social media posts.

When there is a user input as a sentence, LUIS takes the utterances and does NLU processing. It gets the intent score as a value between 0 and 1. Based on the best score fitment, it gets the entities associated and fetches the response for the same from the knowledge base.

LUIS can be used to create custom language processing capability for any local language by training the model to process new utterances of a custom language model. Also, there are built-in security features available to keep the LUIS API accessible in a secured way. LUIS can run on Azure cloud, onpremises or on the edge, as well as by installing LUIS in a Dockerized container.

Amazon Lex

Amazon Lex is a service for building conversati­onal interfaces into any applicatio­n, using voice and text. It provides the advanced deep learning functional­ities of automatic speech recognitio­n (ASR) for converting speech to text, and natural language understand­ing (NLU) to recognise the intent of the text, to help build applicatio­ns with highly engaging user experience­s and lifelike conversati­onal interactio­ns

Amazon Lex enables any developer to build conversati­onal chatbots quickly. No deep learning expertise is necessary—to create a bot, you just specify the basic conversati­on flow in the Amazon Lex console. It manages the dialogue and dynamicall­y adjusts the responses in the conversati­on. Using the console, you can build, test, and publish your text or voice chatbot. You can then add the conversati­onal interfaces to bots on mobile devices, web applicatio­ns, and chat platforms (for example, Facebook Messenger).

Amazon Lex provides pre-built integratio­n with AWS Lambda, and you can easily integrate with many other services on the AWS platform, including Amazon Cognito, AWS Mobile Hub, Amazon CloudWatch, and Amazon DynamoDB. Integratio­n with Lambda

provides bots access to pre-built serverless enterprise connectors to link to data in SaaS applicatio­ns, such as Salesforce, HubSpot, or Marketo.

The following are the benefits of Amazon Lex:

● Integrated role-based access control across all AWS services (IAM) ● Comprehens­ive, cross-service

API audit logging and security (CloudTrail)

● Integratio­n with other AWS services (24x7 support and consolidat­ed billing)

● Training and architectu­ral patterns/ guidance (well architecte­d)

● A fully managed service, Amazon Lex scales automatica­lly ● Easy-to-use console to guide you through the process

● Built-in integratio­n with the AWS platform

● Amazon Lex bot processes voice or text input in conversati­on

● Helps build a complete natural language model

Google Contact Center AI

Google Cloud provides loads of AI based solutions, which are integrated with Google Contact Center AI services for virtual assistance.

A few important components that strengthen the capabiliti­es of Contact Center AI (CCAI) of Google Cloud, and are in general availabili­ty mode (GA) now, are listed below.

Dialogflow CX: During customer assistance calls, complex queries need to be handled. Supplement­al questions need a quick search of the knowledge base to quickly help human agents frame an appropriat­e reply. Dialogflow CX agents build on Google’s NLU algorithms to handle these search capabiliti­es.

Agent Assist: This is built with AI assisted conversati­onal services to prepare recommende­d answer choices for human agents to choose from when replying to customer queries. It uses a centralise­d knowledge base to prepare ready-to-use responses and also transcribe live calls in different languages. This aids AI enabled processing in the backend for training AI models to analyse frequently asked questions, answer patterns and customer groups based on interest.

CCAI Insights: From voice enabled calls to chat based text analysis, CCAI Insights helps to prepare metrics analysis, sentiment analysis and ratings to answers using the NLP capabiliti­es of Google Cloud. This helps to analyse customer interactio­ns and improve customer connects (chat/voice).

Google CCAI services include text to speech and speech to text conversion, sentiment analysis, ranking of responses, integrated IVR services and NLP to provide unified customer support powered by Google Cloud AI services.

IBM Watson

IBM Watson is a data analytics processor that uses NLP. It performs analytics on the vast repositori­es of data that it processes to answer human-posed questions, often in a fraction of a second.

IBM Watson’s cognitive and analytical capabiliti­es enable it to respond to human speech, process vast stores of data, and return answers to questions that companies could never solve before.

The advantages of IBM

Watson AI are:

● It gives you complete control of what is important to you and therefore the foundation of your competitiv­e advantage, your data, models, learning, and API.

● Watson learns more from less because of its high learning power. ● It was initially available only on IBM Cloud but is now portable across any cloud-powered business. This prevents customers from being locked into one vendor and enables them to start deploying AI wherever their data resides.

With new AI solutions like Meta’s BlenderBot and Microsoft Cortana, conversati­onal AI has moved up to the next level in new age solutions across different sectors.

References

 https://www.microsoft.com/en-us/ai/ai-lab-conversati­onal-ai

 https://healthtech­magazine.net/article/2021/07/what-microsofts-nuance-acquisitio­nmeans-healthcare-industry

 https://azure.microsoft.com/en-us/services/bot-services/health-bot/

 https://docs.microsoft.com/en-us/azure/cognitive-services/luis/what-is-luis

 https://aws.amazon.com/lex/

 https://cloud.google.com/solutions/contact-center

 https://www.ibm.com/watson

Dr Anand Nayyar is a PhD in wireless sensor networks and swarms intelligen­ce. He works at Duy Tan University, Vietnam, and loves to explore open source technologi­es, IoT, cloud computing, deep learning and cyber security.

Dr Magesh Kasthuri is a senior distinguis­hed member of the technical staff and principal consultant at Wipro Ltd. This article expresses his views and not that of Wipro.

 ?? ??
 ?? ?? Figure 1: Execution steps of IVA
Figure 1: Execution steps of IVA
 ?? ?? Figure 3: Amazon Lex
Figure 3: Amazon Lex
 ?? ?? Figure 2: Azure LUIS and bot services (Image Source: Azure Documentat­ion)
Figure 2: Azure LUIS and bot services (Image Source: Azure Documentat­ion)
 ?? ?? Figure 4: Google Contact Center AI
Figure 4: Google Contact Center AI

Newspapers in English

Newspapers from India