Optimizing Case processing with Pega GenAI Agents
3 タスク
45 分
シナリオ
As the number of truck vendor registrations increases, MDC wants to improve the quality and efficiency of the vendor evaluation and review process, while ensuring that final approval decisions remain with authorized users. Executive Managers often need quick clarity on vendor details, supported service locations, and potential gaps or concerns in the registration before approving.
MDC is building a Compliance application that specializes in evaluating vendor compliance and readiness across different vendor types and regulatory jurisdictions. These compliance checks are managed as a siloed manual process now.
As a Lead System Architect (LSA), you are asked to implement a technical proof of concept to apply Pega GenAI Agentic capabilities to optimize the review process. This includes:
- A conversational agent to assist with vendor evaluation by giving quick insights about the vendor
- Initiation of compliance check on need basis using A2A interaction with the external Compliance application.
The following table provides the credentials you need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| Admin | admin@deliveryservice | rules |
詳細なタスク
1 Configure Case level Agent for vendor evaluation
- In the Pega Platform instance for the challenge, enter the following credentials:
- In the User name field, enter admin@deliveryservice.
- In the Password field, enter rules.
- In the header of App Studio, switch to the Truck Service application.
- Switch to Dev Studio, and create a new version in the TruckService Ruleset.
- Switch back to App Studio, and then, in the navigation pane, click AI Designer > Agent.
- On the landing page, click Create new Agent.
- Complete the Create Agent dialog box:
- In the Agent name field, enter Vendor evaluation.
- In the Description text box, enter This agent assists the Executive Manager during the vendor enrolment approval step. It provides conversational, on‑demand support by summarizing vendor details, highlighting potential compliance or completeness issues, and explaining key information in clear business language. The agent does not make approval decisions but supports the Executive Manager with relevant insights while reviewing the vendor registration.
- In the Scope section, select Case Type.
- In the Applies To list, select Vendor Enrollment.
- Click Submit.
- On the Definition tab of the Vendor evaluation Agent Rule, in the Agent instructions text box, enter the following text:
This agent assists Executive Managers during the vendor enrolment approval step by providing conversational, on demand support based on the information captured in the case. The agent can:
Summarize key vendor details in clear, business friendly language.
Answer specific questions about the vendor using case data.
Provide advisory insights only; it does not approve or reject vendors. - In the Guardrails text box, enter the following text:
Do not provide or infer sensitive vendor information beyond what is explicitly captured in the case, including personally identifiable information (PII) or confidential identifiers.
Do not make approval, rejection, or commitment decisions on behalf of the Executive Manager. All final decisions must remain with authorized users.
Do not initiate or process vendor actions such as approvals, registrations, or document submissions. Direct users to the appropriate case steps or authorized roles. - In the Response Style & Tone text box, enter the following text:
Maintain a professional yet approachable tone that balances technical accuracy with clear, accessible language appropriate for both utility professionals and customers.
Use concise language while ensuring completeness of information, avoiding unnecessary technical jargon when simpler terms will suffice.
Conclude responses with a clear next step or invitation for follow-up questions to maintain conversation flow and ensure user satisfaction. - In the Guided Questions section, in the Question text box, enter How can I help you review this vendor enrollment?
- In the Additional Instructions text box, enter Keep the initial response very brief without any Case-specific details.
- In Quick-Select Question section, click Add, and then in the Question text box, enter Give me a quick overview of this vendor’s enrolment information.
- In the Additional Instructions text box, enter Refrain from discussing internal vendor rankings, commercial terms, or strategic considerations that are not intended for disclosure during the review process.
- Repeat steps 12-13 to add the following question and instructions:
Question Additional Instructions In which cities does the vendor provide freight services?
Identify and list the cities in which the vendor has indicated they provide freight services, based on the registration details captured in the Case.
- Save the Agent.
- Click the Knowledge tab, and then click Open Agent in Dev Studio.
補足: Refresh the Agent Rule if you cannot see the configurations you created in the previous steps.
- Click the Knowledge tab. In the Tool field, enter or select pyGetCaseData
- Click Add, and then enter or select pyGetCaseHistory.
- Save the Agent Rule.
For more information about Agent Rule configuration, see Automating Case processing by creating Agents.
2 Configure external Agent access for vendor compliance check
- In the header of App Studio, switch to the Compliance application.
- Switch to Dev Studio, and then add a new Ruleset version in ComplianceMgmt Ruleset.
- Switch back to App Studio.
- Click AI Designer > Agent, and then click Compliance Agent.
- Click the Settings tab, and then select the Enable External Access checkbox.
- Copy the generated Agent card URL into a notepad.
You use this URL to configure the Agent2Agent (A2A) interface. - Save the Agent.
- Click App Studio > Dev Studio.
- In the navigation pane of Dev Studio, click Records
- Click Security > OAuth 2.20 Client Registration.
- In the list of instances, open the PegaApp_ComplianceMgmt record.
- In the Client Credentials section, click Regenerate client secret, and then in the dialog box, click Regenerate.
- Click View & Download to save the file, and then close the dialog box.
- In the PegaApp_ComplianceMgmt Rule, click Save.
- Switch to the Truck Service application, and then switch to Dev Studio.
- In the Records Explorer, click Security > Authentication Profile, and then click Create.
- In the Type list, select OAuth 2.0.
- In the Name field, enter VendorComplianceAuthProfile, enter Short description, and click Create and open.
- On the Client configuration landing page, in the Grant type list, select Client credentials.
- Enter the client identifier, client secret, access token endpoint, and revoke token endpoint by using the information you downloaded in step 13.
- In the Advanced configuration section, in the Lowest allowable SSL/TLS version field, enter or select TLS version 1.2.
- Save the Authentication Profile Rule.
-
- In the Records Explorer, click Generative AI > Agent.
- Open the VendorEvaluation Agent Rule, and then click the Advanced Tools tab
- In the External Agents and Tools section, in the Agents table, click Add, and then enter VendorCompliance.
- Click the Open icon.
- In the Apply to field, enter or select MDC-TS-Work-VendorEnrollment, and then click Create and open to set the Agent protocols:
- On the Service tab, in the Protocol list, select Agent2Agent(A2A).
- In the Provide URL field, enter the Agent Card URL you copied in step 4.
- In the Authentication section, in the Agent card and Execution fields, enter VendorComplianceAuthProfile.
- Click History tab, and enter Description.
- Click Save, and then close the Connect Agent Rule.
- Go back to the VendorEvaluation Agent rule, enter the VendorCompliance Connect Agent Rule in the Agents field in the External Agents and Tools section.
- Save the Agent Rule.
3 Configure the Agent widget in the Case Type
- Switch to the Truck Service application.
- In the navigation pane of App Studio, click Case Types > Vendor Enrollment.
- On the UX tab, on the Full Page View tab, add a new tab component.
- Enter a name (for example, Pega GenAI), and then click Submit.
- Click the new tab, and then click Add > Widget.
- In the list, select Agent, and then click Add.
- Click the Configure icon, click Add, select Vendor evaluation Agent, and then click Add.
- Click Save to complete the widget configuration.