Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Capture user response from botframework dialog to PVA

(0) ShareShare
ReportReport
Posted on by 21

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

Categories:
  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at
    Re: Capture user response from botframework dialog to PVA

    Hi @yjm ,

     

    It did not work for me I'm afraid.

     

    It might be my schema or some conflict between PVA and BFC.

     

    I will try again and let you know. I still didn't forget about this post.

     

    Cheers,


    Fernando

  • yjm Profile Picture
    21 on at
    Re: Capture user response from botframework dialog to PVA

    @fernandosilva  - Any luck yet? Was this resolved for you?

     

    Thanks.
    Yesh

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at
    Re: Capture user response from botframework dialog to PVA

    Hi @yjm ,

     

    Still didn't try it yet.

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

     

    Cheers,


    Fernando

  • yjm Profile Picture
    21 on at
    Re: Capture user response from botframework dialog to PVA

    Were you able to get this to work for yourself?

     

    Thanks,

    Yesh

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at
    Re: Capture user response from botframework dialog to PVA

    HI @yjm ,

     

    Thank you for your reply.

     

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

     

    Cheers,

    Fernando

     

  • yjm Profile Picture
    21 on at
    Re: Capture user response from botframework dialog to PVA

    @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

     

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at
    Re: Capture user response from botframework dialog to PVA

    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 Profile Picture
    21 on at
    Re: Capture user response from botframework dialog to PVA

    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-p/1386788#M70 , 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

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at
    Re: Capture user response from botframework dialog to 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

  • yjm Profile Picture
    21 on at
    Re: Capture user response from botframework dialog to PVA

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 74

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard