alexa icon indicating copy to clipboard operation
alexa copied to clipboard

Add annotations for other Dialog directives

Open billyvg opened this issue 8 years ago • 1 comments

  • [ ] Dialog.ElicitSlot
  • [ ] Dialog.ConfirmSlot
  • [ ] Dialog.ConfirmIntent

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

billyvg avatar Aug 03 '17 19:08 billyvg

Could you provide an example of usage for Dialog.Delegate decorator? I was trying to use it but I haven't succeeded.

BTW, in my code I'm using the Dialog.ElicitSlot this way:

import { Dialog } from "../constants";

export const ElicitSlot = slot => ({
  type: "Dialog.ElicitSlot",
  slotToElicit: slot
});

Then in my skill:

import { ElicitSlot } from './somewhere';
// ...
return Response.ask('What is your name?').directives(ElicitSlot('name'))

I can create a PR if you point me where should I create this directives, from what I've seen I think it belongs to the alexa-response package, just like AudioPlayer we could have Dialog

ricardocasares avatar Mar 02 '18 15:03 ricardocasares