I am looking to have the user input their account number via voice or DTMF. If they choose to input their account number verbally, the agent needs to understand both English and Spanish. I have created a RegEx entity which restricts the account number to 10 digits and added the parameter with the entity to the page. This all works for English perfectly, but does not work for Spanish. Any ideas on how I could get this to except and translate Spanish spoken numbers into numbers?
Any and all help is appreciated!
Hi @JosephPHX In Dialogflow CX, the issue isn’t your RegEx it’s speech recognition.
For Spanish, spoken numbers are transcribed as words (e.g., “uno dos tres”) instead of digits, so your \d{10} RegEx won’t match.
To fix this:
• Enable Spanish (es or es-ES / es-US) as an additional agent language.
• Add Spanish training phrases for digit-by-digit input (e.g., “uno dos tres cuatro…”).
• Use a system number entity or a custom entity with both numeric and word variants.
• Optionally add a webhook to normalize Spanish number words into digits before validation.
If users speak digits one by one, the most reliable approach is handling normalization in a webhook rather than relying purely on RegEx.
Hello @a_aleinikov. I created a custom entity which has synonyms for the Spanish numbers. This seems to work with the exception that it is only capturing the last digit said and converting it to a number. How would I go about capturing a 10 digit number said in Spanish and having it convert to numbers without using a RegEx?