Posts

Showing posts with the label alexa

Multiple Authorities in resolutionsPerAuthority on an Alexa skill request

Image
Clash Royale CLAN TAG #URR8PPP Multiple Authorities in resolutionsPerAuthority on an Alexa skill request I have been working on an Alexa skill and till date it worked fine but today i have encountered a strange issue. The similar issue can be seen in other skills as well. The issue is that i am getting multiple authorities in resolutionsPerAuthority of my skill's request JSON. These authorities have different status code for match of slot values. Hence my code is finding difficulties because resolutionsPerAuthority is supposed to have only one object. I am using the code provided in official docs of amazon to get slot values and it it failing due to this very scenario. Anyone else facing the similar issue ? Any solutions? Here is my request JSON: { "version": "1.0", "session": { "new": false, "sessionId": "amzn1.echo-api.session.f4bf3a11-f882-4732-9275-6e494e0bca4d", "application":...

capture alexa response json

capture alexa response json I would like to capture Alexa response and do some processing outside AWS Lambda. Maybe a view I would like to create with bar charts and on update it at runtime based on alexa response. How should I do that? I can create an independent alexa working skill. 2 Answers 2 From AWS Lambda, you need to make an HTTP Post request to your website where your bar chart is served so that you can update your bar chart. In order to post the response of the user, you need have an intent and then capture the user's response via slots. I am assuming you are using Node.JS for the implementation of skill, otherwise you can find similar section of documentation for the language of your choice. You can leverage Response Interceptor for your purpose. Follow this link: https://ask-sdk-for-nodejs.readthedocs.io/en/latest/Request-Processing.html#request-and-response-interceptors https://a...