Refunding a Purchase

Hopefully our users will never second guess their decision to buy the Magnificent Moons package. But in the event that they have buyer’s remorse, we should offer them a means to return their purchase for a refund.

To do that, we’ll add a new intent through which a user can ask for a refund. In the interaction model, the intent is defined like this:

 { "name": "RefundIntent", "samples": [ "refund the {productName} pack", "return the {productName} package", "return the {productName} extension" ], "slots": [ { "name": "productName", "type": "ADDON_PRODUCTS" } ] },

As defined here, when the user wants a refund, they can say, “refund the Magnificent Moons pack,” ...

Get Build Talking Apps for Alexa now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.