I have an entity with type: @sys.number-sequence
, which matches a code 4 numbers long, for example: (Spoken) "1 2 3 4" or "1234".
In the Intent, if the user speaks a code that's 1, 2, 3, 5 or 6 characters in length and not just 4-long, this pattern does NOT match. So in the "User Says:" section, I had to add all of the below: 1 12 123 1234 12345 123456 (And map each one to my number-sequence entity)
... to handle all permutations of 1 through 6 long number sequences.
It's obviously a very hacky and ugly solution.
Is there a way I can define a number sequence type that will match any length of number sequence so that I can use it in phrase structures in a more flexible way?
In other words: I want to just define the placeholder match ONCE, and not have to redefine it for every length variation...
I don't see anything pertaining to "number sequence length" in the documentation of Dialog Flow types: https://dialogflow.com/docs/reference/system-entities