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

how to know which utterance is triggered? #19

Closed rstormsf closed 9 years ago

matt-kruse commented 9 years ago

You don't get to know. That is a limitation of the Alexa Skills Kit. You only get to know which intent was triggered.

rstormsf commented 9 years ago

:-( Thank you for your answer. Maybe I can just save to the whole variable and then access as req.slot ?? how would you handle this if I have the following utterance?

"utterances":["{Can you |}{get a taxi|get taxi|get a cab|order taxi}"]

so it can support nested utterances? or alexa utterance don't allow to have nested vars?

rstormsf commented 9 years ago

Looks like it's not possible. Ok, I can access speeachOutput how about access which intent was triggers in postRequest function?