- Newest
- Most votes
- Most comments
You can configure timeouts for voice interactions with your Lex V2 bot in Amazon Connect by using session attributes in the "Get customer input" block that calls your Lex bot. For your specific use case of capturing spelled inputs like flight numbers, you should focus on these key timeout settings:
-
End Silence Threshold: Use the session attribute
x-amz-lex:audio:end-timeout-ms:[intentName]:[slotToElicit]to increase how long the bot waits after the customer stops speaking before assuming the utterance has concluded. This is particularly useful for spelled inputs where users pause between letters. The default is 600 milliseconds (0.6 seconds), but you can increase this to allow for pauses between spelled characters. -
Start Silence Threshold: Use
x-amz-lex:audio:start-timeout-ms:[intentName]:[slotToElicit]to control how long to wait before assuming the customer isn't going to speak. The default is 3000 milliseconds (3 seconds). -
Max Speech Duration: Use
x-amz-lex:audio:max-length-ms:[intentName]:[slotToElicit]to set how long the customer can speak before input is truncated. The default is 12000 milliseconds (12 seconds), with a maximum allowed value of 15000 milliseconds.
You can set these attributes specifically for the intent and slot that captures flight numbers, or use wildcards to apply settings more broadly. For example, to set an end silence threshold of 2000 milliseconds for all slots in a specific intent, you could use: x-amz-lex:audio:end-timeout-ms:FlightBookingIntent:* with a value of 2000.
These session attributes can be configured in the "Get customer input" block in your Amazon Connect contact flow, allowing you to customize the timeout behavior specifically for your flight number spelling use case.
Sources
Flow block in Amazon Connect: Get customer input - Amazon Connect
Configuring timeouts for capturing user input with a Lex V2 bot - Amazon Lex
StartBotConversation - Amazon Chime SDK
Relevant content
- asked 9 months ago
- AWS OFFICIALUpdated 3 years ago
