botkit-starter-web icon indicating copy to clipboard operation
botkit-starter-web copied to clipboard

Quick replies to reply with 'Title' instead of 'Payload'

Open lsshawn opened this issue 6 years ago • 2 comments

I figured that 'payload' can be used for thread matching. Is there a way to do it in this web chatbot?

I checked the received middleware and the quick reply title is not there.

lsshawn avatar May 30 '18 00:05 lsshawn

You have to change that in front-end part. See public folder.

adantoscano avatar May 30 '18 08:05 adantoscano

@lsshawn public/client.js Make this change:

el.onclick = function() {
                  that.quickReply(reply.text);  // changed from reply.payload
                }

It should work.

samar14641 avatar Jun 24 '19 12:06 samar14641