Re: Intelligent PVA Condition from Bot Framework Output
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.
![Vamsi_0-1653500669231.png Vamsi_0-1653500669231.png](/_api/msdyn_richtextfiles%285940DF63-D836-4C3E-98D3-5B1AC416B8A3%29/msdyn_imageblob/$value?size=full)
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.
![Vamsi_1-1653501266849.png Vamsi_1-1653501266849.png](/_api/msdyn_richtextfiles%28D0222A37-9B29-498A-A8A5-3C8630D9A9B9%29/msdyn_imageblob/$value?size=full)
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.
![Vamsi_2-1653501379967.png Vamsi_2-1653501379967.png](/_api/msdyn_richtextfiles%28E2BFE15B-C98A-4817-9339-03A311E48555%29/msdyn_imageblob/$value?size=full)
In PVA, it is showing raw json code but not Adaptive Card.
Appreciate any help here.
Regards