I'm trying to find a way to make an alexa skill speak(response) when it receives an external non-vocal event. The application receives an event that occurs on amazon-sqs inside a queue. The lambda application is connected and triggers the event that happened through the function:
def lambda_handler(event, context)
At this point I would like the skill alexa to answer me by telling me that the event has occurred. To do this I should create a Json input to send to the skill, I can record the data of event ['session'] when i'll start the skill but how can I pass the data of event ['request'] to launch an intent?
For example this is the json input when i lunch a request by the alexa simulator:
{
"version": "1.0",
"session": {
...
},
"context": {
"...
},
"request": {
...
}
}
I can recreate the session dictionary by saving the data on a dynamodb table, but for the context and request?
Maybe my approch is completely mistaken. How can i do?