Hi Pega Community,
With the rapid evolution of Autonomous Agents, one of the most exciting frontiers is how different AI agents can seamlessly collaborate. I recently put together a quick video demo to showcase the power of Agent-to-Agent (A2A) architecture by integrating a Pega application with a custom AI agent built in Microsoft Foundry.
The Value of A2A and External Agent Integration
While Pega provides incredible capabilities for process orchestration, state management, and its own robust GenAI features, there are scenarios where you need to delegate highly specialized, open-ended research tasks to an external “expert.” In this demo, that expert is a “News Researcher” agent built in Microsoft Foundry.
The real business value lies in combining these strengths: using Pega as the master orchestrator and conversational interface, while treating the Microsoft Foundry agent as a specialized peer worker. Pega handles the when and how, and Foundry handles the heavy cognitive lifting for the specific unstructured task.
What the Demo Covers:
-
A2A Communication in Action: How a Pega conversational Investigation Agent can interact directly with the Foundry agent. Pega delegates the research prompt, waits for the cognitive processing, and returns rich, formatted answers to the user without breaking the conversational flow.
-
Seamless Workflow Integration: Calling the external Foundry agent via a Connect REST within a Pega Investigation case type, and using a utility shape to map the output into a clean HTML format on the UI.
-
Solving Real-World Integration Challenges:
-
Managing Latency: External agents take time to “think” (in this demo, 40 to 60 seconds). The video shows how to run this call asynchronously in the background, ensuring the end-user experience is never blocked.
-
Predictability & Control: Why it is critical to rely on Pega’s deterministic workflow to dictate the process, rather than leaving orchestration decisions to a non-deterministic LLM.
-
Cost Management: How to structure the integration so that the external agent’s results are parsed and stored as structured case data. This avoids the high token costs of having an AI repeatedly re-evaluate the same raw data.
-
Integrating external AI agents into our workflows opens up massive possibilities for automation, but it requires the robust control that Pega provides.
Check out the video and let me know your thoughts!