theopenconversationkit / tock

Tock, the open source conversational AI toolkit.
https://doc.tock.ai
Apache License 2.0
475 stars 129 forks source link

Image / Buttons not compatible in Studio story configuration #966

Closed dabadiesimon closed 4 years ago

dabadiesimon commented 4 years ago

On tock Studio: When adding an image as answer in a story with buttons :

  1. buttons don't appear anymore on the "Test" of Tock Studio
  2. buttons are repeated x times (where x is the number of images added) in the Web Connector

1) has been replicated on current online version + version 20 2) has been experimented on version 20 (not tested on current online version)

Images are from online version image image image image

vsct-jburet commented 4 years ago

@dabadiesimon the bug in the test interface is fixed on the demo platform, but how can you have more than one image in the response of WebConnector ?

Please checks the demo and let me know if everything is ok now ;)

dabadiesimon commented 4 years ago

@vsct-jburet

image image

{ "responses": [ { "type": "WebMessage", "text": "EPIs pour quelle méthode ?", "version": "1" }, { "type": "WebMessage", "card": { "file": { "url": "https://demo-bot.tock.ai/f/dabadiesimonaf43ba43-c88c-4a15-972c-671d12df188e.png", "name": "man.png", "type": "image" }, "buttons": [ { "clazz": "postback_button", "title": "percage/gel hydrique", "type": "postback" }, { "clazz": "postback_button", "title": "percage/humidification", "type": "postback" } ] }, "version": "1" }, { "type": "WebMessage", "text": "2e texte", "version": "1" }, { "type": "WebMessage", "card": { "file": { "url": "https://demo-bot.tock.ai/f/dabadiesimonaa4d38f5-819c-488b-a356-c7346503a58c.png", "name": "Heka_Logo-01.png", "type": "image" }, "buttons": [ { "clazz": "postback_button", "title": "percage/gel hydrique", "type": "postback" }, { "clazz": "postback_button", "title": "percage/humidification", "type": "postback" } ] }, "version": "1" } ] }

vsct-jburet commented 4 years ago

Will be fixed on the demo platform soon