Repository navigation
feat(system): confirmación nativa de Alexa para SystemIntent - #5
Merged
Merged
Conversation
Reemplaza el flujo de confirmación hecho a mano (pending_action en sesión + SystemConfirmHandler esperando Yes/No) por la confirmación de intent de Alexa. El "no" ya no depende de que Alexa lo enrute a AMAZON.NoIntent: llega como SystemIntent con confirmation_status. - SystemHandler: DENIED -> "Cancelado."; sin CONFIRMED -> Dialog.Delegate (por si no hay delegación automática); CONFIRMED -> ejecuta. - Se elimina SystemConfirmHandler y el estado de sesión. Queda StrayYesNoHandler para un Yes/No suelto (respuesta limpia en vez del exception handler). - conftest: make_handler_input acepta confirmation_status. Requiere en la consola: Intent Confirmation activada en SystemIntent con un prompt, y Build Model.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
Con la confirmación hecha a mano, decir "no" tras "apaga el pc" no funcionaba: Alexa enrutaba el "no" de vuelta a
SystemIntent(slotaction="no",ER_SUCCESS_NO_MATCH) en vez de aAMAZON.NoIntent, así queSystemConfirmHandlernunca lo veía y caía en "No entendí esa acción.".Solución
Usar la confirmación de intent nativa de Alexa. El modelo pide el "¿seguro?" y entrega un único
SystemIntentconconfirmation_status.SystemHandler:DENIED→ "Cancelado."; distinto deCONFIRMED→Dialog.Delegate(respaldo si no hay delegación automática);CONFIRMED→ resuelve la acción y ejecuta.SystemConfirmHandlery todo el estado de sesión (pending_action). QuedaStrayYesNoHandlerpara un sí/no suelto fuera de contexto.conftest.make_handler_inputaceptaconfirmation_status.Requiere en la consola (ya hecho)
Intent Confirmationactivada enSystemIntentcon prompt "¿seguro?" + Build Model.