Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  How to tell a BOT not to write numbers in letters ?

    Posted 10-25-2024 04:25
    Edited by Jérémy LE MORVAN 10-25-2024 04:27

    Hello everyone,

    I'm having trouble with a Bot Flow that collects alphanumeric user IDs.

    Depending on the case, the Bot may return the numbers in full words, as in the example below. The user said the same thing 3 times, "b804OQ", but the bot understood it in 3 different ways : 

    • b six-centre-quatre OQ
    • b 6 0 4OQ
    • b six-centre-quatre au cul

    Utterances

    I've got the same thing on a Bot for ID made up of numbers only, where "97" is often understood as "quatre-vingt-dix-sept" (in French). I've tested the slot type builtin:numbers but it doesn't work, the result is split (intent:80, intent:10, intent:7) and only the last one is recoverable in the variable.

    Do you have any trick to make the bot understand that it shouldn't write numbers in letters?


    #ConversationalAI(Bots,AgentAssist,etc.)

    ------------------------------
    Jérémy LE MORVAN
    CHEF DE PROJET
    ------------------------------



  • 2.  RE: How to tell a BOT not to write numbers in letters ?

    GENESYS
    Posted 10-28-2024 07:25

    Hello Jérémy, 

    Have you taken a look at this documentation here. This explains you have to use the NLU slot type if builtin:number. 

    Cheers,

    Cam



    ------------------------------
    Cam
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: How to tell a BOT not to write numbers in letters ?

    Posted 11-04-2024 05:38
    Edited by Jérémy LE MORVAN 11-04-2024 05:39

    Hello Cam, yes i'v tried the builtin:number slot type for case where the ID is only numeric, but it doesn't work properly

    In the example below, the user said "250-406" and the result is 254,106. And moreover, the variable will only contain the last value, in this case 106

    Numbers



    ------------------------------
    Jérémy LE MORVAN
    CHEF DE PROJET
    ------------------------------



  • 4.  RE: How to tell a BOT not to write numbers in letters ?

    GENESYS
    Posted 11-04-2024 07:52

    Hello Jérémy, 

    I have been looking into this some more, I think you might have better luck using regex as this was suggested instead of the builtin:number by some other members of my team.

    Regarding regex the following RC article is provided:

    Slots and slot types overview - Genesys Cloud Resource Center (mypurecloud.com)

    Regular expression (regex or regexp) slot type

    You can use regular expressions (regex or regexp) to identify patterns within utterances that match to a specific sequence of characters. If your bot has to identify a complex content in the utterance, a regex pattern is more useful in defining the slot type. For example, if you want to match flight codes for your travel bot, you must know the flight number for handling any cancellations. The regex pattern, ^[A-Z]{2}\d{3,4}$ matches any phrase in the utterance that matches this pattern as a flight number. For more information, see Use custom regular expression slot types in a bot flow and Regular expression language quick reference.



    ------------------------------
    Cam
    Online Community Manager/Moderator
    ------------------------------



  • 5.  RE: How to tell a BOT not to write numbers in letters ?

    Posted 11-04-2024 08:51

    Hello Cam,

    Thank you again for your response. Unfortunately, I've also tested with this configuration (the screenshot from my first message is from a slot with regex) and the problem is the same.

    The regular expression will allow the bot to know which part to retain, but not really "what it should understand".

    It looks like we are dealing with a tricky situation :(



    ------------------------------
    Jérémy LE MORVAN
    CHEF DE PROJET
    ------------------------------



  • 6.  RE: How to tell a BOT not to write numbers in letters ?
    Best Answer

    GENESYS
    Posted 11-04-2024 09:02

    Hello Jérémy, 

    I think posting in the developer forums might be the next best step. I found this post in the dev forums https://developer.genesys.cloud/forum/t/in-message-flow-capture-customer-message-as-variable/20342. But this is specific to names using the builtin:any slot. So you might get better feed back from the devs. 

    Cheers, 



    ------------------------------
    Cam
    Online Community Manager/Moderator
    ------------------------------



Need Help finding something?

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