keatontaylor / alexa-actions

A README and associated code to get actionable notifications setup for Alexa devices.
GNU General Public License v3.0
399 stars 187 forks source link

Dynamic OK #160

Closed elmar-hinz closed 1 year ago

elmar-hinz commented 1 year ago

I like to come up with an alternative to ok_suppression: https://github.com/keatontaylor/alexa-actions/discussions/158 to improve dialogues. It's an alternative to, not a replacement of the suppression feature. That's why I give it it's own feature request.

While suppression is followed by a new call to the skill or a call to the media_player, this idea executes it all within one connection to the skill, by planning ahead.

Let's say the possible answers are YES and NO. Then we send along with the question one response per possible answer:

{
event_id: 123,
text: "Do you want to hear some music?",
confirmation_yes:  "Here we go.",
confirmation_no: "Maybe later."
}

This dynamically replaces the dumb okay confirmation. Compared to the suppression feature the latency is reduced.

elmar-hinz commented 1 year ago

This would require some conceptional work before, to get a uniform configuration.

For example in case of a number intent there could be a level to separate to different confirmations. "You like it cold!", "You like it hot!".

DEADSEC-SECURITY commented 1 year ago

Lets first figure out #158 and then i can work on this. This might be a bit harder to implement for now

DEADSEC-SECURITY commented 1 year ago

Well this would make supression #158 kinda useless cuz you could pass false or none or a empty string to supress a response for yes or no for example

DEADSEC-SECURITY commented 1 year ago

Well for other intents I was wondering how to set them up cuz i think its not very intuitive to have like 2 settings for every intent. Do you have anything in mind? @elmar-hinz