---
schema_version: "1"
id: a68ed87534d0706163f44e6105a897de08c9d574bf3917314c976f9cd2085141
title: DocumentAI Namespace
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/apex_namespace_documentai.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_documentai.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 59bdf10b1b6d38b5a3cf6669f0220696088476f1d365f8dd0b4349dbd35132e7
description: The DocumentAI namespace provides classes for Document AI to process and extract data from documents, including configurations for duplicate detection, post-transformation, and post-save processing.
---
# DocumentAI Namespace

The DocumentAI namespace provides classes for Document AI to process and extract data from documents, including configurations for duplicate detection, post-transformation, and post-save processing.

The DocumentAI namespace includes these classes and interfaces.

- **[Error](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_error.htm)**  
    Represents an error encountered during Document AI processing.
- **[DuplicateRuleConfiguration](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_duplicate_rule_config.htm)**  
    Represents the configuration used to perform duplicate detection during Document AI processing.
- **[DuplicateObjectConfiguration](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_duplicate_object_config.htm)**  
    Represents the duplicate detection configuration for a specific entity in Document AI processing.
- **[PostTransformInput](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_post_transform_input.htm)**  
    Represents the input payload provided to the Document AI post-transform process.
- **[PostTransformResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_post_transform_result.htm)**  
    Represents the output returned from the Document AI post-transform process.
- **[ExtractionMetadata](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_extraction_metadata.htm)**  
    Represents additional metadata returned during Document AI processing, including matching resolution details and manual review requirements.
- **[Node](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_node.htm)**  
    Represents a structured entity node in Document AI processing, containing object details, extracted attributes, and potential matching record information.
- **[MatchingRecord](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_matching_record.htm)**  
    Represents a potential existing record identified during Document AI matching or duplicate detection.
- **[Attribute](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_attribute.htm)**  
    Represents an extracted field-level attribute within a Document AI node, including its value, metadata, confidence score, and potential matching information.
- **[PostSaveInput](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_post_save_input.htm)**  
    Represents the input payload for the Document AI post-save process, containing version information and saved record details.
- **[SavedRecordDetail](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_saved_record_detail.htm)**  
    Represents a record that was created or updated during Document AI processing and is included in the post-save context.
- **[PostSaveResult](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_post_save_result.htm)**  
    Represents the output returned from the Document AI post-save process, including status and error details.
- **[BatchProcessor](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_batch_processor.htm)**  
    This is schedule apex used to schedule the batch job for batch document ai.
- **[ObjectConfig](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_docai_object_config.htm)**  
    A configuration wrapper class for Document AI operations.