question

Greg Laabs avatar image
Greg Laabs asked

20 Questions (video and source)

I thought it might be fun to play 20 Questions with Alexa. Turns out it's VERY fun. This is an app that essentially just gives you a verbal interface to 20q.net. Video: https://www.youtube.com/watch?v=rhwcQAwKbOg (ignore the bug at the end - it's been fixed I swear!) Source Code: https://github.com/OverloadUT/alexa-20q
alexa skills kitshowcase
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

James Chivers avatar image
James Chivers answered
Nice work! :) I looked at exactly this myself a couple of weeks ago but found there was no 'official' API and wasn't sure whether I should improvise or not. Glad to see it brought to life on Echo, as I think it's a great fit for such. Your very clean code has convinced me to give it a go on Lambda, so thank you very much for sharing :)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Greg Laabs avatar image
Greg Laabs answered
Yeah, it's a bummer that there is no API at all, so I am having to simply scrape the DOM and do it the hacky way. The cool thing is that they made it in a way that makes this very easy. All of the session info is passed via the URL parameters as opposed to cookies, which keeps things simple for me. However, it's the reason I would not actually distribute this app sadly.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.