---
schema_version: "1"
id: f7f244de85cbaf5eb9e5f2f87b67bb8abd303dbfe3a35e61d861878af6ec88a7
title: Document AI Example Schemas
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/data/264-0-0/c360_a_document_ai_schema_ref.md
canonical_url: https://help.salesforce.com/s/articleView?id=data.c360_a_document_ai_schema_ref.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 70e7ba554c95809773d9f01e44885ba20ac62cebc06bceff3715a7d55ac23495
description: The following prompts are JSON-formatted schemas that you can use when creating an Document AI configuration in Data 360. Use these examples as starting points, or modify them for your specific use cases.
products:
  - Data 360
release: "264"
---
# Document AI Example Schemas

The following prompts are JSON-formatted schemas that you can use when creating an Document AI configuration in Data 360. Use these examples as starting points, or modify them for your specific use cases.

## Lab Report

Create an output DLO from a pathology lab report.

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "Pathology Report Schema",
  "properties": {
    "lab_name": {
      "type": "string",
      "description": "Name of the pathology lab"
    },
    "lab_contact": {
      "type": "string",
      "description": "Contact number of the lab"
    },
    "lab_email": {
      "type": "string",
      "description": "Email address of the lab"
    },
    "lab_address": {
      "type": "string",
      "description": "Full address of the lab"
    },
    "lab_website": {
      "type": "string",
      "description": "Website URL of the lab"
    },
    "patient_name": {
      "type": "string",
      "description": "Name of the patient"
    },
    "patient_age": {
      "type": "string",
      "description": "Age of the patient"
    },
    "patient_sex": {
      "type": "string",
      "description": "Sex of the patient"
    },
    "patient_id": {
      "type": "string",
      "description": "Patient identification number"
    },
    "sample_collection_address": {
      "type": "string",
      "description": "Address where the sample was collected"
    },
    "referred_by": {
      "type": "string",
      "description": "Name of the referring doctor"
    },
    "registration_date": {
      "type": "string",
      "description": "Date and time of registration"
    },
    "collection_date": {
      "type": "string",
      "description": "Date and time of sample collection"
    },
    "report_date": {
      "type": "string",
      "description": "Date and time of report generation"
    },
    "test_name": {
      "type": "string",
      "description": "Name of the test conducted"
    },
    "test_result": {
      "type": "number",
      "description": "Result value of the test"
    },
    "result_remarks": {
      "type": "string",
      "description": "Remarks based on the test result"
    },
    "reference_value": {
      "type": "string",
      "description": "Reference value for the test"
    },
    "unit": {
      "type": "string",
      "description": "Unit of measurement for the result"
    },
    "interpretation_table": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Table for interpretation of results",
        "properties": {
          "result_index": {
            "type": "string",
            "description": "Range of result index"
          },
          "remarks": {
            "type": "string",
            "description": "Remarks corresponding to the index range"
          }
        }
      },
      "description": "Table for interpretation of results"
    },
    "comments": {
      "type": "string",
      "description": "Additional comments about the test"
    },
    "report_signatories": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "signatory_name_role": {
            "type": "string",
            "description": "This is name of the signature along with any salutation"
          },
          "signatory_qualification": {
            "type": "string",
            "description": "These are any of the qualifications or title associated with the signatory"
          }
        }
      }
    }
  }
}
```

## Invoice

Create an output DLO from an invoice.

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object", 
  "title": "Invoice Schema",
  "properties": {
    "VendorName": {
      "type": "string",
      "description": "Name of the vendor issuing the invoice"
    },
    "Vendor Address": {
      "type": "string",
      "description": "Full address of the vendor"
    },
    "Vendor Phone number": {
      "type": "string",
      "description": "Phone number"
    },
    "Billing Address": {
      "type": "string",
      "description": "Full name and address of the billing entity"
    },
    "Product Item List": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Table containing the list of products",
        "properties": {
          "Item ID": {
            "type": "string",
            "description": "Item id"
          },
          "Item Description": {
            "type": "string",
            "description": "Full description for the item"
          },
          "Quantity": {
            "type": "number",
            "description": "Number of items"
          },
          "Unit Price": {
            "type": "number"
          },
          "Line total": {
            "type": "number",
            "description": "Line total for the product line item"
          }
        }
      },
      "description": "Table containing the list of products"
    },
    "Total amount": {
      "type": "number"
    }
  }
}
```

## Resume

Create an output DLO from a resume.

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "Resume Schema",
  "properties": {
    "Candidate First Name": {
      "type": "string",
      "description": "Candidate's first name"
    },
    "Candidate Surname": {
      "type": "string",
      "description": "Candidate's surname. Include the rest of the name apart from the title and first name. Include any initials."
    },
    "Candidate Title": {
      "type": "string",
      "description": "Title of the candidate. Generally comes before their name"
    },
    "Candidate Address line 1": {
      "type": "string",
      "description": "Address line 1 of the candidate"
    },
    "Candidate Address line 2": {
      "type": "string",
      "description": "Address line 2 of the candidate"
    },
    "Candidate City": {
      "type": "string",
      "description": "City name of the candidate (Use current residential address)"
    },
    "Candidate State": {
      "type": "string",
      "description": "State name of the candidate (Use current residential address)"
    },
    "Candidate's country": {
      "type": "string",
      "description": "Country name of the candidate (Use current residential address)"
    },
    "Candidate's pincode": {
      "type": "string",
      "description": "Pincode of the candidate (Use current residential address)"
    },
    "Candidate Phone number": {
      "type": "string"
    },
    "Candidate's academic record": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "Name of institution": {
            "type": "string"
          },
          "Name of the program or degree": {
            "type": "string",
            "description": "Full details of the academic program including degree name and specialization"
          },
          "Description of the program": {
            "type": "string"
          },
          "Duration of program": {
            "type": "string",
            "description": "Contains start and end year/month"
          }
        }
      }
    },
    "Candidate's work experience": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "Organization name": {
            "type": "string"
          },
          "Duration of tenure": {
            "type": "string",
            "description": "Contains start and end year/month"
          },
          "Role": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

#### See Also

- [Document AI](https://help.salesforce.com/s/articleView?id=data.c360_a_document_ai.htm&release=264.0.0&type=5 "Document AI in Data 360 uses large language models (LLMs) to extract structured data from unstructured documents such as invoices, resumes, lab reports, and purchase orders.")
- [Auto-extract the Document Schema](https://help.salesforce.com/s/articleView?id=data.c360_a_document_ai_new_config.htm&release=264.0.0&type=5 "Use the document schema builder to auto-extract the document schema, including fields, tables, and columns.")
- [Add Tables to Extract](https://help.salesforce.com/s/articleView?id=data.c360_a_document_ai_new_config_manual.htm&release=264.0.0&type=5 "Configure the tables to extract.")