Pega GenAI Cookbook: Agentic AI Recipes

Pega GenAI Cookbook: Agentic AI Recipes

Welcome to the GenAI Cookbook — the definitive hands-on guide to unlocking the full potential of Pega Agentic AI in real-world case management scenarios. Pega Agentic AI is redefining what’s possible in enterprise automation — Pega platform that combines autonomous reasoning, intelligent orchestration, and real-time AI natively inside case management workflows.

Pega Agentic AI is redefining what enterprise automation means. Not just faster workflows — but AI that reasons, orchestrates, and delivers outcomes end-to-end, across every channel, every case, and every industry. Built natively on Pega. Governed by design. Ready for production today.

Pega Agentic AI doesn’t just assist — it plans, acts, and resolves, end-to-end, without step-by-step human instruction.

Pega brings together Pega GenAI Connect, Pega DocAI, Pega Knowledge Buddy, and Pega Agentic AI — with native cross-platform orchestration across Google Gemini, Anthropic Claude, OpenAI, and Microsoft Copilot — all governed, all production-ready, all Pega.

This cookbook is your hands-on guide: practical, Pega-native recipes that take you from concept to working Pega Agentic AI implementation, fast.

In this series, you’ll learn actionable techniques to:

:label: Capability :light_bulb: What It Does :bullseye: Best For
:high_voltage: GenAI Connect Embeds AI insights inline inside Pega UI Knowledge workers needing real-time AI assistance
:page_facing_up: Pega DocAI Extracts & maps data from documents into cases High-volume document & form processing
:robot: Pega Agentic AI Reasons, plans & resolves cases autonomously End-to-end intelligent case automation
:collision: Pega Coach Guides agents step-by-step through complex cases Reducing errors & improving compliance
:rocket: Knowledge Buddy Surfaces approved answers from curated knowledge Self-service portals & contact centers
:sparkles: Agent Modularization Splits complex agents into focused sub-agents Scaling & governing enterprise AI systems
:high_voltage: AI Agent API Exposes Pega Agentic AI to external apps via REST Developers building custom AI-powered portals
:comet: Agent Debate Pattern Runs multiple agents in parallel for high-confidence decisions Compliance, fraud & high-stakes decisions
:military_medal: Agent to Agent (A2A) Orchestrates Pega with Gemini, Claude & Copilot Cross-platform multi-model AI workflows
:shooting_star: Copilot Connects Microsoft Copilot & Power Automate to Pega Microsoft 365 & Azure OpenAI ecosystems
:glowing_star: MCP Dynamically connects agents to external tools at runtime Runtime tool discovery without hardcoded integrations
:gear: Background Processing Runs Pega Agentic AI autonomously 24/7 Real time batch & SLA-triggered automation
:airplane: GenAI Email Bot Reads emails & creates Pega cases automatically High-volume email triage & routing
:sparkles: General Exception handling & token optimization Production-ready GenAI implementations

You need to learn some foundations on Pega GenAI and LLMs before starting with hands-on examples? Take a look at the :fire::fire::fire: GenAI Cookbook series (will be published soon).


:robot: Pega Agentic AI — The Heart of This Cookbook

What is Pega Agentic AI? Pega Agentic AI is an autonomous AI system embedded in the Pega platform that perceives its environment, reasons through multi-step problems, selects and invokes tools, delegates tasks to specialized sub-agents, and drives business outcomes end-to-end — without requiring step-by-step human instruction. It is model-agnostic and works with Google Gemini, Anthropic Claude, and OpenAI GPT models via Pega’s LLM gateway. Every recipe in this cookbook either uses Pega Agentic AI directly or is designed to work seamlessly alongside it.

:key: Key Takeaways:

  • Pega Agentic AI reasons, plans, and executes — not just responds

  • Works natively inside Pega case management workflows with zero custom integration

  • Supports multi-agent delegation — one orchestrator, many specialized sub-agents

  • Powers every other capability in this cookbook — the foundation layer

:books: Hands-On Recipes — Pega Agentic AI in Action


:high_voltage: GenAI Connect

What is Pega GenAI Connect? Pega GenAI Connect embeds LLM-powered intelligence directly into UI components, case stages, and workflow steps — surfacing AI suggestions, summaries, and automation actions inline. It supports prompt redaction for data privacy and works with Google Gemini, Anthropic Claude, and OpenAI via Pega’s LLM gateway.

