Original Message:
Sent: 11-04-2024 08:51
From: Jérémy LE MORVAN
Subject: How to tell a BOT not to write numbers in letters ?
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
Original Message:
Sent: 11-04-2024 07:51
From: Cam Tomlin
Subject: How to tell a BOT not to write numbers in letters ?
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
Original Message:
Sent: 11-04-2024 05:37
From: Jérémy LE MORVAN
Subject: How to tell a BOT not to write numbers in letters ?
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
------------------------------
Jérémy LE MORVAN
CHEF DE PROJET
Original Message:
Sent: 10-28-2024 07:24
From: Cam Tomlin
Subject: How to tell a BOT not to write numbers in letters ?
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
Original Message:
Sent: 10-25-2024 04:24
From: Jérémy LE MORVAN
Subject: How to tell a BOT not to write numbers in letters ?
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
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
------------------------------