botframework-components icon indicating copy to clipboard operation
botframework-components copied to clipboard

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

Open iMicknl opened this issue 4 years ago • 5 comments

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

  • [x] Electron distribution
  • [ ] Chrome
  • [ ] Safari
  • [ ] Firefox
  • [ ] Edge

OS

  • [] macOS
  • [x] Windows
  • [ ] Ubuntu

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

iMicknl avatar Mar 01 '21 15:03 iMicknl

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.

cwhitten avatar Mar 02 '21 17:03 cwhitten

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 avatar Mar 03 '21 14:03 iMicknl

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.

iMicknl avatar Mar 08 '21 18:03 iMicknl

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

cwhitten avatar Mar 08 '21 18:03 cwhitten

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

iMicknl avatar Mar 08 '21 18:03 iMicknl