Skip to content

Instantly share code, notes, and snippets.

@erikneto
Created March 22, 2017 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikneto/531a9130bc84565597aa543dc872ceb8 to your computer and use it in GitHub Desktop.
Save erikneto/531a9130bc84565597aa543dc872ceb8 to your computer and use it in GitHub Desktop.
Watson conversation for ChatFuel

A simple flow to integrate Watson Conversation with Chatfuel and facebook.

[{"id":"7d7197c1.c00448","type":"http in","z":"ef0d6226.8b606","name":"","url":"/watson/chat","method":"get","swaggerDoc":"","x":132.5,"y":51,"wires":[["a1c0f2f8.c3a9e"]]},{"id":"a1c0f2f8.c3a9e","type":"change","z":"ef0d6226.8b606","name":"change","rules":[{"t":"set","p":"payload","pt":"msg","to":"req.query.mensagem","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":301.5,"y":52,"wires":[["123bc358.76966d"]]},{"id":"123bc358.76966d","type":"watson-conversation-v1","z":"ef0d6226.8b606","name":"","workspaceid":"6a6631a8-c931-4c4d-9cff-06e844a1b04d","multiuser":false,"context":true,"x":455.5,"y":52,"wires":[["17598d5f.a68dc3","7df4010d.28f02"]]},{"id":"17598d5f.a68dc3","type":"function","z":"ef0d6226.8b606","name":"","func":"msg.payload = [{\"text\":msg.payload.output.text[0]}];\nreturn msg;","outputs":1,"noerr":0,"x":616.5,"y":57,"wires":[["af7de341.91923"]]},{"id":"af7de341.91923","type":"http response","z":"ef0d6226.8b606","name":"","x":797.5,"y":56,"wires":[]},{"id":"7df4010d.28f02","type":"debug","z":"ef0d6226.8b606","name":"","active":true,"console":"false","complete":"false","x":433.5,"y":321,"wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment