# Can Pega DocAI Connect be used for documents from upstream systems

**URL:** <https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080>\
**Category:** General\
**Tags:** generative-ai, pega-platform, case-management\
**Created:** [November 18, 2026, 2:30pm UTC](https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080 "2026-11-18T14:30:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrahmeshTech](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@BrahmeshTech](https://forums.pega.com/u/BrahmeshTech)\
**Post date:** [November 18, 2026, 2:30pm UTC](https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080/1 "2026-11-18T14:30:49Z")

</div>

Can Pega Doc AI Connect be leveraged to process document content (e.g., binary files or input streams) originating from an external upstream system, rather than documents uploaded directly by users as case attachments in Pega?

Today We currently receive documents from upstream systems through API and attach them to the Pega case but we would like to explore whether Doc AI Connect can process the document content directly from the upstream system (without requiring it to be uploaded or stored as a case attachment first), extract the relevant information, and use the extracted data to automatically populate fields in the Pega UI.

---

<div class="post-metadata">

**Author:** ![Chetan.Chaudhari](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/chetan.chaudhari/32/24064_2.png) [@Chetan.Chaudhari](https://forums.pega.com/u/Chetan.Chaudhari)\
**Post date:** [November 18, 2026, 4:48pm UTC](https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080/2 "2026-11-18T16:48:19Z")

</div>

Some context, first:

1. Pega does not recommend storing attachments inside pega database, so, storing attachments in database has been deprecated. Now attachments are simply pointers to the document in repositories. Pega recommend clients configure an out of box or custom repository for their external storage systems like fileNet, Documentum, or even Alfresco CMIS. By attaching a document to a Pega case clients are not duplicating the document or storing ‘in Pega’ in any manner.
2. An Attachment can be created programmatically as an Embed-Attach-Page; it does not need to be necessarily uploaded manually.

DocAI Connect rule (or the GenAI Connect rule with Attachment prior to '26.1.1) expects document to be attached to a case whose data model it would populate from the document.

There are two use cases when document is to be attached programmatically:

1. When you receive the document stream, you know which case it should be attached to. Attach it to that case and call DocAI Connect rule.

2. When you don’t know which cas type or case the document should be attached to, you use Agent (not DocAI Connect/Document Agent) to classify the document, find out which case type this should attach to, find out if a case exists, if not create such a case and Attach the document, and then invoke the DocAI Connect rule.

---

<div class="post-metadata">

**Author:** ![Tim\_Straatsma](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/tim_straatsma/32/23258_2.png) [@Tim\_Straatsma](https://forums.pega.com/u/Tim_Straatsma)\
**Post date:** [November 19, 2026, 8:47am UTC](https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080/3 "2026-11-19T08:47:07Z")

</div>

Thanks for jumping in @Chetan.Chaudhari!

Really good to have your clarification on the document handling

---

<div class="post-metadata">

**Author:** ![BrahmeshTech](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@BrahmeshTech](https://forums.pega.com/u/BrahmeshTech)\
**Post date:** [November 19, 2026, 12:21pm UTC](https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080/4 "2026-11-19T12:21:12Z")

</div>

@Tim_Straatsma @Chetan.Chaudhari Thanks for your time to respond.. Yes, we are aware that storing documents directly in Pega Database will no longer be supported in the 26 version, and we are already storing documents in an external repository.

The Doc AI Connect expects a property of type **Attachment**. In our scenario, the documents originate from an upstream system through API and attached to the case so are you suggesting that we create a page property with the **Embed-Attach-File** class and configure its data access to use a data page backed by **D\_pzAttachmentFieldInfo**?

If so, can we use this property in the Document AI Connect rule without it being explicitly defined as an Attachment-type property?

---

<div class="post-metadata">

**Author:** ![Chetan.Chaudhari](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/chetan.chaudhari/32/24064_2.png) [@Chetan.Chaudhari](https://forums.pega.com/u/Chetan.Chaudhari)\
**Post date:** [November 19, 2026, 12:41pm UTC](https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080/5 "2026-11-19T12:41:10Z")

</div>

How are you currently attaching to case? Are you attaching as as-hoc attachment?

Chetan Chaudhari  
Principal Product Manager  
DocAI/IDP/OCR, Attachments, Case Archival  
Pegasystems, Inc.

---

<div class="post-metadata">

**Author:** ![BrahmeshTech](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@BrahmeshTech](https://forums.pega.com/u/BrahmeshTech)\
**Post date:** [November 19, 2026, 1:01pm UTC](https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080/7 "2026-11-19T13:01:53Z")

</div>

The upstream system is aware of the Pega Case ID. When it sends an API request to Pega containing the document stream, document category, and corresponding Case ID, we use the OOTB **AttachFile** activity within the Service-REST processing flow to attach the document to the specified case.

---

<div class="post-metadata">

**Author:** ![Chetan.Chaudhari](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/chetan.chaudhari/32/24064_2.png) [@Chetan.Chaudhari](https://forums.pega.com/u/Chetan.Chaudhari)\
**Post date:** [November 25, 2026, 5:40am UTC](https://forums.pega.com/t/can-pega-docai-connect-be-used-for-documents-from-upstream-systems/14080/8 "2026-11-25T05:40:02Z")

</div>

For DocAI Connect rule, you need to attach the file to Attachment Field. I can share a small RAP showing that.
