Hi Camila,
One approach you could try is using a slot with type any instead of builtin:number and then validating the value using a regular expression.
With the any slot, the bot will capture the full user input, and after that you can apply a regex validation to ensure the value is strictly a number within the expected range (for example 0–10). If the input contains words, interjections, or any other characters, the validation will fail and you can reprompt the user.
For example, you could validate the captured value with a regex like:
^(10|[0-9])$
This ensures that only numbers from 0 to 10 are accepted.
This approach gives you more control over validation compared to relying only on builtin:number, especially in voice scenarios where speech recognition may capture additional words along with the number.
------------------------------
Mateus Nunes
Tech Leader Of CX at Solve4ME
Brazil
------------------------------