BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

Adaptive card doesn't trigger topic in PVA

Open ryub3n opened this issue 3 years ago • 7 comments

Describe the bug

Adaptive card doesn't trigger topic in PVA when data value intent is set

Version

Version: 2.1.2 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0

Browser

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

OS

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

To Reproduce

Steps to reproduce the behavior:

  1. Create a PVA bot and reuse the Enterprise Assistant Bot 'Bot Tour' dialog
  2. It sends the initial card
  3. Click on 'Calendar' or 'People' button.
  4. The bot is not able to understand the intent in PVA.

Expected behavior

The PVA should be able to handle the Action.Submit with 'intent' name in data and invoke the respective topic.

Screenshots

This is the place where we inform what intent to be invoked. But it doesn't work for PVAs. Also, where is the documentation for the data attribute the the supported values for Composer or PVAs? image

In PVA, even if I have a topic 'CalendarTour' it doesn't get invoked. image

ryub3n avatar Jul 05 '22 12:07 ryub3n

Hi @ryub3n, I'm investigating this one.

ram-xv avatar Jul 05 '22 16:07 ram-xv

@ryub3n to clarify, are you experiencing this issue specifically when reusing BotTourDialog.dialog or just in general Adaptive Cards doesn't trigger topics in PVA?

ram-xv avatar Jul 07 '22 20:07 ram-xv

@ramfattah , in general Adaptive Cards don't trigger topics in PVA.

ryub3n avatar Jul 08 '22 11:07 ryub3n

Hi @ryub3n, we are working on this. We will report back once we have updates.

Thanks for your patience.

ram-xv avatar Jul 14 '22 16:07 ram-xv

Hi @ryub3n.

I'm not able to reproduce this issue in PVA after clicking on the Adaptive card 'Calendar' or 'People' buttons.

Sharing steps I took:

  1. Opened PVA bot in Composer
  2. + Add a dialog, named it BotTourDialog
  3. In the new dialog, I reused Enterprise BotTourDialog.dialog line 1 - 95
  4. In Composer, Bot Responses -> BotTourDialog -> Show code and added the LG code from BotTourDialog.en-us.lg
  5. Then added the LG code from cards.en-us.lg & icons.en-us.lg into BotTourDialog.en-us.lg
  6. Published the bot in Composer
  7. Tested the Adaptive Card in PVA

Screenshot

Hope this helps, let me know if you have any questions. Thanks.

ram-xv avatar Jul 21 '22 06:07 ram-xv

@ramfattah, you're half way there. I meant that adaptive cards don't trigger Topics.

Continue with the below steps:

  • Remove the PeopleTour and CalendarTour intents in Composer and add them as topics in PVA.

DELETE: image ADD IN PVA: image

  • The expectation is that a PVA topic can be triggered from an adaptive card as it's basically an intent.

ryub3n avatar Jul 21 '22 08:07 ryub3n

@ryub3n,

Thanks for providing the detailed steps. I was able to reproduce this issue after removing PeopleTour and CalendarTour intents and adding them as Topics in PVA. image

ram-xv avatar Jul 21 '22 09:07 ram-xv

Hi @ryub3n,

Looks like triggering a topic with an adaptive card may not be supported in PVA.

we found a workaround to redirect to a PVA topic without using adaptive cards. I was able to set up a dialog and redirect to PVA topic using "Begin a Power Virtual Agents Topic" action. Documentation here

ram-xv avatar Aug 26 '22 17:08 ram-xv

closing with a workaround.

ram-xv avatar Aug 26 '22 17:08 ram-xv