Hello, I'm currently working on adding Alexa Voice Service to a hardware prototype that I'm building. My understanding is that I can build Alexa into the software running on my hardware and let users use my hardware to communicate with Alexa.
With this in mind, I've currently added Alexa to my MacOS for testing purposes. The hardware prototype I'm building also has a screen, so I'd like to know Alexa's current state (whether she is listening, talking, idle, etc. ) and show that on my hardware screen, as well as eventually display cards and information that Alexa responds with.
It's been difficult to find what kind of flow I would require to integrate this functionality into my software. Currently I'm trying to implement OAuth using a companion site, since users can interface with my prototype through a web site. I'd like them to log into their amazon account and then use their access token for all subsequent communication with Alexa.
The two problems I have now are:
1) I've implemented the OAuth using the companion site, but every time the user logs in with their credentials and grants the AVS splash page consent to proceed, I get a 500 error and a page that says
An error occurred when we tried to process your request. Rest assured, we're already working on the problem and expect to resolve it shortly.
I've cross-checked multiple times to make sure I'm using the right information, but I have no idea how to debug this.
2) Even once I have the OAuth working, how do I exactly interface with Alexa from my nodeJS application? How do I read the states, receive display cards in my software?
It's been quite confusing to follow the docs, and it might be the case that I'm misinterpreting the flow. Any guidance to point me in the right direction would be appreciated.