Skip to main content

Notifications

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

(0) ShareShare
ReportReport
Posted on by 43
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.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 132

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 81 Super User 2025 Season 1

#3
Pablo Roldan Profile Picture

Pablo Roldan 61