Git Product home page Git Product logo

Comments (9)

stevengum avatar stevengum commented on May 20, 2024

Hey @Kajiro,
This is due to a channel limitation on Skype's end. They unfortunately do not support SuggestedActions aka "Quick Replies" if they are not part of a Card.

(See Channel Skype: | Feature: Suggested actions, then Notes -> Availability)

I spun up a v3 Node.js bot to test as well, and Skype did not send the activity's text in addition to the suggestedActions; but the prompt and suggestedActions were sent over WebChat.

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

I checked my bot again and saw that it was possible using version 12.1815.210.0 on Windows 10 Enterprise, so I'm looking back into this, sorry @Kaijiro!

from botbuilder-python.

Kaijiro avatar Kaijiro commented on May 20, 2024

No problem, thank you for the investigation. If you need me to test anything, feel free to ask !

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

@Kaijiro, the issue was actually that the suggestedAction was being sent to the bot instead of to the user. The correct code is this:

activity.suggested_actions = SuggestedActions(actions=replies, to=[activity.recipient.id])

as opposed to this:

activity.suggested_actions = SuggestedActions(actions=replies, to=[activity.from_property.id])

For some reason the Emulator was rendering the SuggestedActions to you, when in reality you shouldn't have been seeing them at all.

I opened a bug on microsoft/BotFramework-WebChat#1057 to fix this bug in webchat (which is used in the Emulator).

Let me know if this solves the problem for you

from botbuilder-python.

Kaijiro avatar Kaijiro commented on May 20, 2024

Are you sure about this ? Here, my activity variable is the result of the request deserialization, so the from attribute of activity is my final user and the recipient is the bot itself.

Please, correct me if I'm wrong.

from botbuilder-python.

Kaijiro avatar Kaijiro commented on May 20, 2024

@stevengum Hey, any news about this issue ? I just checked the code snippet I posted and saw that I named two variables activity ... Everything should be clearer now

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

@Kaijiro sorry I missed your earlier comment; the code you've changed it to above should be correct; developers should be using the incoming deserialized activity to generate the SuggestedActions.to property on the response activity by using activity.from_property

from botbuilder-python.

Kaijiro avatar Kaijiro commented on May 20, 2024

Hey !
I changed the code because I had a copy/paste error. This is the code actually used to send SuggestedActions but I can only see it in the Emulator, every other client does not render it.

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

It sounds like you've been squared away for some time, so I'm going to close this out for now. If you're still facing this problem, please create a new issue.

from botbuilder-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.