Echo Dot (3rd Gen) - Smart speaker with Alexa - Charcoal

Use your voice to play a song, artist, or genre through Amazon Music, Apple Music, Spotify, Pandora, and others. With compatible Echo devices in different rooms, you can fill your whole home with music.

Buy Now

Wireless Rechargeable Battery Powered WiFi Camera.

Wireless Rechargeable Battery Powered WiFi Camera is home security camera system lets you listen in and talk back through the built in speaker and microphone that work directly through your iPhone or Android Mic.

Buy Now

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I )

0
67


Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 1

Building Blocks

In a previous article, https://smartlake.ch/onboarding-virtual-assistant-for-banking-adding-product-recommendations/, we have shown the integration of product recommendation in a simple onboarding dialogue. In this article we are going to show how we built this simple experiment using various cloud based services.

Amazon Lex

Defining Intents and Utterances

In order for the virtual assistant to interpret what a user wants to do, we must define user intents. One example of an intent is opening an account. Once we have created the intent, we need to define how the user will express his intent. In this case, we need to input utterances, i.e. variations of possible user statements for the intent. The screenshot below shows possible examples:

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 2
Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 3

Defining a response

After we have defined the intent and the utterances, we need to define a response and a next action. In this case, we will ask the user if he is a country national or a resident. This will branch the dialogue directly to the next intent which is to input the nationality of the user.

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 4

Identifying Slots

Now we want to identify if the user is a national or a resident, Lex allows us to identify so called slots in sentences, which represent variable we want to capture during the dialogue. The user will for example say ‘ I am a National’ or ‘ I am a resident’, hence we need to detect one of the 2 options. Therefore, we will define a new variable type ‘ residentType’ that usually comes after ‘I am’.

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 5

Keeping the Context using AWS Lambda

Once the resident type has been entered, we need to keep this information for further processing. This starts to be a little bit more complicated than a simple chatbot, we need to implement a real dialog manager using AWS Lambda. So once the reply from the user has been recognized ( or fullfilled) , we are asking Lex to call a so called lambda function. In our case, we will name the function ‘ OnBoardingFunction’.

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 6

Using AWS Lambda

AWS Lambda function is called directly from Lex with various input parameters that allows us to manage the dialogue. In our case we have written the lambda in Python 3.

Trending Chatbot Tutorials

1. Build AIML chatbot with DeepPavlov Spelling Corrector

2. Dialogflow Tutorial: Create Fulfillment Webhook Using Python + Django

3. Top 7 Programming Languages to Develop an AI-Powered Chatbot

4. Chatbot Conference 2020

In the code below, we see that the function checks if it can find the slot we have defined earlier ‘countryOfResidence’ and checks if it is Switzerland in order to proceed, if not it does not allow the user to proceed.

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 7

You can notice also that it keep the country of residence in the output attributes. This will allow us to check this attribute also later on in the dialogue.

What is next

In a next article, we will go a bit deeper into the dialog management and see how we implemented the simple classifier function to recommend a product.

Don’t forget to give us your 👏 !

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 8

https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 9
Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 10
Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 11

Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) 12


Onboarding Virtual Assistant for Banking: Behind the Scene ( Part I ) was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.



Read More

LEAVE A REPLY

Please enter your comment!
Please enter your name here