Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  how to extract first name or last name for a slot in messaging interaction

    Posted 12-06-2024 06:23

    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
    ------------------------------


  • 2.  RE: how to extract first name or last name for a slot in messaging interaction
    Best Answer

    Posted 12-06-2024 09:54

    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.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: how to extract first name or last name for a slot in messaging interaction

    Posted 12-10-2024 09:58

    Could you adjust your prompt so it is very clear how you want the customer to enter their name? Something like "Please enter your first name only with no other characters. Example: If your name is John Smith enter "John". Then check if there are any spaces and if there are, state they have entered an invalid response and ask again.



    ------------------------------
    Nicole VanWie
    UC Engineer
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources