microsoft / botframework-components

The repository for components built by Microsoft for the Azure Bot Framework.
https://aka.ms/botdocs
MIT License
112 stars 82 forks source link

cardActionTemplate does not have an evaluator, it's not a built-in function or a custom function. #716

Open iMicknl opened 3 years ago

iMicknl commented 3 years ago

Describe the bug

Not sure if this should be reported here or in the dotnet runtime, but since it is documented on the composer docs https://docs.microsoft.com/en-us/composer/how-to-send-cards, I will report it here.

cardActionTemplate is documented for the HeroCard, but doesn't work in Composer 1.3.1. Currently I am only able to use plain text buttons, where I would need to use a imback with a different payload than the button.

cardActionTemplate does not have an evaluator, it's not a built-in function or a custom function.

Version

1.3.1

image

Browser

OS

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

cardActionTemplate to work, or a different function to add this imback / postback.

Screenshots

image

Additional context

cwhitten commented 3 years ago

Hello @iMicknl - we'll investigate where authoring support is at for this type.

@sangwoohaan do you recall previous discussions about these actions and how to author imBack and the like? We can connect offline.

iMicknl commented 3 years ago

Thanks! This is currently blocking us in a PVA scenario, where we use Composer to output a HeroCard with buttons. We would prefer a different postback/imback for the buttons, so we can easily trigger the right dialog.

If this is not supported yet, it would be good to change the documentation for now, and we would have a look at an AdaptiveCard to unblock this.

iMicknl commented 3 years ago

Apparently cardActionTemplate is defined in common.en-us.lg in this sample, see: https://github.com/microsoft/BotFramework-Composer/blob/2b224daf513ad46c57c98403a23fcea4fd5436f3/extensions/samples/assets/projects/RespondingWithCardsSample/language-generation/en-us/common.en-us.lg#L41-L47

For now, I was be able to unblock my scenario. However for other customers/partners it would be good to have this improved in the documentation. Currently all documentation and samples use cardActionTemplate, which is not available by default in all projects.

cwhitten commented 3 years ago

Great feedback @iMicknl

I'll transfer this issue to another project to discuss including this template as part of a package of utility templates made available to install into a Composer solution.

cc @clearab

iMicknl commented 3 years ago

Thanks @cwhitten. This documentation needs to be updated eventually. Do I need to create an issue there as well, for the short-term?