Yes as one of the REGEX entries after your normal REGEX one. It should eliminate the extraneous and duplicated digits.
Sr. Director - Innovation Architects
Original Message:
Sent: 08-09-2023 12:32
From: Paul McGurn
Subject: Question on detecting numeric variations in voice bot flows
As one of the regex patterns? I'm not following you.
I don't think this is an issue with the pattern, I think "Ask for Intent" just does a less-good job of STT than "Ask for Slot", as you can see in the previous utterance example.
Original Message:
Sent: 8/9/2023 11:31:00 AM
From: Robert Wakefield-Carl
Subject: RE: Question on detecting numeric variations in voice bot flows
Try adding NO_HINT to that slot.
------------------------------
Robert Wakefield-Carl
ttec Digital
Sr. Director - Innovation Architects
Robert.WC@ttecdigital.com
https://www.ttecDigital.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 08-09-2023 09:59
From: Paul McGurn
Subject: Question on detecting numeric variations in voice bot flows
So without the \b terminators, the Ask for Intent seems to be adding its own digits compared to what I actually say. In this test, I say "one-twenty-three forty-five sixty-seven eight" consistently. In two tests, I have one that puts an errant "9" at the end on the Ask for Ittent prompt, and on another, it inserted a "0" in the middle when I never said "zero" at all.
Bot utterance log

Actual transcript

Paul McGurn
Music lover. Amateur woodworker. Pandemic gardener.
Manager, Telecom & DevOps
New Hampshire
GoTo.com | O: +1.781.897.1320
Original Message:
Sent: 8/8/2023 10:02:00 PM
From: Robert Wakefield-Carl
Subject: RE: Question on detecting numeric variations in voice bot flows
can you try removing the /b and just use [0-9]{8}
------------------------------
Robert Wakefield-Carl
ttec Digital
Sr. Director - Innovation Architects
Robert.WC@ttecdigital.com
https://www.ttecDigital.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 08-08-2023 14:29
From: Paul McGurn
Subject: Question on detecting numeric variations in voice bot flows
So when I test this in Ask for Intent, it doesn't seem to map to the slot with a value, but it does take me down that slot's path. In my screenshot, I have Ask for Intent as noted in my previous post. If I say only actual numbers, one digit at a time, it works fine.
Examples:
12345678 matches the CaseNumber Intent AND writes that value to the slot
1 TEN 45678 goes down the CaseNumber intent path, but then it hits the Ask for Slot right below, which tells me it didn't do something properly.
One-Twenty Three-fifty-four seventy-five goes down the Case Number intent path, but also hits the Ask for Slot step instead of having the Slot filled from Ask for Intent.
If I'm expecting too much form the Ask for Intent step, I think I can just force the caller to say "case" and then send them down the CaseNumber path. It already works like that, so I'd just have to re-word my prompt on the Ask for Intent step.
------------------------------
Paul McGurn
Manager, Telecom & DevOps
GoTo
Original Message:
Sent: 08-08-2023 13:41
From: Robert Wakefield-Carl
Subject: Question on detecting numeric variations in voice bot flows
I almost never use built in types, but choose to use REGEX so I can customize input to specific types of information and length. For Instance if I am looking for license plates and I know it is 3 alpha then 4 numeric, I can use [a-zA-z]{3}[0-9]{5} to specifically listen for the alpha first and then digits second so the oh in abo305oh becomes abo3050 and that not abo3050o.
I agree with what you have there as it limits input to 8 numbers where Numeric has no limitation on the length.
------------------------------
Robert Wakefield-Carl
ttec Digital
Sr. Director - Innovation Architects
Robert.WC@ttecdigital.com
https://www.ttecDigital.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 08-08-2023 13:32
From: Paul McGurn
Subject: Question on detecting numeric variations in voice bot flows
Should I be using the Regex slot type in this case? I was testing with this as the value for the slot type. Are you using the OOTB numeric slot type and getting the positive results? If so, does this also work within an Ask for Intent
step, or just Ask for Slot
? My Ask for Intent has two paths at present. One covers a "product and interaction intent" path where we look for product and sales/support/billing phrases, and the other is entering case number. The goal on putting this in Ask for Intent
is that we can one-shot route the call if we get enough slot matches from their initial utterance, either by product/intent or by case number.
Right now, my Ask for Intent
step is worded like:
You can say things like "GoTo Resolve Support", "Buy GoTo Connect". If you have a case number, you can say "case or enter it now"
CaseNumberSlot is regex type using this as a matching value \b[0-9]{8}\b
I know I can add more, but I also know it's likely over-engineering it if I should be just using a numeric slot type.
------------------------------
Paul McGurn
Manager, Telecom & DevOps
GoTo
Original Message:
Sent: 08-08-2023 13:21
From: Robert Wakefield-Carl
Subject: Question on detecting numeric variations in voice bot flows
I have great success when I define the slot properly. For instance, my number 3103502010, I'll vary it by saying "35oh2502010" or "3ten3502oh1oh" et al and rarely see problems recognizing if I have the slot set to look for specific number set like [1-9]{1}[0-9]{9}.
------------------------------
Robert Wakefield-Carl
ttec Digital
Sr. Director - Innovation Architects
Robert.WC@ttecdigital.com
https://www.ttecDigital.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 08-08-2023 12:55
From: Paul McGurn
Subject: Question on detecting numeric variations in voice bot flows
Hi all,
I'm building a voice bot flow that collects a case number from the caller. Rather than forcing them to enter it on the key pad, I'd like to also support them speaking it. This works if I use precise pronunciation of the digits when testing, but I worry about scenarios where a caller may replace "0" with "o", which is pretty common in English language speaking. Does Genesys properly handle this in bot flows, or do I need to add some string manipulation to post-process the Slot variable before reading that back to the caller?
#ArchitectureandDesign
#ConversationalAI(Bots,AgentAssist,etc.)
------------------------------
Paul McGurn
Manager, Telecom & DevOps
GoTo
------------------------------