- Newest
- Most votes
- Most comments
When you define the utterances for your bot, you can include the DTMF text values of the digits, like David suggested here. So if you want the user in addition to stating their intent, to also enter a digit, all you have to do is add "one" or "two" as part of the utterances you train your bot with.
In the English intent put "one" in the slot, for Spanish slot of "two". Then try your DTMF and speech.
david
Good afternoon, I hope you can help me. I have a similar scenario in which I need to give the user the option to select the language they want or type the number corresponding to that language (1, 2, 3). I think this might be the solution, but I don't understand what additional configuration is required. I think the slot needs to be added to the intent (for example, select language), but the slots aren't supposed to be executed once an interaction such as "I want to select a language" is identified. Since in my scenario, the user is directly told to select their language, there's nothing that executes the intent to start executing the slots. If you could explain how to do this, it would be very helpful, or provide a link that explains the entire implementation more clearly. Thank you very much in advance!
You’re thinking about this in the wrong order. The get customer input block will play a prompt. For English press 1 or say English. For Spanish press or say… So the customer is already asked a question and then Lex will hear the response and match it to a slot.
Thanks dmacias & Magda,
I did achieve the results by add the numbers under slot values.
Relevant content
- asked 2 years ago
- asked 10 months ago
- asked 6 years ago
- AWS OFFICIALUpdated 5 years ago
- AWS OFFICIALUpdated 3 years ago

I found these articles that the Lex can support the DTMF. But not sure, how can I map 1 for English, 2 for Spanish, etc.. Just enabled these parameters for the Lex from the contact flow
x-amz-lex:allow-audio-input:<intentName>:<slotName> x-amz-lex:allow-dtmf-input:<intentName>:<slotName>