Form a response object that satisfies the requirements of a response to an Alexa custom skill request. All objects returned for an Alexa custom skill should be an object formed using this function.
1 | alexaResponse(output, card, reprompt, attributes = NULL, endSession = FALSE)
|
output |
A character string containing the words Alexa should read back
to the request. Converted to |
card |
A list containing the contents of the card to be displayed in response to the request. See https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference#card-object for more information about how the card should be structured. |
reprompt |
A character string representing the |
attributes |
A list of data to attach to this Alexa session. Subsequent
requests from this session will include whatever data you provide here in
the Note that every response must include all attributes that you wish to
persist. If you return a single response of any type that doesn't include
any attributes, then all attributes will be cleared from the session
immediately. Thus, if you want to persist session state across requests,
you'll need to carry these attributes forward through each response, by
passing back the |
endSession |
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.