:key: Key Takeaways:

  • Embeds AI suggestions and summaries directly into the Pega UI — no context switching

  • Supports prompt redaction to protect sensitive data before it reaches the LLM

  • Tunable responses — adjust tone, length, and format without redeploying

  • Works with any LLM connected via Pega’s gateway (Gemini, Claude, OpenAI)

:books: Hands-On Recipes — Embed AI Into Your Pega Workflows


:page_facing_up: Pega DocAI

What is Pega DocAI? Pega DocAI is an intelligent document processing capability within the Pega platform that uses large language models to automatically extract structured data from unstructured documents — such as PDFs, scanned forms, invoices, and contracts — and map that data directly into Pega case fields. It integrates with Pega Agentic AI to enable fully automated document-to-case workflows and supports Google Gemini and OpenAI extraction models.

:key: Key Takeaways:

  • Extracts structured data from PDFs, scanned docs, invoices, contracts, and forms

  • Maps extracted fields directly into Pega case data — no manual re-entry

  • Combines with Pega Agentic AI to create fully automated document-to-resolution flows

  • Validated for regulated industries: financial services, insurance, healthcare

:books: Hands-On Recipes — Automate Your Document Processing


:rocket: Pega Knowledge Buddy + Agentic AI

What is Pega Knowledge Buddy? Pega Knowledge Buddy is a GenAI-powered knowledge retrieval assistant built into the Pega platform. It uses retrieval-augmented generation (RAG) to surface accurate, organization-approved answers from curated knowledge sources — such as internal policies, product documentation, and SOPs — in real time, directly within agent desktops and self-service portals.

:key: Key Takeaways:

  • Uses RAG (Retrieval-Augmented Generation) — grounded answers, not hallucinations

  • Sources curated from internal knowledge bases, PDFs, SOPs, and product docs

  • Pega Agentic AI can query Knowledge Buddy proactively mid-case workflow

:books: Hands-On Recipes — Turn Knowledge Into Instant Answers


:collision: Pega Coach

What is Pega Coach? Pega Coach is an AI-powered guidance engine within Pega that delivers step-by-step, context-aware answers to case workers in real time — helping them navigate complex cases, compliance requirements, and product questions without escalation. It acts as an always-on expert sitting alongside every knowledge worker, powered by the same LLM infrastructure as the rest of Pega GenAI.

:key: Key Takeaways:

  • Delivers real-time, step-by-step guidance inside the Pega agent desktop

  • Context-aware — responses adapt based on the current case stage and data

  • Reduces agent training time and compliance risk simultaneously

  • Complements Pega Agentic AI — Coach guides humans, Agentic AI handles autonomous steps

:books: Hands-On Recipes — Guide Every Agent Like Your Best Agent


:sparkles: Agent Modularization

What is Agent Modularization? Agent Modularization is a Pega Agentic AI design pattern where a central orchestrator agent decomposes complex business processes into smaller, focused sub-agents — each responsible for a specific capability. Each sub-agent can be developed, tested, versioned, and scaled independently. It is the recommended pattern for production deployments. Different LLMs can be assigned per sub-agent — for example, Gemini for summarization and Claude for complex reasoning.

:key: Key Takeaways:

  • Separates concerns — each sub-agent does one thing well and is independently testable

  • Central orchestrator routes tasks dynamically based on context and outcome

  • Reduces regression risk — update one sub-agent without affecting others

  • Enables different LLMs per sub-agent (e.g., Gemini for summarization, Claude for reasoning)

  • Recommended pattern for enterprise-grade Pega Agentic AI production deployments

:books: Hands-On Recipes — Build Scalable, Modular AI Systems


:high_voltage: AI Agent API

What is the Pega AI Agent API? The Pega AI Agent API is a RESTful interface that exposes Pega Agentic AI capabilities to external applications — allowing developers to initiate agent sessions, send user messages, receive streamed responses, and manage stateful multi-turn conversations from outside the Pega UI. It is compatible with ChatGPT, Gemini, and Claude integrations.

:key: Key Takeaways:

  • RESTful API — integrate Pega Agentic AI into any external app or portal

  • Supports stateful multi-turn conversations with session management

  • Enables React, Angular, mobile, and third-party frontends to leverage Pega agents

  • Pega handles all backend orchestration — developers focus on UX

