Async Step Agent in Pega Infinity '26

Enjoyed this article? See more similar articles in :fire::fire::fire: Pega Gen AI Cookbook - Recipes :fire::fire::fire: 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:

  1. Retrieve customer data
  2. Query transaction history
  3. Validate sanctions information
  4. Call a risk-scoring service
  5. 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

:white_check_mark: Use asynchronous execution for long-running agent activities.

:white_check_mark: Use asynchronous execution when multiple tools or integrations are involved.

:white_check_mark: Keep the user experience responsive whenever possible.

:white_check_mark: Reserve synchronous execution for truly real-time business requirements.

:white_check_mark: 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.

Nice article, Productivity unfolds many times. definitely a good feature to take AI capabilities to next level.

Thanks for the good overview @RameshSangili !

I noticed that in 26.1.1, the processing of GenAI Connect and DocAI Connect steps is also running asynchronously by default now.

You mentioned the When rule that controls this, could you share a bit more on how to manage this for individual Agent/Connect steps? I might want to have a mix of synchronous and asynchronous in the same case type, depending on the exact use case, right?

Thank you @Tim_Straatsma !

As of now, the OOTB configuration is all or nothing for all agents. By default, pyRunGenAISmartShapeAsynchronously when rule is set to true, so all agents will go through async by default. Changing to false, all agents will be synchoronous. I think it’s part of the Product roadmap to control it at each agent/DocAI/GenAI connect level in the future.