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

Notifications

Announcements

Community site session details

Community site session details

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

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

(0) ShareShare
ReportReport
Posted on by

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard