Link Search Menu Expand Document Moon Sun
Table of contents
  1. Top News Notification HTTP
  2. Download the flow

Top News Notification HTTP

The purpose of this theme is to allow the user to receive the new notifications from sports, business and politics. We use three different HTTp requests to get the top news from each topic. From the intent, we extract the specific topic name (e.g.: Politics) and pass it to a switch node called NotificationSelector, which then passes the information to the corresponding HTTP request node. From the HTTP node, the first topic is retrieved from the respective web pages and sent to the TTS node.

The intent is roughly as follows:

[GetNotificationForNews]
top new from economy{economy}
top new from politic{politics}
top new from sport
 

The TTS will then output the first message from the corresponding topic.

top_news_notification

Download the flow