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

Community site session details

Session Id :
Copilot Studio - Model Context Protocol
Unanswered

How to pass a Variable value from my angular webapp to the copilot agent

(2) ShareShare
ReportReport
Posted on by 9
I am trying to pass a token (User id) from my angular app to the agent which is integrated in my angular using iframe. 

I am trying to send it as the query params to the copilot agent iframe url and collect it as a global variable 

TS
const token = "<your_generated_jwt>";
this.iframeUrl = `https://copilotstudio.microsoft.com/embed/your-agent-id?jwt=${token}`;

HTML
<iframe 
[src]="iframeUrl">
  </iframe>
 
But i am not able to save the value in the global.jwtToken.,

Is there any other way to get the value from my webapp to agent 
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    50,279 Super User 2025 Season 2 on at
    How to pass a Variable value from my angular webapp to the copilot agent
     
    Can I verify if you are using the Bot SDK or anything OTHER than simply embedding a copilot agent? It matters as not all configurations, such as just embedding it will allow it to get access to the Iframe itself, so it won't get that information.
     
     
  • KM-14101522-0 Profile Picture
    9 on at
    How to pass a Variable value from my angular webapp to the copilot agent
    Hi @Michael E. Gernaey

    I am just embedding Iframe url directly by adding jwt token as the query params to the iframe url. Is there a better way to do it or any other way which i can use to pass the jwt token ( User Id) to the agent. I will be using no authentication.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 378 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 132

Last 30 days Overall leaderboard