I have created "Hero Card" in bot framework instead of just multi choice menu that appears in horizontally (lets say, I have 4 options to choose from by the user). Stored output from "Hero Card" (within Bot Framework) and captured in PVA.
Within PVA, I would like to branch and show topic based on user input choice. I do not know if there is a feature available to do that. If you have any clue how to tackle this problem please let me know.
Also, Initially I designed "Adaptive Card" instead of "Hero Card" but just couldn't figure out how to show Adaptive card and collect user input from Adaptive card in Bot Framework and send it to PVA.
Any help here is appreciated.
Thank you @SupportBryn, I will open a support ticket for this. Appreciate your help so far.
Hey there @Vamsi!
Sorry about that. Unfortunately, I am not exactly sure what is going on with your Adaptive Card not displaying properly. You may want to make a support ticket regarding this, as it seems it will require some more involved troubleshooting. Some of the other Power Users on the forum may also have seen this problem before, and hopefully us bumping the thread may draw their attention. I will continue to look into it and see if I can find any solutions!
Thank you for using Microsoft Power Platform Communities!
Bryn Baker
Support Engineer
Microsoft Power Platform
If this post helps, then please consider accepting it as the solution to help other members find it more quickly! Have a great day!
Hi @SupportBryn,
I still see raw text instead of adaptive card object. I used 1.3 version to design card, see code below.
Hey @Vamsi,
There's a few things that seem like they may need to be adjusted, so let's take this one step at a time. I notice that your adaptive card is using Version 1.4 of the Schema. From what I've been able to find, I believe that Bot Framework Composer, and therefore PVA, only support schemas up to version 1.3. You can see a message regarding this here, in the Adaptive Card Designer. Can you try redesigning the card with that in mind, and see if it still outputs the raw text instead of the proper Adaptive Card object?
Thank you for using Microsoft Power Platform Communities!
Bryn Baker
Support Engineer
Microsoft Power Platform
If this post helps, then please consider accepting it as the solution to help other members find it more quickly! Have a great day!
Hey @SupportBryn ,
Appreciate your response. I looked into the link you have provided but still couldn't figure out my use case.
See the example adaptive card below. Once user selects the item, I would like to show results based on the user selection.
Here is the json code I used in Bot Response.
# adaptivecardjson_services()
- ```
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"body": [
{
"type": "TextBlock",
"text": “Services.",
"wrap": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Test1”,
"associatedInputs": "none"
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Test2”,
"associatedInputs": "none"
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Test3”,
"associatedInputs": "none"
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Test4”,
"associatedInputs": "none"
}
]
}
]
}
```
# Adaptivecard_services()
[Activity
Attachments = ${json(adaptivecardjson_services())}
]
On the "Create" tab in "BeginDialog". I tried to send the adaptive card as a response. See below.
Also, in "dialog Interface" I tried to capture input from Adaptive Card and send output. Not sure if this is the right way of doing it.
In PVA, it is showing raw json code but not Adaptive Card.
Appreciate any help here.
Regards
Hey there @Vamsi,
That is definitely possible to do! I'm not familiar with Hero Cards, but Adaptive Cards can definitely do what you'd like as well.
This topic will walk you through how to set up parameters so that you can retrieve outputs from your Bot Framework bot, and then from there, you will be given a variable output from the topic in PVA. You can then branch from there by creating a condition that checks that variable and sees what value is in it.
Hope this helps!
Thank you for using Microsoft Power Platform Communities!
Bryn Baker
Support Engineer
Microsoft Power Platform
If this post helps, then please consider accepting it as the solution to help other members find it more quickly! Have a great day!