Notifications
Announcements
In custom website channel approach, based on message response can we programmatically read and update copilot global variables from webpage (javascript).
Hello @Mithoon
Yes you can send data from Javascript to global variable in Copilot Studio, set your variable to "External source can set value" then use that code snippet example
payload: { activity: { channelData: { postBack: true, }, //Web Chat will trigger "conversation start" System Topic message automatically name: 'startConversation', type: "event", value: { text: "trigger phrase", pageAccess: pageLocation, userLatitude: latitude, userLongitude: longitude, } }, },
See documentation: Use variables to carry content across topics - Microsoft Copilot Studio | Microsoft Learn
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 261 Super User 2025 Season 2
Romain The Low-Code... 198 Super User 2025 Season 2
S-Venkadesh 93 Moderator