question

Tim Turner avatar image
Tim Turner asked

Output multiple responses from a single intent?

I would like to be able to call response.tell(...) in an intent, and then after a delay, call another response.tell(...) in an AWS Lambda environment. Is this something that is currently possible? You can see a more in-depth version of this question on StackOverflow: http://stackoverflow.com/questions/35817169/output-multiple-responses-from-a-single-intent
alexa skills kitdebugging
10 |5000

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

Steve A avatar image
Steve A answered
It doesn't look like you are looking for any user input between the responses, is that right? If so, could you have one response with a long pause. Pauses can be up to 10 seconds. See here: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/speech-synthesis-markup-language-ssml-reference#break Steve
10 |5000

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

Tim Turner avatar image
Tim Turner answered
The delay between the responses will be on the scale of minutes. Basically, I want to create an alarm that will go off X minutes after the intent handler is invoked. I don't need user input between the responses - perhaps there is a way to mimic the behavior of a native timer or alarm?
10 |5000

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

Steve A avatar image
Steve A answered
Tim, I don't think you can get a several minute pause (and you can't open a session without a user voice trigger, and you don't have any access to native alarms, timers, etc.) The only semi-hacky thing I can think of is to use ssml audio to play back audio (maybe empty?) during that interval. But that'll only get you 90 seconds: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/speech-synthesis-markup-language-ssml-reference#audio Steve
10 |5000

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

Tim Turner avatar image
Tim Turner answered
Hmm, okay. Thanks for the input, Steve. This Skill might have to be put on hold until (if) we're given more flexibility from Amazon.
10 |5000

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

jjaquinta avatar image
jjaquinta answered
I think what you are really looking for is "push notifications". This isn't supported, but is the #1 feature request. You can go find the feature request thread and +1 it if you like. Personally I do not think Amazon will ever implement this due to privacy and legal reasons.
10 |5000

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

April L. Hamilton avatar image
April L. Hamilton answered
Agree w/ jjaquinta, and would add this to the reasons why it may never happen: look how horribly push notifications have been abused in app development, email, and even in terms of auto-play videos on web pages. It seems there are far more [b]abuse[/b] cases than [b]use[/b] cases for push notifications.
10 |5000

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