Serve Up a “Flash Briefing” Newsfeed for Echo Devices
Alexa’s flash briefing is a newsfeed that’s similar to a Really Simple Syndication (RSS) feed. When asked, “Alexa, what’s in the news?”, Alexa’s servers send out an HTTP GET request to a preconfigured URL, such as https://your-lita-bot.herokuapp.com/alexa/newsfeed. Your bot returns a JSON-formatted list of news items.
The following is a sample JSON response from a working news feed. Notice the unique identifier (uid) for each post, the timestamp, the embedded URL, and the two text fields. Your Lita skill needs to supply each of those when queried by Alexa.
| [{ |
| "uid": "e3d7a7cd-f67d-445b-a1d6-5e5852b63384", |
| "updateDate": ... |
Get Build Chatbot Interactions now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.