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
If you are using Node-RED in Bluemix you can now connect your flow to MQ Light using the new input and output nodes.
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:
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.