Skip to main content

Notifications

Calling Actions from Copilot Studio
Unanswered

Intelligent PVA Condition from Bot Framework Output

Posted on by 11

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. 

  • Vamsi Profile Picture
    Vamsi 11 on at
    Re: Intelligent PVA Condition from Bot Framework Output

    Thank you @SupportBryn, I will open a support ticket for this.  Appreciate your help so far. 

  • SupportBryn Profile Picture
    SupportBryn on at
    Re: Intelligent PVA Condition from Bot Framework Output

    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!

  • Vamsi Profile Picture
    Vamsi 11 on at
    Re: Intelligent PVA Condition from Bot Framework Output

    Hi @SupportBryn, Checking here to see if there is any update on the above. 

     

    Regards,

    -Vamsi.

     

  • Vamsi Profile Picture
    Vamsi 11 on at
    Re: Intelligent PVA Condition from Bot Framework Output

    Hi @SupportBryn,

     

    I still see raw text instead of adaptive card object.  I used 1.3 version to design card, see code below. 

     

    {
    "type": "AdaptiveCard",
    "body": [
    {
    "type": "TextBlock",
    "text": "Services",
    "wrap": true
    },
    {
    "type": "ActionSet",
    "actions": [
    {
    "type": "Action.Submit",
    "title": "Test1"
    },
    {
    "type": "Action.Submit",
    "title": "Test2"
    },
    {
    "type": "Action.Submit",
    "title": "Test3"
    },
    {
    "type": "Action.Submit",
    "title": "Test4"
    }
    ]
    }
    ],
    "version": "1.3"
    }
  • SupportBryn Profile Picture
    SupportBryn on at
    Re: Intelligent PVA Condition from Bot Framework Output

    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!

  • Vamsi Profile Picture
    Vamsi 11 on at
    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

     

    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

     

    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

     

    In PVA, it is showing raw json code but not Adaptive Card. 

     

    Appreciate any help here. 

     

    Regards

     

  • SupportBryn Profile Picture
    SupportBryn on at
    Re: Intelligent PVA Condition from Bot Framework Output

    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!

     

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,287

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,172

Leaderboard

Featured topics