:books: Hands-On Recipes — Integrate Pega Agentic AI Into Any Application


:comet: Agent Debate Pattern

What is the Agent Debate Pattern? The Agent Debate Pattern is an advanced Pega Agentic AI design pattern where multiple independent AI agents simultaneously reason about the same problem from different perspectives — then a central orchestrator synthesizes the best final answer. Pega has demonstrated this pattern using Google Gemini with temperature-controlled reasoning, enabling diversity of thought before converging on a decision.

:key: Key Takeaways:

  • Multiple agents reason in parallel — different perspectives, same question

  • Orchestrator synthesizes a final answer from competing agent outputs

  • Temperature tuning via Gemini controls reasoning diversity between agents

  • Ideal for compliance decisions, fraud assessment, and loan underwriting

  • Demonstrated with Google Gemini — compatible with other LLMs via Pega’s gateway

:books: Hands-On Recipes — Drive High-Confidence Decisions with Parallel AI Reasoning


:military_medal: Agent to Agent (A2A)

What is Agent to Agent (A2A) in Pega? Agent-to-Agent (A2A) in Pega is a governed communication protocol that enables Pega Agentic AI to act as the central orchestrator — sending tasks to, receiving results from, and collaborating with external AI agents from other platforms. Pega has validated A2A integrations with Google Gemini, Anthropic Claude, and Microsoft Copilot — establishing Pega as the enterprise orchestration hub for multi-model AI workflows.

:key: Key Takeaways:

  • Pega acts as the central AI orchestrator — Gemini, Claude, and Copilot are workers

  • Standardized message schema enables cross-platform agent collaboration

  • Validated integrations: Google Gemini, Anthropic Claude, Microsoft Copilot, Power Automate

  • Pega governs all handoffs — audit trail, security, and outcome tracking maintained

  • Enables React-based self-service portals powered by Pega’s agentic backend

:books: Hands-On Recipes — Orchestrate Pega with Gemini, Claude & Copilot


:shooting_star: Copilot

What is Pega Copilot integration? Pega’s Copilot integration connects Microsoft Copilot — embedded in Microsoft 365, Teams, and Power Automate — to Pega’s case management engine via the A2A protocol. This allows Copilot users to trigger Pega workflows and receive Pega-driven outcomes directly within their Microsoft productivity environment, bridging Azure OpenAI and Pega’s enterprise automation capabilities.

:key: Key Takeaways:

  • Microsoft Copilot triggers Pega workflows via A2A — no custom middleware needed

  • Power Automate flows can create and update Pega cases through the same pattern

  • Relevant for Microsoft 365, Teams, Azure OpenAI, and Copilot Studio ecosystems

  • Pega handles all case logic and governance — Copilot handles the conversation

:books: Hands-On Recipes — Connect Microsoft Copilot to Pega


:glowing_star: MCP — Model Context Protocol

What is MCP in Pega? The Model Context Protocol (MCP) is an open standard — originally developed by Anthropic — that defines how AI agents discover and invoke external tools, APIs, and data sources at runtime. Pega’s MCP integration allows Pega Agentic AI agents to dynamically connect to any MCP-compatible tool server without hardcoded integrations. Because MCP is supported by Anthropic Claude, Google Gemini, and OpenAI, Pega’s MCP support positions it as a first-class citizen in the broader LLM agent ecosystem.

:key: Key Takeaways:

  • MCP is an open standard (Anthropic-originated) — now supported by all major LLM providers

  • Pega agents discover and invoke tools dynamically at runtime — no hardcoded integrations

  • Compatible with Claude, Gemini, and OpenAI tool-use and function-calling patterns

  • Enables Pega to connect to any MCP-compatible data source, API, or service

  • Supports the Agent Debate Pattern — multiple agents use different MCP tools in parallel

:books: Hands-On Recipes — Dynamically Connect Pega Agents to Any Tool


:gear: Background Processing

What is Pega Agentic AI Background Processing? Background Processing in Pega Agentic AI refers to the ability to run AI agent workflows asynchronously — triggered by Pega Queue Processors or SLA escalations — without any user initiating the session. The agent executes its full reasoning-and-action loop silently in the background, compatible with Gemini, Claude, and OpenAI for background inference.

:key: Key Takeaways:

  • Agents run asynchronously — no user session required to trigger AI processing

  • Queue Processors enable high-volume batch AI execution across thousands of cases

