Thanks for raising this scenario — it’s a very common first step when teams start working with email‑driven cases, and getting the placement right early makes a big difference.
My recommended approach in Pega is to keep this as governed case processing, not free‑form agent behavior:
1. Create the case from the email using standard email‑to‑case
Use Pega’s email channel / email instantiation to create the case when the email arrives. This ensures the email body is captured as part of the case context and remains fully auditable. No AI decisions should be made at this point.
2. Extract data using GenAI Connect in the Create stage (or an early explicit step)
Once the case exists, use a GenAI Connect rule to extract information from the email body and populate specific case properties. This is the safest and most predictable pattern because:
-
Inputs are explicit (email body, subject, metadata)
-
Outputs are structured and mapped directly to known case fields
-
The behavior is bounded, testable, and observable
3. Keep AI out of case control logic (unless you have high accuracy/performance)
GenAI should extract and propose values, but workflow, rules, or humans should decide what happens next. Avoid letting AI advance stages, route the case, or auto‑submit based solely on extracted content.
4. Add human review where correctness matters
If the extracted data affects compliance, downstream automation, or customer communication, route the case to a review assignment before proceeding. This is a recommended pattern when working with unstructured input like emails.
5. When to use an Agent (and when not to)
For a first implementation like this, GenAI Connect is preferred. Agents are better suited for multi‑step reasoning or conversational scenarios and introduce more autonomy than is usually needed for simple extraction.
This pattern keeps AI inside clear workflow boundaries, preserves auditability, and scales safely as volume increases.
Curious to hear from others: