'Talk to Alexa API without any specific skill
I need to create an intent-based chatbot with AWS Lex. It has some intents and responses, but if it doesn't identify any specific intent, it must get a response from Alexa (e.g., "What time is it now?", "What is the height of Lady Gaga?"), so that it looks more natural. Voice is not needed, just plain text.
There's a Alexa simulator available in Alexa developer console (see image), which is exactly what I need, bit I couldn't manage to reproduce it in a programatic way (API's or containers). I've tried to use a container with Alexa Skill Kit (ask), but it simulates only custom skills, not full Alexa behaviour. Everything I found on internet relates to creating Alexa Skills, but I don't want a Skill, I just want the regular responses from Alexa.
What could be a manner to talk to Alexa via API or Docker, so that given a phrase it returns an Alexa response? It doesn't need to be Alexa, provided that it returns responses for those simple questions, but so far Alexa seemed to be the best choice for answering them.
Thanks in advance.
Solution 1:[1]
angelo,
It sounds like there are two parts to your question.
- How to configure a catch-all type intent in Lex
- How to call Alexa programatically
With regards to Lex, you can make use of the built-in Fallback intent which will handle all inputs that Lex is not able to correctly assign to an intent, slot etc.
By adding a Lambda to the Fallback intent, you can then invoke the Alexa API's with the user's input.
Solution 2:[2]
From this post, It's not possible to use an API to talk to Alexa just as one would do with an EchoDot, even for plain text. The simulation tool from developer console, which allows to talk to Alexa normally, is restricted to the web page.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Reegz |
| Solution 2 |