:books: Hands-On Recipes — Run Pega Agentic AI Around the Clock


:airplane: GenAI Email Bot

What is the Pega GenAI Email Bot? The Pega GenAI Email Bot is an AI-powered email processing agent that reads incoming emails, understands their intent using an LLM, and automatically creates Pega cases, triggers workflows, and generates contextually appropriate responses — without human intervention. It leverages Pega Agentic AI reasoning and is compatible with Google Gemini, Anthropic Claude, and OpenAI.

:key: Key Takeaways:

  • Reads and understands email intent using LLM — not keyword matching

  • Automatically creates Pega cases and triggers workflows from inbound emails

  • Generates contextually appropriate responses — reducing agent reply time to zero

  • Handles multi-request and ambiguous emails with Pega Agentic AI reasoning

:books: Hands-On Recipes — Turn Every Inbound Email Into a Pega Case


:sparkles: General

The General section covers broad Pega GenAI capabilities that apply across all implementations — from handling exceptional or unstructured case scenarios dynamically, to optimizing how your Pega application manages LLM token consumption to control cost and latency at scale. These recipes are essential reading before taking any Pega GenAI solution to production. All optimizations apply across Gemini, Claude, and OpenAI.

:key: Key Takeaways:

  • Ad Hoc Cases let Pega Agentic AI handle exceptions that don’t fit standard case types

  • Data Transform optimization reduces token payload — directly cuts LLM API costs

:books: Hands-On Recipes — Optimize Your Pega GenAI for Production

Closing Thoughts:

The future of enterprise automation is here — and it is powered by Pega Agentic AI. Pega has reimagined what AI can do inside the enterprise: not just assisting, but reasoning, planning, orchestrating, and delivering outcomes end-to-end. With Pega Agentic AI at the core, every workflow becomes smarter, every decision becomes faster, and every knowledge worker becomes more powerful. Pega GenAI Connect, Pega DocAI, Pega Knowledge Buddy, Pega Coach, and the full breadth of Pega’s agentic capabilities — all working together, all governed, all production-ready. This is what intelligent enterprise automation looks like. This is Pega Agentic AI.

31 Likes

@RameshSangilicongrats! It’s great breakdown of the Pega GenAI offering, and a fantastic starting point for getting started.

@RameshSangili Thank you for putting together and sharing such a valuable set of GenAI resources, it’s incredibly helpful for anyone looking to build real, practical skills. Your work makes it easier for all of us to stay ahead as Pega’s AI capabilities continue to evolve. We appreciate you, Ramesh.

@RameshSangili - I don’t see Knowledge Buddy in this list, is Pega deprecating KB?

@RameshSangili

Thank you for posting great article.

@RameshSangiliRameshSangili thank you for all the work that you have done in this space. Amazing materials on GenAI, Agentic AI. keep spreading the knowledge

@RameshSangili Thank you for posting these amazing articles with real examples - they have been incredibly helpful in understanding GenAI features in Pega.

@RameshSangili Appreciate you posting this informative article.

@RameshSangili “Fantastic news! Pega GenAI is transforming how we handle case management and customer engagement. You are in the right place at the right time. Congrats! :glowing_star:

@Atanu Sen I’m working on it. Tentatively about 2 weeks from now.

@Atanu Sentake a look here Knowledge Buddy: Mastering the Diagnostic Quality Chain | Support Center

We will be publishing more.

@RameshSangili Congrats! Nice content

@Atanu Sen

Knowledge buddy contents added today. Please reivew and let me know if you have questions.

Please find the bleow links for your reference.

@RameshSangili Fantastic explanation, i find this is very useful. Thank you @RameshSangili

Thank you @RameshSangili for sharing such a well-structured and insightful article on Pega GenAI. I really appreciated how you covered multiple topics and explained each concept with clear, practical examples. It made the content easy to understand and very useful. Great work!

@RameshSangili Great article to have. Thanks for the detailed explanation.

Well, I’m not sure what happened, but most of the links seem to have an issue — we’re unable to open them.

@GuiValino1984 The links to the article should be working now..

1 Like

@RameshSangili Thank you for taking the time to bring all of these concepts together. The way you’ve consolidated the capabilities and practical applications really helps in understanding how to leverage AI effectively within the Pega ecosystem.

Great work—this will be incredibly useful for anyone looking to take full advantage of GenAI in their Pega implementations.

1 Like