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.
  • Michael E. Gernaey Profile Picture
    44,064 Super User 2025 Season 1 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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 1

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75