OneBusAway / onebusaway-alexa

An Java-based app to communicate with Amazon Alexa for devices such as the Amazon Echo
Other
52 stars 18 forks source link

Implement AMAZON.CancelIntent intent #94

Closed barbeau closed 7 years ago

barbeau commented 7 years ago

Summary:

From https://github.com/OneBusAway/onebusaway-alexa/issues/93 - looks like there is a (relatively) new AMAZON.CancelIntent that we need to implement to support the user saying "Cancel" to exit the skill. We should be able to treat this the same as AMAZON.StopIntent, which we already support.

Certification says:

The skill does not exit when users say "cancel". Please see test case 4.13 from our Submission Checklist for guidance on skill exiting.

Steps to reproduce:

User: "Alexa, open one bus away".

Skill: "Welcome to OneBusAway! Let's set you up. You'll need your city and your stop number. The stop number is shown on the placard in the bus zone, on your transit agency's web site, or in your OneBusAway mobile app. In what city do you live?".

User: "Cancel".

Expected behavior:

Skill: "Goodbye".

Observed behavior:

Skill: "OneBusAway could not locate a OneBusAway region near cancel, the city you gave. Supported regions include Atlanta, Puget Sound, Rogue Valley, Oregon, San Diego, Tampa Bay, Washington, D.C., and York. Tell me again, what's the largest city near you?", and the session remains open.

Device:

Certification feedback

barbeau commented 7 years ago

Working on this...