Building a personalized news bot

We now have a news bot that tweets news (or posts status updates) on its own timeline. We will look at how to set it to run on a regular basis in a little while. Let us now build a more interesting bot that can tweet to its followers using the news stories that they might like. In other words, let's personalize the news:

  1. Let's assume that we have information about the users and their interests. Add the following to the tweeter.js file. For now, we are hardcoding the user interests information into the code itself. Later we will see how they can be stored and retrieved from a database:
var userInterests = [{'screen_name':'srinivasancj',                             'user_interest': 'technology'}];
  1. Create a tweetUserSpecificNews module ...

Get Hands-On Chatbots and Conversational UI Development 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.