microsoft / botbuilder-python

The Microsoft Bot Framework provides what you need to build and connect intelligent bots that interact naturally wherever your users are talking, from text/sms to Skype, Slack, Office 365 mail and other popular services.
http://botframework.com
MIT License
672 stars 271 forks source link

Suggested Action with CardAction not working as expected. #2118

Open GreatHavoc opened 1 month ago

GreatHavoc commented 1 month ago

Version

Bot Framework Python SDK. botbuilder-core==4.14.8 botbuilder-dialogs==4.14.8 botbuilder-schema==4.14.8 botframework-connector==4.14.8 botframework-streaming==4.14.8

Describe the bug

IDEA: I want to show the option to the user on the bot webchat where he will click to open a link and come back to bot again to continue the flow.

Issue: I am using the prompt to show the user suggested actions and added the action to the choices of the prompt but the issue is after clicking on the suggested action the link opens but i didn't get any response that the button is clicked because of that i can't continue the flow without knowing what isd clicked or selected by the user.

Reference Code: return await step_context.prompt(ChoicePrompt.name,PromptOptions( style=ListStyle.suggested_action, choices=[Choice("Link1"),Choice("Link2"),Choice('Link3',action=CardAction(title="Track Credit Card Application",type="openUrl",value="https://xyz.com")),Choice("Apply Now For Credit Card",action=CardAction(title="xyz link",type="openUrl",value="www.xyz.com",display_text="xyz",text="xyz"))]))

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Open Emulator'
  2. Click on 'Suggested Action with Link'

Expected behavior

After the user clicks the suggested action the display_text will be shown on the chat user response.

Screenshots

Example Suggested Options with OpenLink as CardAction. image After clicking any one of the above: image Nothing is displayed after clicking the button, like it will show selected option in the user side of the chat window.