Tutorial: Customer Authentication
Introduction
In this engaging demo, you will learn how to create a User Authentication flow in the U-Self Serve application. This tutorial is designed to provide you with the necessary skills and knowledge to create a smooth User Authentication flow.
Note
Maximize your viewing experience! Click the full-screen icon at the bottom right of the video player to enlarge the video. For optimal clarity, click the settings gear icon, select 'Quality', and choose 1080p resolution.
How to Authenticate a user?
This article describes the step-by-step instructions that are followed in the demo video. The instruction here are not intended to be specific to any customer's business use case or an industry domain.
The procedure enables you to create and publish a flow that will help in authentication of a customer.
Follow along as we guide you through the process of creating a dynamic flow that authenticating a user.
Step 1: Create Virtual Agent (VA)
Log in to X-Console. Once logged in, the Admin Console is displayed.
Ensure the pre-requisites are met before creating a Virtual Agent.
From the U-Self Serve dropdown, select AI Model. The AI Model page is displayed.
At the top of the page, click Create Virtual Agent. The Create Virtual Agent page is displayed.
In the Virtual Agent Name field, enter TutorialVA.
In the Avatar Name field, enter TutorialVA.
From the Line of Business drop down list, select DefualtOrg.
From the Business Unit drop down list, select DefualtCat.
In the Description, enter some helpful descriptive text about the Virtual Agent. It is an optional field.
From the Languages drop down list, select English-US. The selected Language is mapped to the VA. More than one Language can be added.
Click Save.
The following message is displayed: You have successfully created a new Virtual Agent.
All Virtual Agents available in the AI Model are listed.
To learn more about Virtual Agents, refer Creating a U-Self Serve Virtual Agent.
Step 2: Create Intents
First Intent
Click TutorialVA from the list of available Virtual Agents.
Click Intent card. The Intent screen is displayed.
Click Create New Intent. The Create New Intent dialog is displayed.
In Name, enter Authenticate.
In Description, enter a description for the Intent.
From the Type dropdown, select General.
Click Create. The new Intent is successfully saved and created.
The following message is displayed: You have successfully created the Intent.
To learn more about Intents, refer Creating an Intent.
Create Training Phrase
In the Training tab, enter the sample training phrase to trigger the authentication flow. For this use case, enter the sample training phrase “log in” and press enter to add more phrases.
Click Train.
To learn more about Training Phrases, refer Add Training Phrases.
Note
It is required to create at least 2 Intents for Virtual Agent with 5 Training Phrases for each Intent.
Create Slot
First Slot
In the Slot tab, click Add Slot. The Create Slot dialog appears.
In Name, enter Account Number.
From Entity dropdown, select numeric-string.
Click Create.
Second Slot
In the Slot tab, click Add Slot. The Create Slot dialog appears.
In Name, enter PIN.
From Entity dropdown, select number.
Click Create.
To learn more about Slots, refer Creating Slots.
Second Intent
Click TutorialVA from the list of available Virtual Agents.
Click Intents card. The Intent page is displayed.
Click Create New Intent. The Create New Intent dialog is displayed.
n Name, enter Balance.
In Description, enter a description for the Intent.
From the Type dropdown, select General.
Click Create. The new Intent is successfully saved and created.
The following message is displayed: You have successfully created the Intent.
Create Training Phrase
In the Training tab, enter the sample training phrase. Enter “what is my balance” and press enter to add the phrase “check my balance”.
Click Train.
Note
It is required to create at least 2 Intents for Virtual Agent with 5 Training Phrases for each Intent.
Step 3: Create Intent Flows (in X-Designer)
First Flow
Go to the Admin Console, click OPEN DESIGNER. The X-Designer page is displayed.
From the New dropdown menu, select Intent Flow. The Create Intent Flow screen is displayed.
In Name, enter Tutorial_Greeting.
In Virtual Agent, select TutorialVA from the dropdown.
In Intent, select Without Intent (for configuration) from the dropdown.
Click Create. The Flow map of the newly created Intent Flow is displayed.
To learn more about Intent Flow, refer Creating an Intent Flow.
Create Response Element
Drag and drop the Response element to the Flow Map. The Response element page is displayed.
In Rich UI tab, enter “Welcome to Uniphore. How can I help?”.
Go to General Response Properties, in Response Name enter “Response”.
Ensure the Variation Order is set to According to Order.
Ensure the View Response in Language is set to English-US.
Ensure Call Completion Mode is set to User Input Needed.
Click Create. The element named Response is displayed in the Flow map.
The following message is displayed: The flow “Tutorial_Greeting” was saved successfully.
To learn more about Response Element, refer Creating a Response element.
Publish Flow
Click Publish icon. The Publish dialog is displayed.
In Name, the flow name is displayed.
In Version, enter 1.
In Description, add any additional information. It is an optional field.
Click Publish.
Second Flow
In the X-Designer page, from the New dropdown menu, select Intent Flow. The Create Intent Flow screen is displayed.
In Name, enter Tutorial_Authentication.
In Virtual Agent, select TutorialVA from the dropdown.
In Intent, select Authenticate from the dropdown.
Click Create. The Flow map of the newly created Intent Flow is displayed.
Create Response Element
Drag and drop the Response element to the Flow Map. The Response element page is displayed.
In Rich UI tab, enter “To authenticate, I need your account number and pin.”
Go to General Response Properties, in Response Name enter “Start”.
Ensure the Variation Order is set to According to Order.
Ensure the View Response in Language is set to English-US.
Ensure Call Completion Mode is set to User Input Not Needed.
Click Create. The Response element named Start is displayed in the Flow map.
Create Slot Resolver
First Slot Resolver
Drag and drop the Slot Resolver element to the Flow Map. The Slot Resolver element page is displayed.
In Slot resolver name, enter Account Number.
From Slot name dropdown, select Account Number.
In Variable, click + button to Create a Session Variable. The Variable Editor dialog is displayed.
For this use case, in Variable Editor,
Enter Tutorial_Number as Variable Name.
Ensure Variable Type is set to TEXT.
Ensure Variable Scope is set to Customer Session.
In Description, add additional information about the variable.
Ensure Environment Variable is disabled.
Ensure Read Only is disabled.
Ensure Default Value is blank.
Ensure Format is not mentioned.
Uncheck Do not audit the variable’s value.
Uncheck Secure.
Click Save Variable. The Tutorial_Number variable is added as a variable for the Slot resolver.
Do not add any value in Number of Digits.
Ensure Validation Type is set to None.
In Prompts and display settings, go to Rich UI tab.
In Prompt 1, enter “What is your account number?”.
Do not add any value in Validation error message.
Check Enable Dialog Management.
Do not add any value in HTML Reference ID.
Click Create. The Slot Resolver element named Account Number is displayed in the Flow map.
For the Account Number Slot Resolver, the Success and Failure flow are displayed.
To learn more about Session Variable, refer Creating a New Session Variable.
Second Slot Resolver
Drag and drop the Slot Resolver element to the Flow Map. The Slot Resolver element page is displayed.
In Slot resolver name, enter PIN.
From Slot name dropdown, select PIN.
In Variable, click + button to Create a Session Variable. The Variable Editor dialog is displayed.
For this use case, in Variable Editor.
Enter Tutorial_PINNumber as Variable Name.
Ensure Variable Type is set to Number.
Ensure Variable Scope is set to Customer Session.
In Description, add additional information about the variable.
Ensure Environment Variable is disabled.
Ensure Read Only is disabled.
Ensure Default Value is 0.
Ensure Decimal Places is 0.
Ensure Symbol is empty.
Ensure Locale is set to English(United States).
Ensure Position is set to Before.
Uncheck Show Thousands Separator.
Uncheck Do not audit the variable’s value.
Click Save Variable. The Tutorial_Number variable is added as a variable for the Slot resolver.
Do not add any value in Number of Digits.
Ensure Validation Type is set to None.
Ensure Text language is set as English-IN.
In Prompts and display settings, go to Rich UI tab.
In Prompt 1, enter “What is your PIN?”.
Do not add any value in Validation error message.
Check Enable Dialog Management.
Do not add any value in HTML Reference ID.
Click Create. The Slot Resolver element named PIN is displayed in the Flow map.
For the PIN Slot Resolver, the Success and Failure flow is displayed in the Flow map.
Create Response Element
Drag and drop the Response element to the Flow Map. The Response element page is displayed.
In Rich UI tab, enter “You are now logged in.”
Go to General Response Properties, in Response Name enter “Final”.
Ensure the Variation Order is set to According to Order.
Ensure the View Response in Language is set to English-US.
Ensure Call Completion Mode is set to User Input Needed.
Click Create. The Response element named start is displayed in the Flow map.
Establish Connection between Flows
In the Flow map, Start will be the first element. The flag icon is displayed to denote the first element of the flow.
Connect Start and Account Number.
Connect Account Number-Failure and Start.
Connect Account Number-Success and PIN.
Connect PIN-Failure and Start.
Connect PIN-Success to Final.
Publish Flow
Click Publish icon. The Publish dialog is displayed.
In Name, the flow name – Tutorial Authentication is displayed.
In Version, enter 1.
In Description, add any additional information. It is an optional field.
Click Publish.
Step 4: Map Flow to Configuration
Go to U-Self Serve AI Model. Select TutorialVA from the list of Virtual Agents.
Click Configuration card.
For Greeting, select Tutorial_Greeting flow from the dropdown menu.
To learn more about Configuration, refer Setting a Default VA Configuration.