Such a great post from Matt Whitehead of the MQ Light team showing you how to harness the power of Watson using Node-RED with Bluemix. Just check this out from the MQ Light blog

https://developer.ibm.com/messaging/2014/10/10/mq-light-nodes-available-node-red/

Matt writes…

If you are using Node-RED in Bluemix you can now connect your flow to MQ Light using the new input and output nodes.

mqlight input node MQ Light nodes are now available in Node RED                               mqlight output node MQ Light nodes are now available in Node RED

Using the nodes you can offload work from your application to be processed by a Node-RED flow, using function nodes, sentiment analysis, IBM Watson Q & A, or any other function Node-RED provides. Then you can have the flow return the results back to your application as an MQ Light message.

Here’s a simple flow I created using the new nodes:

mqlight flow example 1024x331 MQ Light nodes are now available in Node RED

I’ve configured an MQ Light input node to subscribe for messages on the topic ‘data’, and wired the node to both a sentiment analysis node and an IBM Watson Q & A node. The results from the two parts of the flow are returned to my application on the topics sentiment/response and watson/answer respectively. I’ve also used a function node to prevent answers from Watson being sent back to my application if the confidence of the answer isn’t high enough.