Enjoyed this article? See more similar articles in ![]()
![]()
Pega Gen AI Cookbook - Recipes ![]()
![]()
series
Let Your Users Move Forward While AI Works in the Background
Introduction
One of the most powerful enhancements in Pega Infinity '26 is the introduction of asynchronous execution for Agent Steps. Rather than forcing users to wait for AI-driven processing to complete, Agent Steps can execute in the background while the user continues progressing through the case lifecycle.
This seemingly small enhancement can have a significant impact on user experience, case completion times, and overall application responsiveness, especially when enterprise agents need to invoke multiple tools, integrations, or AI services before producing a final outcome.
The Traditional Challenge
In many AI-powered workflows, an agent may need to:
- Retrieve information from external systems
- Invoke multiple tools
- Perform reasoning and decisioning
- Generate summaries or recommendations
- Call external AI agents or services
If these activities execute synchronously, users must remain on the assignment and wait until all processing is completed.
The result:
- Longer wait times
- Reduced productivity
- Poor user experience
- Increased perception that the application is slow
How Infinity '26 Changes the Game
With Pega Infinity '26, Agent Steps are designed to execute asynchronously by default. This allows the assignment to complete immediately while the agent continues processing in the background.
The key benefit is that users are no longer blocked waiting for automated work to finish.
Why Async Processing Matters
Better User Experience
Users can complete their task and move on immediately.
Instead of waiting 10 to 30 seconds for an agent to invoke tools, retrieve data, and formulate a response, the case progresses without interruption.
Improved Scalability
Agentic workflows typically become more powerful over time.
As organizations add:
- More tools
- More integrations
- More reasoning steps
- Additional AI agents
execution times naturally increase.
Background processing prevents these enhancements from negatively impacting end users.
Ideal for Multi-Tool Agentic Decisions
Consider a fraud investigation scenario:
An agent may need to:
- Retrieve customer data
- Query transaction history
- Validate sanctions information
- Call a risk-scoring service
- Evaluate business policies
Since these actions are automated, there is little value in forcing the user to wait.
Async processing enables the agent to perform all of this work independently while preserving a responsive application experience.
When Should You Use Synchronous Processing?
Although asynchronous execution is the recommended default, there may be situations where synchronous processing is required.
Examples include:
- Immediate results must be displayed to the user
- A subsequent step depends on the agent response instantly
- Real-time validation is required before continuing
- The business process cannot advance without the AI outcome
Infinity '26 provides the flexibility to override the default behavior when your implementation requires synchronous execution. As solution architects, we should choose the mode that best aligns with business requirements and user expectations.
Demo Overview
In this demonstration, we explore:
Scenario 1: Default Async Behavior
- User completes an assignment
- Agent Step executes in the background
- User continues without delay
- Agent completes processing independently
Scenario 2: Overriding to Synchronous
- Agent Step configured to execute synchronously
- User waits for processing to complete
- Results are immediately available
- Workflow continues only after completion
This side-by-side comparison clearly illustrates the user experience and performance differences between the two approaches.
Demo: Async Step Agent Demo
When rule: pyRunGenAISmartShapeAsynchronously
Best Practices
Use asynchronous execution for long-running agent activities.
Use asynchronous execution when multiple tools or integrations are involved.
Keep the user experience responsive whenever possible.
Reserve synchronous execution for truly real-time business requirements.
Test both approaches to understand their impact on case throughput and user experience.
Final Thoughts
Pega Infinity '26 continues to advance predictable and governed Agentic AI by making asynchronous execution the preferred approach for Agent Steps. By allowing automated work to occur behind the scenes, organizations can build sophisticated multi-tool agentic workflows without sacrificing application responsiveness.
The result is simple but powerful: users finish their work faster, while AI completes its work smarter in the background.