I'm trying to create a DialogFlow intent that will ask the user for an account code. Account codes are alphanumeric and can be up to 10 characters. I originally setup my intent with a @sys.any parameter which does collect the input. However with voice recognition it struggles as it's not a word as such. For example if I say the account code X36501 it gets interpreted as 'x3650 one'.
What I thought I could do is create an entity called accountCode with a list of entries (synonyms turned off) for example :
X36501
ZZZZ01
ABC100
I then changed the intent parameter from @sys.any to @accountCode. I was hoping it would select the nearest value it could match based on the recognition. However it now fails to fill the parameter value at all.
Is there any other way to achieve this? Any way of defining a pattern/regular expression for guiding the voice recognition?