Suggestions, please, for Alexa skill that triggers automation based on Yes/No response

Since it doesn’t exist, I’m going to try to write an Alexa skill that will ask a question, wait for a yes or no response, then take action accordingly. The thing is, I want it to be modular so it can be used in any number of scenarios. I think the flow looks something like this…

  1. HA triggers Alexa to say [whatever the question needs to be]
  2. HA triggers Alexa skill that listens for a yes/no response. (Anyone know if an Alexa skill can be triggered without Alexa saying anything? If she has to say something, I guess it could be “Please respond with yes or no.”)
  3. Alexa gets her response evaluates it and does [something] if it’s yes, [something else] if no.
    The [something]/[something else] needs to be something that HA is watching for. Some sort of generic [AlexaYES] or [AlexaNO] marker or signal that HA is expecting to see (because HA started this in step 1). Maybe it’s a one-time MQTT message… (can Alexa do that?) maybe something else, I’m not sure - this is where I really need some input. The point is, since HA started the whole thing, HA(/Node-RED) knows what to do with an [AlexaYES] or [AlexaNO] marker/signal/message and the automation that’s triggered is specific to the original question. I hope that’s making sense. Let me try to explain it another way…

So the question can be almost anything. You would define it as part of the automation/flow. And the actions taken can be anything - like the question, they are specific to and exist within the context of the automation. The yes/no part (Alexa’s role in the automation) is therefor nonspecific and can be used in an infinite number of automations.

I’ll throw out an example to further clarify…

Automation For Playing Music
HA sees that someone is home and not in bed. It has been over an hour since the TV was turned off and no music has been playing for an hour.
HA triggers Alexa to say, “It’s awfully quiet around here. Would you like me to play some music?” Then triggers the AlexaYesNo custom skill.
Alexa listens for a response, evaluates the answer and puts something out that HA is waiting to see.
HA triggers a sequence of actions to turn on the home entertainment system and play some music (or not) based on the response.

Thoughts? Comments? Suggestions?

how it went?