Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for quick replies in web adapter #1679

Closed
Peter-Barrett opened this issue May 31, 2019 · 2 comments
Closed

Support for quick replies in web adapter #1679

Peter-Barrett opened this issue May 31, 2019 · 2 comments
Labels
4.0.2 this issue will be addressed in 4.0.2 bug

Comments

@Peter-Barrett
Copy link

Are you sure this is an issue with the Botkit core module?

It's an issue with the web-adapter module, if I'm reading it correctly.

What are you trying to achieve or the steps to reproduce?

I'm trying to get quick replies working on the web. I'm using the following (on the latest botkit version):

conversation.addQuestion({
      text: ['Foo or bar?'],
      quick_replies: [{
        type: 'text',
        title: 'Foo',
        payload: "FOO"
      },
      {
        type: 'text',
        title: 'Bar',
        payload: "BAR"
      }]
    }, [{
      handler: async (response: string, convo: BotkitDialogWrapper, bot: BotWorker): Promise<any> => {
      }
    }], 'chosenOption', actionName); 

What was the result you received?

On the client I only receive

{"type":"message","text":"I can help you with one of the following:"} 

What did you expect?

A message along with the possible quick replies.

Is this function stripping out all data but the message?

https://github.com/howdyai/botkit/blob/master/packages/botbuilder-adapter-web/src/web_adapter.ts#L170

Context:

  • Botkit version: 4.0.2
  • Messaging Platform: web
  • Node version: 10.14.2
  • Os: macOS Mojave
  • Any other relevant information:
@benbrown
Copy link
Contributor

This is related to #1664.

@benbrown benbrown added 4.0.2 this issue will be addressed in 4.0.2 bug labels May 31, 2019
@Naktibalda
Copy link
Contributor

Naktibalda commented Jun 2, 2019

I use web-adapter, but I don't use Botkit's dialog building functionality.
Quick replies works for me using bot.reply, so this must be a bug of conversation code, not adapter code.

bot.reply(message, {text: 'question', quick_replies: [...]});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0.2 this issue will be addressed in 4.0.2 bug
Projects
None yet
Development

No branches or pull requests

3 participants