Franklin Markley, Senior Product Manager, Pega Customer Service
TL;DR. Pega’s deep workflow and case context act as the harness that lets businesses scale agentic work and track every step of it, wherever that work happens. Here, that’s Cisco Webex. Over the Model Context Protocol (MCP), a Pega case puts an editable order in front of the right people in Webex and pulls their corrections, files and questions straight back into the case, while a Pega Agent handles the conversation. Routing, SLAs, Pulse and audit never leave Pega. The starter code is open source: frankmark94/Pega-Agent-MCP-Webex · GitHub.
Figure 1. Case F-1009 arrives in a Webex space as an editable card, built from the case’s own Amend order view. The team corrects it in place and presses Submit to Pega.
Why bother putting Pega in Webex?
A lot of real work happens in chat. Sales engineers, fulfillment teams and approvers live in Webex spaces all day. Asking them to log into a portal to fix three fields on an order is where cycle time goes to die.
The usual shortcut is to build a chatbot that owns the process. That trades one problem for another: you lose routing, SLAs, audit and access control the moment the work moves into a bot’s memory.
We wanted the opposite. Keep the process in Pega and bring the people to it. Webex becomes another surface of the case, the same way the portal is, and MCP is the contract between them.
The value of keeping the workflow in Pega
This is the part worth repeating to your stakeholders. Webex is the front door; Pega is the house.
| Concern | Who owns it | Why it matters |
|---|---|---|
| Which step the order is in | Pega case lifecycle | Stages and steps are visible, reportable and versioned. Nothing hides in a chat thread |
| Who works it next | Pega routing | Amend order goes to the bot operator, Review order goes to the reviewer. Change it in the Case Designer, not in code |
| What is allowed | Pega security | Every Webex action runs as a real operator with an access group. Same validation as the UI |
| What happened | Pega audit + Pulse | Every correction, attachment and handoff is a Pulse post and a history entry on the case |
| When it is late | Pega SLAs | The case keeps its deadline even while people are chatting about it |
| Answers and reasoning | Pega Agent + Knowledge Buddy | Grounded answers from approved content, with guardrails |
| Where people talk | Webex | No new app, no portal login, no context switch |
The LLM never decides whether an order is approved, who reviews it, or whether a field is valid. Deterministic Pega rules do the work; the agent reasons and picks tools.
The scenario: Fulfill order
The demo is a B2B Fulfill order case for a telco. A CSR captures an offer; the team that knows the details corrects it in Webex; a reviewer signs off.
Figure 2. The Review stage: Post order to Webex (MCP Connect step) → Amend order (routed to the bot operator) → Post Webex amendment to Pulse → Review order (routed to the reviewer).
- Process offer: the CSR enters the offer text, installation date, capacity, pre-approved limit and communication preference.
- Post order to Webex: an MCP Connect automation step calls
webex_request_order_amendment. No LLM, no prompt; same result every time. - Amend order: the assignment is routed to a dedicated bot operator. People in Webex see an editable card built from this assignment’s own view, and press Submit to Pega.
- Post to Pulse: a standard Pulse automation posts as the bot operator, so the case shows exactly what happened and by whom.
- Review order: routed to the reviewer, with the amended values and any files people dropped in Webex.
Two MCP directions
MCP gets talked about as “how an LLM calls tools”. In Pega Infinity '26 it is more useful than that, because Pega speaks it in both directions:
Figure 3. Pega calls out to Webex over MCP; submits, questions and files come back through DX, AgentX and the Service MCP, acting as the bot operator. Routing, SLAs, Pulse, audit and security stay in Pega.
| Direction | Pega feature | What it does here |
|---|---|---|
| Pega → outside | Connect MCP rule | Points at the Webex MCP server; used by the MCP Connect step and by the agent |
| Pega → outside | MCP Connect step (Case Designer → Automations) | Calls one MCP tool deterministically from the case lifecycle |
| Pega → outside | Agent → Advanced tools → MCP | Lets a Pega Agent decide to call the same tools in conversation |
| Outside → Pega | Service MCP (pxCommon) |
Exposes Invoke_knowledge_agent, Perform_Assignment, PostToPulse, Get_Case_Types and more to external MCP clients |
| Outside → Pega | AgentX API | Durable, multi-turn conversations (PXCONV-####) with a Pega Agent |
| Outside → Pega | DX API v2 | Complete assignments, upload attachments, post to Pulse with full UI validation |
The bridge in the middle is small: about 500 lines of Node.js. It’s an MCP server for Pega, a webhook receiver for Webex, and a DX/AgentX client back into Pega.
Build it, step by step
1. A bot operator that owns the work
Create an Operator ID for the bot (we used webexorderbot, Webex Order Desk Bot) with your application’s access group. Give it a picture; it shows up next to every Pulse post.
Figure 4. The bot operator. Every write from Webex is attributed to it, and you can route assignments to it like any other worker.
2. An OAuth 2.0 client registration for the bridge
Create → Security → OAuth 2.0 Client Registration: Confidential, Client credentials grant, operator context = the bot operator. The bridge uses these credentials for DX, AgentX and the Service MCP.
Figures 5 and 6. Client credentials mapped to the bot operator. Download the secret when you create it; Pega won’t show it again.
3. Run the Webex MCP server
Clone the starter, fill in .env, run it somewhere with a public HTTPS URL, and register the Webex webhooks:
git clone https://github.com/frankmark94/Pega-Agent-MCP-Webex
cd Pega-Agent-MCP-Webex
cp .env.example .env # Webex bot token, Pega URL, OAuth client, shared MCP key
npm install && npm start
npm run register-webhooks -- https://your-bridge.example.com
It exposes three MCP tools: webex_request_order_amendment, webex_post_case_update and webex_send_message. The order tool doesn’t hard-code a form. It reads the assignment’s live view metadata through DX (field labels, types, read-only flags, even data-page-backed picklists) and renders it as a Webex Adaptive Card. Change the view in App Studio and the card follows.
4. A Connect MCP rule pointing at it
Create → Integration-Connectors → Connect MCP. Streamable HTTP, the bridge’s /mcp URL, and a constant X-Bridge-Key header with the shared key.
Figures 7 and 8. Test connectivity discovers the tools straight from the server. If you see the list, Pega can call Webex.
5. Drop an MCP Connect step into the lifecycle
In the Case Designer: Add Step → More → Automations → MCP Connect. Pick the Connect MCP rule and the webex_request_order_amendment tool, and map caseKey to .pzInsKey. Put it just before the assignment you want completed from Webex, and route that assignment to the bot operator.
Figure 9. Post order to Webex sits just before Amend order in the Review stage. Tool name and description come from the MCP server;
caseKey maps straight to .pzInsKey.
Add a Post to pulse automation after the assignment, with User posting = Other → the bot operator, so the case tells its own story.
6. Give a Pega Agent the same tools
For the conversational half, create a Pega Agent (we Save-As’d an existing chat agent into Webex Order Desk Agent):
- Instructions and guardrails: order-desk scope only, never invent prices or policy, refer to orders by case ID.
- Knowledge: a Buddy tool backed by your Knowledge Buddy.
- Advanced tools → MCP: the same Connect MCP rule.
Figures 10 to 12. One Connect MCP rule serves both the deterministic step and the agent.
Set PEGA_AGENT_ID in the bridge (the agent’s key, CLASS!AGENTNAME). Every Webex space gets its own durable AgentX conversation, so follow-up questions keep context.
See it work
In Webex, the order arrives as the card shown at the top of this post (Figure 1), with the case’s current values ready to correct. Someone presses Submit to Pega. The bridge completes Amend order with only the fields that changed and replies in the thread with a diff:
Figure 13. The bridge confirms the update and lists exactly what changed. These are the same four fields the Pulse post records on the case.
@mention the bot with a question and the Pega Agent answers from the Knowledge Buddy. When the content isn’t there, it says so instead of guessing:
Figure 14. The agent answers from the Knowledge Buddy and says plainly when pricing or discount details aren’t in approved content.
Drop a file in the card’s thread (or mention the case ID), and it lands on the case as an attachment.
In Pega, the case shows the whole story in Pulse, all posted by the bot operator:
Figure 15. Who reviewed it in Webex, which fields changed, the file that was attached, and the handoff to the reviewer.
Figure 16. Files posted in Webex become case attachments, attributed to the bot operator.
Security and governance
- One accountable identity: client credentials map every Webex action to the bot operator, so access groups, privileges and case-type security still apply. For per-user identity, add OAuth authorization-code account linking.
- Signed inbound traffic: Webex webhooks are verified with HMAC; the Connect MCP rule sends a shared header the bridge checks in constant time. In production, put OAuth or mTLS in front of
/mcp. - Least scope for the agent: it only has the knowledge tool and the Webex MCP tools; everything else was removed from its definition.
- Audit by default: if it happened in Webex, it’s in Pulse and case history.
Summary
- Pega is the harness for agentic work. The case lifecycle, routing, SLAs and security govern every step, so agents and people can scale without losing control.
- Work meets people where they already are. Teams correct orders, ask questions and share files in Webex, with no portal login and no context switch.
- Every action is tracked. Corrections, attachments and handoffs land in Pulse and case history, attributed to an accountable operator.
- Deterministic where it must be, conversational where it helps. An MCP Connect step handles required handoffs; a Pega Agent answers questions from approved knowledge.
- One integration, two directions. A single Connect MCP rule serves both the lifecycle step and the agent, and DX, AgentX and the Service MCP bring the work back into Pega.
- Fast to adopt. The open-source starter and a few Pega rules get you from case type to Webex card quickly.
Get the code
**https://github.com/frankmark94/Pega-Agent-MCP-Webex**: MIT-licensed starter with the MCP server, Webex webhook handling, DX/AgentX client and setup guide. Fork it, point it at your case type, and let us know what you build.















