Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Issues with capturing digit sequence on dialogflow CX

I've a usecase where I need to capture SSN entity both via voice and DTMF.

I've implemented it using sys.number-sequence entity and it worked fine for both DTMF and voice.

But for the past few weeks the sys.number-sequence entity is behaving wierdly , its adding an extra digit to the spoken nine digits and this is happening specifically for voice

for example :
input is : 010285669 the entity will capture it with extra 0 or 2 something like 0102856069 making it 10 digits and its doing it most of the time.

I also tried to replace the number-sequence entity with regex entity ^[0-9]{9}$ and I am getting the same behavior its like the STT making it a 10 digit sequence even if nine digits are spoken

Please let me know if there is any work around or something else can be done
Thanks

 

 

0 1 320
1 REPLY 1

Hello Mohammad_Anas,

Welcome to Google Cloud Community!

Here are the alternative workarounds for SSN entity capture issue:

  1. Custom Entity with More Specific Regular Expression: While you've already tried ^[0-9]{9}$, you could experiment with a more specific pattern that explicitly captures SSN formats. For example: ^\d{3}-\d{2}-\d{4}$ This pattern matches SSN numbers in the common format "###-##-####".

  2. Use different system entity rules: System entity rules are enabled by default when you enable DTMF. In the image below you may try to change your Type name since the DTMF pattern is also similar to your currently using which is sys.number-sequence.

    Screenshot 2024-09-04 12.44.25 AM.png
  3. Filling a Feature Request: If the issue still persists you may file this as a feature request. Please note that I can't provide any details or timelines at this moment. However, you may keep an eye on the release notes for any latest updates or new features related to Dialogflow CX.

I hope the above information is helpful.