cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yjm
Frequent Visitor

Capture user response from botframework dialog to PVA

Hi,

I have a scenario wherein I have extended the PVA with botframework composer to create a dialog in the botframework composer, which sends an adaptive card with multi select choice (select all that apply) card. The user selects all the choices that apply and I am trying to pass the values of the selected choices on click of the submit action button.

 

Is there a way for us to capture the user response on the PVA side? I am stuck with trying to do this. Is this even a possibility?

 

Thanks,

Yeshwanth J

11 REPLIES 11
fernandosilva
Helper V
Helper V

Hi @yjm ,

 

I'm trying the same. To get he values from a radio button and store in a variable.

 

See post:https://powerusers.microsoft.com/t5/General/How-to-get-value-from-radio-button-and-store-in-a-variab...


Cheers,

yjm
Frequent Visitor

Thank you! This is great to know! I was able to get the values in PVA.

Hi @yjm ,

 

Were you able to get the radio buttons and dropdown values to PVA and display it?

If yes, please share the steps with the community.

 

Cheers,

 

Fernando

Hi @fernandosilva - Yes, I was able to get the multiple choice field values. You will have to follow the same steps shown in the link that is shared in your post by MonkeyMan - https://powerusers.microsoft.com/t5/Bot-Extensibility/Pass-variable-from-Bot-Framework-back-to-PVA/m... , the steps are quite clear on this link.

 

You will have to set your output variables at the dialog level and set properties later on. Only use a "String" data type for now, since that is the only data type that is supported. Once you do this, you will automatically get the variables in PVA after publishing the files from bot composer to PVA. Let me know if it works for out for you.

 

Thanks,

Yesh

Hi @yjm ,

 

Thanks for your reply.

What I mean is that the value from a radio button that is inside an action like this adaptive card:

https://adaptivecards.io/samples/ShowCardWizard.html

but using radio button in one of the subsequent cards like here:

https://adaptivecards.io/samples/InputsWithValidation.html

 

I can see the variables on PVA, but the values of the radio buttons are not passing through.

 

Cheers.

 

yjm
Frequent Visitor

@fernandosilva - Make sure you have checked all the below:

  1. The adaptive card JSON values for your radio button control should be in string format, sample below:

 

{
            "type": "Input.ChoiceSet",
            "id": "RadioSelect",
            "label": "What color do you want? (expanded)",
            "isMultiSelect": false,
            "style": "expanded",
            "value": "1",
            "choices": [
                {
                    "title":"A",
                    "value":"1"
                },
                {
                    "title":"B",
                    "value":"2"
                },
                {
                    "title":"C",
                    "value":"3"
                }
            ]
        }​

 

2. Create your output variable in the Dialog instance per the screenshot below:

yjm_0-1649342930967.png

3. Set the property in your begin dialog trigger event:

yjm_1-1649342999881.png

4. You should now be able to see the final out in PVA as shown in the below screenshot:

yjm_2-1649343154849.png

 

 

Hope this helps. I was able to get the value in the variable and display as response from bot per the screenshot above. Make sure it is a "STRING" data type output variable.

 

Cheers,

Yesh

 

HI @yjm ,

 

Thank you for your reply.

 

I will try your set up and let you know if the data passed through.

 

Cheers,

Fernando

 

Were you able to get this to work for yourself?

 

Thanks,

Yesh

Hi @yjm ,

 

Still didn't try it yet.

Gonna work on that till end of this week and let you know.

 

Cheers,


Fernando

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

Canadian Cloud 2022 768x460.png

Register for a free PVA chatbot creation workshop.

Learn how to respond rapidly to your customers and employees at scale, using intelligent conversational chatbots.

Top Solution Authors
Users online (3,622)