Yes, that is going to be a problem. You might look at the response and if it contains spaces, have them say it again with just the first name. You could possibly do some sort of Replace with common phrases to remove the extra words as well. An Intent with a slot might be possible, but that would be tricky to work into a flow at a particular point.
------------------------------
Robert Wakefield-Carl
ttec Digital
Sr. Director - Innovation Architects
Robert.WC@ttecdigital.comhttps://www.ttecDigital.comhttps://RobertWC.Blogspot.com------------------------------
Original Message:
Sent: 12-06-2024 06:23
From: Karthik Ageer
Subject: how to extract first name or last name for a slot in messaging interaction
Hi Everyone,
In a messaging flow, I am using the slot type builtin:any to collect the customer's first name. This works fine when the customer provides just their first name. However, if they include additional words or phrases, such as 'My name is Karthik' or 'Karthik is my name,' the entire sentence is captured as the first name.
Is there a best practice or recommended approach to extract only the first name in such cases?
#ConversationalAI(Bots,AgentAssist,etc.)
#DigitalChannels
------------------------------
Karthik Ageer
------------------------------