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

Pass data from a webpage to the Copilot Agent

(1) ShareShare
ReportReport
Posted on by 45
Hi,
 
My Copilot Agent has been added to a Dynamics 365 Customer Service Live Chat that's on a webpage.
I want to pass values from the webpage to the Agent.

I can't find any reliable documentation or examples of how to do this and I have tried both Chatgpt and Claude without any luck.

I thought it was just a case of:
1. Creating a Global variable that can be set by external sources
2. Adding this to the widget script:
   contextVariables: {
                Name: "Monty",
                Email: "montytest@testing.com"
   }

Does anyone have an example or point me in the right direction for doing this?

It seems straightforward, but appears not to be.
I have the same question (1)
  • Michael E. Gernaey Profile Picture
    50,279 Super User 2025 Season 2 on at
    Pass data from a webpage to the Copilot Agent
     
    I have not looked into this so please forgive me as off the top of my head at 2 AM, my suggestion would be to create an HTTP Trigger in our agent, then use JavaScript to call it.
  • KM-14101522-0 Profile Picture
    9 on at
    Pass data from a webpage to the Copilot Agent
    Can't we send in the query params of Agent url and accept the variable as a global variable and use it.?

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