web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Passing variables chos...
Copilot Studio
Answered

Passing variables chosen in adaptive cards from Bot Framework Composer to PVA + herocard styling

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi again everyone, 

 

I am trying to pass a variable from Bot Framework Composer back to PVA, I have an adaptive card that shows a list of options for a user, when they pick one I want to be able to send that answer back to PVA without showing it as a message in the chat. Currently in bot responses I just have: 

 
- SWITCH: ${day}
- CASE: ${0}
-${conversation.day_choice}
- CASE: ${1}
-${conversation.day_choice}
- CASE: ${2}
-${conversation.day_choice}
- DEFAULT:
 
But that just returns 'numbers' based on the case-number in the response so it will just say '2' in the chat if the user chose the second option. 
 
I want to pass the choice as a string to PVA, then let PVA use that choice to continue down into the decision tree. Any ideas on how do that? I could find very few examples on this on the internet, it may be a little niche... 
 
I found: https://powerusers.microsoft.com/t5/General/how-to-get-user-value-back-to-PVA-from-Bot-Framework-Composer/td-p/1188409, but that didn't quite answer my question in a way that I could get to work. 
 
So tl;dr: user picks an option from adaptive card, save option as a string and give that back as a variable to PVA, use this variable to determine the next path. 
 
Additionally, my vertical list which I pinched from https://docs.microsoft.com/en-us/power-virtual-agents/advanced-bot-framework-composer-example2 obscures some of the text if the options are too long, any workarounds around this? 
Categories:
I have the same question (0)
  • Verified answer
    Monkeyman Profile Picture
    325 on at

    Hey

     

    you need to go to the parent topic and look at the dialog.result scope. 

    in there you can create output variables. 

    Check this post’s solution for more info - https://powerusers.microsoft.com/t5/Bot-Extensibility/Pass-variable-from-Bot-Framework-back-to-PVA/m-p/1386788#M70

     

    Please mark this topic as solved if I have helped. 

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 177

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 130 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 45 Super User 2026 Season 1

Last 30 days Overall leaderboard