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 :
Power Pages - Customize & Extend
Suggested Answer

Pass data from Power Pages page to Power Pages copilot agent

(0) ShareShare
ReportReport
Posted on by 3
Hi,
 
I would like to pass some data (say Case Id) from Power Pages portal to (a global variable in) its Power Pages 'built-in' agent (https://learn.microsoft.com/en-us/power-pages/getting-started/enable-agent).
 
I understand it is possible to pass data from a website to an agent if the agent was 'custom' embedded, using methods like WebChat.createStore() and WebChat.renderWebChat().
 
Any help on this is highly appreciaated.
 
Thank you.
Categories:
I have the same question (0)
  • Suggested answer
    Jerry-IN Profile Picture
    286 on at
    Pass data from Power Pages page to Power Pages copilot agent
     
    To pass data from a Power Pages portal page (such as a Case Id) to the Power Pages copilot agent (particularly the built-in agent), currently, direct global variable or context passing is not natively supported for built-in agents like it is for custom embedded agents. With custom agents, you can use methods like `WebChat.createStore()` and `WebChat.renderWebChat()` to inject data from your portal into the agent’s session context.
     
    For built-in agents enabled directly via the Power Pages platform, Microsoft does not provide direct documentation or API support to pass local page data (such as query strings or session variables) into the agent context during an active chat. This is a common request and worth raising on the community or Ideas forum for feature support.
     
    Potential workarounds until this feature is released:
    - You may consider embedding a custom agent using the WebChat framework, even in Power Pages, which will allow you to manipulate the store and pass initial data when the chat loads.
    - Alternatively, store the required data (like Case Id) in Dataverse and configure your agent to fetch it at session start, although this is less dynamic than passing it directly from the page context.
     
    I hope this answer will help you 
     
    Best Regards,  
    Jerald Felix
     
  • Shijo George Profile Picture
    3 on at
    Pass data from Power Pages page to Power Pages copilot agent
    Thank you, @Jerry-IN for your reply.

    As you said, I'm went with embedding a custom agent using the Bot Framework methods to my Power Pages portal.

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 58

#2
Fubar Profile Picture

Fubar 46 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard

Featured topics