Problem Statement: Customers with Luma enabled public KIOSKs , encounter multiple user logins in a given day with the kiosk being the same. So every time a new user comes to the KIOSK, even if we clear the user context every time the widget gets closed, there seems to be no default way to verify the user first before we actually get into the typical user registration process. This is a problem when luma is implemented in public channels like a kiosk where no single user is registered to a channel.
...
Approach: Call the custom user registration skill that starts the verification process like OTP with mobile number , or email code verification, and then takes the user to the user registration skill.
...
Create an attribute Username to store the username.
On Skill Builder--> Attribute tab, click on Create Attribute.
Add attribute details such as Name and Data type.
Click Save.
Follow the above steps and create the below attributes:
Phonenumber to store the phone number received from the Luma API
OTP_Send to store a Random OTP number generated by the System.
OTP_Check to store the OTPc number entered by the user.
...
On Skill Builder--> Create Skilltab, enter Skill details such as Skill Name, Category, Description, and KPI Metrics.
Under Invocation type, add User Phrases such as ‘Register in Luma,’ ‘Register user in Luma’Luma.’
Under Conversation flow,
Add attribute Username to collect Luma VA username from the end-user.
Add the Integration operation GetContact to fetch the user's registered mobile number from the Luma profile and store it in Phonenumber.
Add a Ruleset to authenticate the user’s phone number. Configure the following rules.
If the user’s Phonenumber is found,continue executing the skill. Set Execute to Continue.
If the user’s Phonenumber is not found, i.e., is NULL or empty, prompt the user that the mobile number is not available, and exit the skill. Set Execute to Exit.
Add Set Attribute-->transform and use Transformation Function- Random to generate a Random OTP number and store it in the attribute OTP_Send.
Add the Integration operation Send SMS to a number to send the OTP generated in OTP_Send to the user's registered mobile number, available in Phonenumber.
Add attribute OTP_Check to prompt the user to provide the OTP received on the registered phone number.
Add a Ruleset to validate the OTP and authenticate the user. Configure the following rules.
If OTP provided by the user ( in OTP_Check) is the same as the OTP send to the user (in OTP_Send), branch to the out of the box System skill, User Registration. Set Execute to Skill and select User Registration skill for execution.
If OTP provided by the user ( in OTP_Check) and the OTP send to the user (in OTP_Send) do not match, prompt the user that the provided OTP is invalid and exit the skill. Set Execute to Exit.
Click Save to finish building the skill.
The next step is to add permission to the skill. Click on Permission and the Users or Groups who should be able to execute the Skill.
Run Build and Publish to make the skill available in Virtual Agent.
Once the skill is Published, Go to the Test Widget to test the skill. Click on Debug Logs and execute the skill to view the runtime Skill execution logs.
Your skill is now ready to use. Go to Conversation History to view the list of conversations where the end-user requested the skill.
Step 4: Add Skill to Suggested Skill List for Anonymous Users
Under Bot Menu → Configurations page. Click on the Suggested Skills tab.
Click on the Welcome/What can you do tab.
Configure Bot response when there is no skill permitted and Bot Response when there are no skills to suggest.
Select Anonymous in the Groupfield.
Customize Bot responses that the user receives before the skill recommendations are presented. Example: “I can help you with the following skills.”
Select the Display Order to Custom to customize the list of the skills to be displayed to the end-user.
Select Display Type and Display Count
Select the Custom User Registration Skill and other skills one by one in the required sequence.
Click on Save.
This list of Skills will be displayed as skill recommendations when a New user or Anonymous user accesses Luma Virtual Agent.
Additional Resources
Visit the below Wiki Documentation for more information on:
Creating an Attribute on Create Global Attributes
Configure a 3rd party Web service integration on REST Integrations
Creating and Managing Skills is at Create Skills
Using Transformation Functions: Random is at Transformation Function Random
Using local attribute in skills on Use Variables in Skills
Using Ruleset on Using Rule Sets
User Registration Skill on Configure System Skills
Publishing Skill on Build and Publish
Understanding Conversation logs on Conversation History.
Provide permissions to users or groups at Permission
Test your Skill on Test your Bot
Debugging skill on Debug Skills
Configure Suggested Skills on Customize System Skills behavior
Refer Use case Permission models - display skills based on the role of User