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

Intent confirmation #255

Open adriendomoison opened 7 years ago

adriendomoison commented 7 years ago

Hello,

I was wondering how was the intent confirmation integrated with the framework? I couldn't find anything about it, maybe it is still under development? Here is the feature I am referring to in the Alexa Skill Builder (beta).

https://goo.gl/photos/4jdyjChyLEiJ4jbN7

Thanks !

Ps: I love this framework!!

dblock commented 7 years ago

Doesn't look like we support anything explicitly for this, please contribute.

ericblade commented 7 years ago

I thought we added the confirmation stuff with the conversation stuff right after the directives

On Jun 30, 2017 10:55 AM, "Daniel Doubrovkine (dB.) @dblockdotorg" < notifications@github.com> wrote:

Doesn't look like we support anything explicitly for this, please contribute.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alexa-js/alexa-app/issues/255#issuecomment-312289549, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYnR8kmusHGo4Cr0hKVAWa_v74x3oGxks5sJQxfgaJpZM4OI_bY .

dblock commented 7 years ago

@ericblade Did we? Link?

dblock commented 7 years ago

You mean https://github.com/alexa-js/alexa-app/pull/250? Does that do what you're describing @adriendomoison ?

ericblade commented 7 years ago

I guess "we" (i mean the people that aren't me that are contributing with more than conversation right now :) ) did the confirmation before the dialog. https://github.com/alexa-js/alexa-app/commit/b4e110647d167f06d56269186298d2d66bdd7f8c #248

adriendomoison commented 7 years ago

I am not sure what is the dialog feature, the Alexa skill builder feature I am talking about allows you to preset some sentences that alexa can say, so I guess the framework would have to be able to retrieve this list? I am not familiar with this confirmation feature yet so I am not sure about how it is suppose to work exactly.

ericblade commented 7 years ago

So, I haven't worked with the feature yet, but the basics of it seem to indicate that it provides you a way to get the Alexa service to prompt (with multiple prompts if necessary) for all the information required to trigger an Intent, before contacting your skill with it.

https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/dialog-interface-reference#dialog-reqs

This is likely faster / more responsive .. but less flexible.. than building your own conversation handler to deal with it.

It appears that you provide a prompt to the user to confirm that all of the info it's about to send to the skill is correct, and then it provides it to your skill.