/Node-RED-Twitter-Workshop

These Node-RED flows use Twitter to introduce a variety of Node-RED visual programming techniques and simple ways to use the powerful Watson Cognitive services.

Apache License 2.0Apache-2.0

Node-RED Twitter Workshop

These Node-RED flows use Twitter to introduce a variety of Node-RED visual programming techniques and simple ways to use the powerful Watson Cognitive services.

These Twitter Node-RED recipes showcase:

  • A simple flow that watches a Twitter feed.
  • Perform Sentiment analysis of Tweets. You could retweet positive tweets or SMS tweets to your friends
  • Perform Tone analysis of Tweets using the Watson Tone Analyzer service
  • Speak Tweets using the Watson Text to Speech service
  • Store Tweets and Sentiment scores in a Cloudant database for historical analysis
  • Build a Node-RED Dashboard that charts Twitter hashtag sentiment history
  • Perform Image analysis of pictures attached to Tweets using the Watson Visual Recognition service
  • Build a Nutrition Image Analysis dashboard to report the ingredients and nutritional information from the USDA

You might want to learn from the Node-RED Twitter workshop that I wrote to teach Node-RED and Watson Cognitive services. Follow the step-by-step instructions to create all of these example flows.

If you're interested in trying these Node-RED recipes, find them here:

Scroll down in this README to preview screenshots of the Node-RED flows.

With a little bit of Node-RED Dashboard magic, you can create Dashboards that look like this: Nutrition Twitter Dashboard Screenshot

Node-RED flows in this repository:


A simple flow that watches a Twitter feed

Simple Twitter flow

Get the Code: Node-RED flow to watch a Twitter feed


Perform Sentiment analysis of Tweets

Search for positive or negative tweets. You could retweet positive tweets or SMS tweets to your friends. Sentiment Twitter flow

Get the Code: Node-RED flow that performs Sentiment analysis of Tweets


Perform Tone analysis of Tweets using the Watson Tone Analyzer service

Watson Tone Analyzer Twitter flow

Get the Code: Node-RED flow to perform Tone analysis of Tweets


Speak Tweets using the Watson Text to Speech service.

Watson Speech to Text Twitter flow

Get the Code: Node-RED flow to Speak Tweets


Store Tweets in a Cloudant database for historical analysis

. Download the flow Store Tweets in Cloudant flow

Get the Code: Node-RED flow to Store Tweets


Build a Node-RED Dashboard that charts Twitter hashtag sentiment history

Twitter Sentiment History Dashboard Screenshot

Twitter Dashboard flow

Get the Code: Node-RED Dashboard flow that charts Twitter sentiment


Perform Image analysis of pictures attached to Tweets using the Watson Visual Recognition service

Twitter Image Analysis Dashboard Screenshot

Watson Visual Recognition Image Analysis Twitter flow

Get the Code: Node-RED flow to perform image analysis of pictures attached to Tweets


Plot location of Tweets on a Map

Mapbox WorldMap Twitter Dashboard Mapbox WorldMap Twitter flow

Get the Code: Node-RED flow to plot Tweet locations


Build a Call for Code Natural Disaster Twitter Analyzer

Combine all of the flows in this tutorial into one dashboard that could be used as part of a Call for Code Natural Disaster Response application that listens to Tweets from survivors who mark themselves safe.

Call for Code Safe Twitter Dashboard Call for Code Safe Twitter flow

Get the Code: Node-RED flow to plot Tweet locations of Safe Survivors


Build a Nutrition Image Analysis dashboard

Build a Nutrition Image Analysis dashboard to report the ingredients and nutritional information from the USDA.

Nutrition Twitter Dashboard Screenshot

Nutrition Food Image Analysis Twitter flow

Get the Code: Node-RED Dashboard flow to perform image analysis of food Tweets