Current setup:
-
On the review screen, the customer uploads a new address proof using the OOTB attachment field.
-
I created a property called
AttachAddressDataof typeAttachment. -
I referenced this property in the view, so Pega renders the attachment control.
-
After the user submits the screen, I am able to call a GenAI Connect rule on the server side, parse the uploaded document, and prefill the new address fields successfully.
Problem:
-
This works only after submit and only on the next screen.
-
I want the parsing to happen immediately when the document is uploaded, so the address fields are prefixed/prefilled on the same screen without waiting for submit.
What I need:
-
Is there a supported OOTB way in Constellation to trigger GenAI parsing as soon as the attachment is uploaded and refresh the same form?
-
If not, is the recommended approach to build a custom DX component that combines:
-
document upload,
-
server-side GenAI parsing call,
-
and immediate field prefilling in the same view?
-
What I am trying to achieve:
-
Upload attachment.
-
Call server-side GenAI parsing immediately.
-
Populate address fields in the same screen.
-
Avoid requiring submit just to run the parsing.
Any guidance, sample pattern, or best practice would be appreciated.