watson-developer-cloud / conversation-connector

The Conversation connector is a set of components that mediate communication between your Conversation workspace and a Slack or Facebook app. Use the connector to deploy a chat bot that Slack or Facebook Messenger users can interact with.
Apache License 2.0
28 stars 62 forks source link

Options / Quick replies #68

Closed ghost closed 6 years ago

ghost commented 6 years ago

Should the new commits for different response types mean that Options, Pause, Image etc works with Facebook without any need for changes to JSON in Watson dialog?

I have pushed the new commits to my Toolchain but still get a 400 error response whenever triggering dialog that contains Options

I have been able to 'force' QuickReplies by changing JSON to the following but my understanding of the latest commits is this should no longer be necessary?

{ "output": { "text": { "values": [], "selection_policy": "sequential" }, "facebook": { "message": { "text": "Did you have a good experience?", "quick_replies": [ { "title": "Yes", "payload": "Giving", "image_url": "http://example.com/img/red.png", "content_type": "text" }, { "title": "No", "payload": "Receiving", "image_url": "http://example.com/img/green.png", "content_type": "text" } ] } } } }