bespoken / virtual-alexa

:robot: Easily test and debug Alexa skills programmatically
https://bespoken.io
Apache License 2.0
112 stars 35 forks source link

Add dialog support #13

Closed jkelvie closed 6 years ago

jkelvie commented 6 years ago

Add support dialog-based interactions

allthepies commented 6 years ago

Hi, any update on this ? I'd love to use virtual-alexa as part of my automated testing but lots of my skills use the dialog interface and I can't create useful test cases for intents using a dialog.

bokostmu commented 6 years ago

I also wanted to ask for an update on this. I have the same problem as allthepies and make extensive use of the dialog interface. A function to set my own properties for the request would be allready enough for me, so i could set the request.dialogState manually.

jperata commented 6 years ago

@bokostmu there is already a function to take the request and a function to modify it. You can use filter function from the virtual Alexa instance to add a function that receives the request and modify it as you need.

allthepies commented 6 years ago

Yes, I now use the filter function to manipulate the dialogState and slot contents. I'm able to test Dialog based skills satisfactorily.

KidA001 commented 6 years ago

@jperata @allthepies is there any documentation or examples on this?

bokostmu commented 6 years ago

@KidA001 Look at this Issue: https://github.com/bespoken/virtual-alexa/issues/19 . The example given by jkelvie worked for me for understanding.

jkelvie commented 6 years ago

Hi @KidA001 - we were overdue to improve our docs on this - aside from the issue mentioned by @bokostmu (and thanks for providing that), take a look at this: https://github.com/bespoken/virtual-alexa/blob/master/docs/Filters.md

jkelvie commented 6 years ago

Hello, we have added support for this as part of virtual alexa. You can read about it here: https://github.com/bespoken/virtual-alexa/blob/master/docs/Dialog.md