Pass parameters to additional context data page when calling an agent

Hello AI Experts,

I am working on a POC in v25.1.2 where i am trying to call an agent through a Activity / Data transform.

Agent was given certain instructions and guardrails to perform certain tasks.

In the additional context section, i have setup a data page which fetches certain dynamic information that helps agent to perform its work efficiently.

Now the ask is that when i call this agent, i should be able to pass a parameter that will serve as an input to the additional context data page.

Not sure if this is a valid way of using the agent but thought i would get some help here.

Appreciate suggestions from the community.

Regards

JC

If the agent is configured as part of the workflow context, then you can pass the workpage properties as the input to the data pages.

I am not calling the agent from the case context. I have configured a data page which has a data transform that calls this agent. I will pass certain parameters to this data page and hence they should be going into the agent context accordingly.

Regards

JC

Ensure parameter names and description closely match with the context that agent has. In the Autopilot conversation, inside ‘pega_context’, see which property/field holds the value of your ‘input parameter‘. Your additional context datapage param should match that field name so that agent can pass it when invoking this DP. Alternatively, if the value of your input param is present on pega_context, you can use D_pxGenAIContextDetails datapage to read that param instead of passing in your additional context. The second approach uses an internal construct which may or may not be future compatible.