question

Lucca Cary avatar image
Lucca Cary asked

Best way to design intents/dialogs to record a length of time in an Alexa skill

Any ideas on the best way to design functionality where a user triggers an intent (e.g: startRecording) and then when a period of time is over, the user stops recording and the length of time is recorded? Is there a way to do this with 1 intent or apiHandler? At the moment, the only way I can think of is defining 2 separate intents (startRecording and stopRecording), and then calculate the difference in time between when the the user triggers startRecording and stopRecording obtain duration. Can I do this with an Alexa conversations differently/more effectively?

alexa skills
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jason@Amazon avatar image
Jason@Amazon answered

It isn't possible to accurately determine the length of time a user triggers an intent or how long the user needs to respond. Your idea of two separate intents would technically work, but generally this isn't a use case that is currently supported.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.