Skip to main content

Analyzing and extracting data from documents using Pega GenAI

3 Tasks

45 mins

Visible to: All users Applies to: Pega Platform '26
Advanced
English

Scenario

An Executive Manager at Metro Delivery Company (MDC) is responsible for reviewing the Business Partner Registration Cases. To enhance the screening of business partners, MDC decides to collect supporting documents, which include a “Certificate of business registration.”

However, manually reviewing lengthy documents slows down the approval process and increases the risk of missing critical details. To improve efficiency and decision quality, MDC wants to use Pega GenAI™ to automatically summarize the submitted document and present it to the Executive Manager. The summary must highlight key business details and surface potential concerns that require further review.

The following table provides the credentials you need to complete the challenge:

Role User name Password
Application Developer admin@deliveryservice rules
Note: You can complete this challenge only by using the Pega challenge instance provided with the Lead System Architect (LSA) training mission on Pega Academy.

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Detailed Tasks

1 Update the Partner Case Type to accept supporting documents

  1. In the Pega Platform™ instance for the challenge, enter the following credentials:
    1. In the User name field, enter admin@deliveryservice.
    2. In the Password field, enter rules.
  2. In the header of Pega Infinity Studio™, switch to the Registration application.
  3. Add a new Ruleset Version to the PartnerRegistration Ruleset and save the Ruleset.
  4. In the navigation pane, click Case Types, and then open Partner Case Type.
  5. Click the Data Model tab, and then add the following fields:
    1. Add an Attachment field with the label Certificate of business registration.
    2. Add a Text (paragraph) field with the label Partner profile.
  6. Click the Workflow tab, and then in the Create Stage, add a Form Step in the Create Process, and then name it Upload supporting documents.
  7. In the Step configuration pane, click Configure User Action.
  8. Add the Certificate of business registration field to the View, and then click Submit.
    Upload supporting documents view configuration.
  9. Click the UX tab, and then on the Full Page View tab, configure the Partner profile summary in the Case for review:
    1. In the Tabs section, click Add, and then create a new View named Partner profile.
    2. Open the newly created View, and click Add.
    3. Select the Partner profile field, and then click Add.
    4. Click Configure icon, and then set the Display as setting as Text area and Edit mode as Read-only.
    5. Save the Partner Case Type.
      Partner profile summary tab configuration.

2 Create DocAI Connect Rule to summarize partner profile

  1. In the header of Pega Infinity Studio, click Create > Generative AI > DocAI Connect.
  2. On the Create DocAI Connect form, complete the following fields:
    1. In the Label field, enter Summarize document.
    2. In the Application layer list, select Registration.
    3. In the Apply to box, press the Down arrow key, and then select MDC-Reg-Work-Partner.
  3. Click Create and Open.
  4. In the Select attachment field box, press the Down arrow key, and then select CertificateOfBusinessRegistration.
  5. Select the Customize system prompt checkbox, and then, in the System prompt list, enter SummarizeDocumentSystemPrompt and create the Field Value Rule as shown in the figure below:
    System prompt field value for DocAI Connect.
  6. Enter the below prompt in the To field of the Field Value Rule and then click Save.

You are a Business Document Analyst specializing in extracting and summarizing key information from business registration certificates.
Instructions:
* Extract all critical business information from the provided Certificate of Business Registration, including business name, registration number, registration date, business address, business type/classification, authorized representatives, and scope of business activities.
* Organize the extracted information in a clear, hierarchical structure that prioritizes information most relevant to executive decision-making.
* Identify and highlight any unusual, incomplete, or noteworthy details that may require executive attention.
* Present the summary in a professional, concise format suitable for executive review and approval workflows.
* Ensure all key data points are accurate and directly sourced from the document.
* Flag any missing or unclear information that could impact business partner evaluation.
* Format the output to be immediately actionable without requiring additional document review.

  1. Similarly, enter SummarizeDocumentUserPrompt in User prompt field of DocAI Connect Rule and create the Field Value Rule.
    User prompt for DocAI Connect.
  2. Enter the below prompt in the To field of the Field Value Rule and then click Save.

Analyze and summarize the attached Certificate of Business Registration. Provide a concise, executive-ready summary of the registering business partner's profile including business name, registration details, business classification, authorized representatives, scope of operations, and any notable or missing information that requires attention.

  1. In the Response section of DocAI Connect Rule, in the Expected response mode section, select Unstructured.
  2. In To property list, select PartnerProfile.
  3. Click Save.
    DocAI Connect Rule configuration.

3 Configure the DocAI Connect Rule in the Partner Case Type

  1. In Pega Infinity Studio, open the Partner Case Type.
  2. In the Approval Stage, add a DocAI Connect Automation Step before the Executive Manager approval Step.
  3. In the Step properties pane of the DocAI Connect Step, under the DocAI Connect name list, select the SummarizeDocument rule.  
    DocAI Connect configuration in Case Type.
  1. Save the Case Type.


Available in the following mission:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice