简体   繁体   中英

Is there a card action to generate another card in Microsoft Bot framework?

Is there any action type that I can use?

I am generating a list of cards which show some products. When the user clicks on them, I want to generate another card with a more detailed description. Is there any card action that I can use to call a method?

Since you want to use rich cards and not adaptive cards, you need to generate the second card manually.

Basically, the flow will be:

  1. Card 1 with a button . Once you click the button, you will receive a new message to your controller, with the Text being the Value of the button ( CardAction )
  2. Based on the message you received, you generate the second card and send it to the user.

Here you can find an example on how to use rich cards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM