cameronhunter / alexa

Monorepo of libraries used for Amazon Alexa development
MIT License
38 stars 10 forks source link

Add annotations for other Dialog directives #9

Open billyvg opened 7 years ago

billyvg commented 7 years ago

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

ricardocasares commented 6 years ago

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