Can Pega GenAI Agents Store and Reuse executed Tool Responses?

Hi @RameshSangili , @Kamil Janeczek,

I’ve noticed your recent posts on Pega GenAI Agent concepts and found them very insightful. I have a question regarding the use of Tool Rules within a GenAI Agent to perform desired actions.

For example, suppose I have a GenAI Agent configured to create new data records in a table using a Tool Rule, which in turn invokes an Automation Rule. Is it possible for the GenAI Agent to retain or store the response from the executed Tool during the Agent interaction? Specifically, in this scenario, I would like to store the newly created record ID (returned by the Automation Rule) and use it in subsequent interactions—either for retrieving the same record or storing the ID in the case.

Additionally, could you clarify how the response from one Tool can be passed to another Tool configured within the same agent?

If possible, please share an example video demonstrating the configuration steps.Thank you in advance for your guidance.

@SritejaLSA

Thanks for your comments!

This is possible to echo back the record ID in the output parameter as part of the Automation rule. The Output parameter will be displayed as part of the conversational agent response. However, we can’t store in a specific property, but we can use this for future conversation to retrieve the specifc record from the data table.

I’ll record the demo sometime early next week for your reference.

Thanks,

Ramesh

@SritejaLSA The architecture of the agent and tools is a bit different from what we know from traditional case processing. You give the agents a set of tools and a prompt, and agent autonomously decide which tools to use and in which order. Passing data directly between tools is not possible as it is not a sequential thing.

But tool A can store some data, and you can instruct agent to read this data as this is input for tool B.