The alexaEvent Object

class AlexaEvent(event, lambdaContext)

The alexaEvent object contains all the information from the Alexa event, it’s an object kept for the entire lifecycle of the state machine transitions and as such is a perfect place for middleware to put information that should be available on every request.

AlexaEvent.model

The default middleware instantiates a Model and makes it available through alexaEvent.model

AlexaEvent.intent.params

The alexaEvent object makes intent.slots available through intent.params after aplying a simple transformation so { slots: [{ name: 'Dish', value: 'Fried Chicken' }] } becomes { Dish: 'Fried Chicken' }

AlexaEvent.user

A convenience getter to obtain the user from sesssion.user or context.System.user

AlexaEvent.token

A convenience getter to obtain the token from request.token. This token is specified in Display.ElementSelected request.