alexa-js / alexa-app

A framework for Alexa (Amazon Echo) apps using Node.js
https://www.youtube.com/watch?v=pzM4jv7k7Rg
MIT License
1.03k stars 213 forks source link

Progressive Response #327

Open orlylev opened 6 years ago

orlylev commented 6 years ago

There is an option to send a Progressive response? https://developer.amazon.com/docs/custom-skills/send-the-user-a-progressive-response.html#when-to-send-progressive-responses

malikov commented 6 years ago

nope you just have to get the data from the data field and do it yourself

tejashah88 commented 6 years ago

While it's not natively implemented, you can use custom directives to effectively do this.

peterjgrainger commented 5 years ago

But will the directive be sent back with the response? The point of the progressive response is that it is sent before the response while the user is waiting.

I'm happy to do a PR for this, the function name would be progressiveResponse accepting one argument, a string?

It would send an API call to the correct api location as SSML like the response function and return a promise.

stackerine commented 5 years ago

Progressive response made me crazy! No way to send 2 speaches. One before the request and one after with the response. I'll be happy if someone can post an example with custom directive as I didn't manage to used it. Thank a lot...