test

test

[{"id":"4df3d82b.cb9d18","type":"http in","z":"6f7e6e69.76db2","name":"","url":"/facebook","method":"get","upload":false,"swaggerDoc":"","x":200.5,"y":126,"wires":[["68917d2c.3303f4"]]},{"id":"68917d2c.3303f4","type":"change","z":"6f7e6e69.76db2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"req.query.message","tot":"msg"},{"t":"set","p":"user","pt":"msg","to":"req.query.user","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":261.5,"y":212,"wires":[["33c3d964.03ca56"]]},{"id":"33c3d964.03ca56","type":"watson-conversation-v1","z":"6f7e6e69.76db2","name":"","workspaceid":"95a77cec-fb25-48e3-bab3-3065d034d185","multiuser":true,"context":true,"default-endpoint":true,"service-endpoint":"https://gateway.watsonplatform.net/conversation/api","x":447.5,"y":236,"wires":[["a07a114.b3460f"]]},{"id":"a07a114.b3460f","type":"function","z":"6f7e6e69.76db2","name":"","func":"var wc_output = [];\nif(msg.payload.output.text)\n{\n    for(x=0;x<msg.payload.output.text.length;x++)\n    {\n        wc_output[x] = msg.payload.output.text[x];\n    }\n    msg.payload = wc_output;\n    return msg;\n}\nreturn null;","outputs":1,"noerr":0,"x":543.5,"y":314,"wires":[["69a671e9.47218"]]},{"id":"69a671e9.47218","type":"http response","z":"6f7e6e69.76db2","name":"","statusCode":"","headers":{},"x":678.5,"y":136,"wires":[]}]
frubby

Flow Info

created 1 month, 1 week ago

Node Types

Core
  • change (x1)
  • function (x1)
  • http in (x1)
  • http response (x1)
Other

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option