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 / How to pass context va...
Copilot Studio
Answered

How to pass context variables to agent as a Message.

(0) ShareShare
ReportReport
Posted on by 71

Since the new update on pva bots. I cant transfer Context variable from chat to agent like i used to do it in PVA classic.  Is there a way to send context variable as a message when transfering the chat to agent. 

furqanmajeed_0-1691165562656.png

 

Categories:
I have the same question (0)
  • MattJimison Profile Picture
    579 Most Valuable Professional on at

    Hi, @furqanmajeed .

     

    If you click on the "..." in the top-right corner of the transfer node you'll find the property settings for what you pass along.

     

    You can also change from "Automatically include variables" to "Formula" as well.

    MattJimison_0-1691167590243.png

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

  • furqanmajeed Profile Picture
    71 on at

    I tried that as well. I want transfer the variables like this: it shows the message to the agent which helps alot. 

    furqanmajeed_0-1691167895012.png

     

  • sboulanger Profile Picture
    Microsoft Employee on at

    I just tried by adding the variable directly into the "Message to agent" text box without going through the "Insert variable" functionality, and it seems to work. In that case, I wanted to pass a case number being created by a power automate.

  • sboulanger Profile Picture
    Microsoft Employee on at

    I just tried by adding the variable directly into the "Message to agent" text box without going through the "Insert variable" functionality, and it seems to work. In that case, I wanted to pass a case number being created by a power automate :

     

    sboulanger_0-1702068150288.png

     

  • furqanmajeed Profile Picture
    71 on at

    @sboulanger I tried the same but I am getting this as an internal message. Can you share what are you getting as an internal message also is there anything I am doing wrong?

    furqanmajeed_0-1702333008494.pngfurqanmajeed_1-1702333033674.png

     

  • Verified answer
    sboulanger Profile Picture
    Microsoft Employee on at

    Should have mentioned I did it using the code editor not in the visual interface. To be fair I didn't think it was important, but I assume it is. 

  • furqanmajeed Profile Picture
    71 on at

    @sboulanger 

    I am a bit confused, Since I am new to this. Can you mention via screenshot or instructions that how did you resolve that issue. 

    Thank you

  • furqanmajeed Profile Picture
    71 on at

    @sboulanger Nevermind , it worked. thank you so much 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 261

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
Vish WR Profile Picture

Vish WR 196

Last 30 days Overall leaderboard