The reply
Object¶
-
class
Reply
(alexaEvent[, message])¶ The
reply
object is used by the framework to render Alexa responses, it takes all of yourstatements
,cards
anddirectives
and generates a proper json response for AlexaArguments: - alexaEvent (AlexaEvent) –
- message – A message object
-
Reply.
append
(message)¶ Adds statements to the
Reply
Arguments: - message – An object with keys
ask
,tell
,say
,reprompt
,card
ordirectives
keys. Or anotherreply
object
Returns: the
Reply
object- message – An object with keys
-
Reply.
toJSON
()¶ Returns: An object with the proper format to send back to Alexa, with statements wrapped in SSML tags, cards, reprompts and directives