test
-
-
Save frubby/d710af58217195cd8d8944262f53983f to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"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":[]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment