Some user preferences on a smart speaker use number values. For example the timer countdown to sleep mode or low power mode and also the default volume level preferred by the user.
Here is the full dialog that the program should create with the user. Read, copy and re-use the code you already have for entering the timer value.