sentiment analysis Flow
This flow analyzes input text using IBM Watson Natural Language Understanding and returns emotion scores like joy, sadness, anger, fear, and disgust.
[{"id":"1a2b3c4d5e6f7g8h","type":"inject","z":"flow1","name":"Sample Text","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"I love learning new technology but sometimes it feels challenging.","payloadType":"str","x":180,"y":140,"wires":[["abcd1234efgh5678"]]},{"id":"abcd1234efgh5678","type":"watson-natural-language-understanding-v1","z":"flow1","name":"Natural Language Understanding","service":"nlu","method":"analyze","analyze-feature":"emotion","text-or-html":"text","options":{},"x":440,"y":140,"wires":[["debug123456"]]},{"id":"debug123456","type":"debug","z":"flow1","name":"Debug Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":740,"y":140,"wires":[]}]