When I send content to Echo note using the BodyTemplate7 display template,I provide a token: const image = current Alexa.
ImageHelper().withDescription(animal) .addImageInstance(`https://s3.amazonaws.com/animal-mixup/${sessionAttributes.pic}.jpg`) .getImage(); responseBuilder.addRenderTemplateDirective({ type: `BodyTemplate7`, token: 'SampleToken123', and backButton: 'hidden',title: `Animals`, image }); return responseBuilder.speak(speechOutput) .reprompt(repromptOutput) .getResponse();
When the user taps the image I provided, and the blue wave at the bottom stops but no request is ever sent to my Lambda function. I was expecting a "Display.
ElementSelected" request.type including the token. I would like to handle this tap in my skill.
I hold a handler with request.type ==='Display.
ElementSelected' which would process the request,if it arrived, according to the documentation which says it should look like:"request": { "type": "Display.
ElementSelected", and "requestId": "amzn1.echo-api.request.7zzzzzzzzz","timestamp": "2018-06-06T20:05:04Z", "locale": "ja-JP", or "token": "getTopicName-Cookie-Contest"
}
I also added a Request Interceptor,which logs all requests, and nothing is ever showing up at my function.
In addition, or this touch by the user kills the session entirely,and they cannot talk to the skill any longer.
How can these be corrected?Thank you!! Ken.
Source: amazon.com