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
------------------------------
Original Message:
Sent: 03-11-2026 14:16
From: Camila Meneghini
Subject: How can I make the bot's slot capture only spoken numbers?
Hello, when creating a bot to receive information by voice, we use an existing slot with builtin:number and a prompt asking the user to give a rating from 0 to 10.
When the information is received, if the response contains words or interjections, the slot still captures that input.
Is there a way to make the bot's slot register only spoken numbers, without capturing letters or words?
#Architect
------------------------------
Camila Meneghini
------------------------------