> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aryn.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Tutorial: Property Extraction with the DocParse UI

> Using the DocParse UI to extract properties from a document

## Introduction

In this tutorial, we will walk through an example of using DocParse to extract structured metadata from a document via the Aryn DocParse UI. We will be working with a [sample insurance document](https://aryn-public.s3.us-east-1.amazonaws.com/extraction-tutorial/gri.pdf) that contains a workers compensation reinsurance submission.

<Frame>
  <img src="https://mintcdn.com/aryn/XXw1SBGGI6wakw09/images/gri.png?fit=max&auto=format&n=XXw1SBGGI6wakw09&q=85&s=d39eb5f1150c80b38e0bc5f9f0c2a031" width="1652" height="1404" data-path="images/gri.png" />
</Frame>

To learn how to extract structured metadata using the Aryn SDK, you can follow [this tutorial](/docparse/tutorials/extraction_tutorial).

## Prerequisites

1. Get your free Aryn API key by signing up on the Aryn Console at [app.aryn.ai](https://app.aryn.ai).

2. Download the [sample document](https://aryn-public.s3.us-east-1.amazonaws.com/extraction-tutorial/gri.pdf) or have your own handy.

## Step 1: Defining a Simple Schema

Once you have logged into the Aryn console, load the document you downloaded into the [DocParse Playground](https://app.aryn.ai/docparse). To define properties, click on the \`\`Configure Schema'' button on the right-hand side of the page.

<img src="https://mintcdn.com/aryn/XXw1SBGGI6wakw09/images/extraction1.png?fit=max&auto=format&n=XXw1SBGGI6wakw09&q=85&s=ed200c1dd03c33e81b293025f4c851f5" alt="Property Extraction Options in the DocParse UI" width="2834" height="2290" data-path="images/extraction1.png" />

This brings up the schema creation wizard where you can define the properties you want to extract. Click the `+` button to add a property. For each property you can specify the name and type of the property, as well as an optional description, default values, and examples.

<img src="https://mintcdn.com/aryn/XXw1SBGGI6wakw09/images/extraction2.png?fit=max&auto=format&n=XXw1SBGGI6wakw09&q=85&s=4406e6d3e4b7b2606aaeb273ab65a741" alt="The schema creation wizard in DocParse" width="2834" height="2290" data-path="images/extraction2.png" />

Go ahead and add the following two fields:

```
Name: Submission Date
Type: Datetime
Description: The submission date of the claim.
```

```
Name: Submission Contact Email
Type: String
Description: The submission contact email.
```

## Step 2: Extracting Nested Data with Arrays

It's common to want to extract multiple records from a single document, each of which has a similar schema. For example, in the sample document, the current exposure information is broken out by state in a table on page 2. You can extract all of these entries with DocParse by specifying a field of type `Array`.

<img src="https://mintcdn.com/aryn/XXw1SBGGI6wakw09/images/extraction3.png?fit=max&auto=format&n=XXw1SBGGI6wakw09&q=85&s=bf2d3279faebd0d5565872bd5be9f27c" alt="Extracting an Array in the DocParse UI" width="2834" height="2290" data-path="images/extraction3.png" />

Since each record has multiple properties itself, we set the \`\`Item type'' of the Array to be `Object`. Then, scroll down and specify the properties of each Array element.

<img src="https://mintcdn.com/aryn/XXw1SBGGI6wakw09/images/extraction4.png?fit=max&auto=format&n=XXw1SBGGI6wakw09&q=85&s=790d04f60c17ae0bd6ae1ac4bef1d0e3" alt="Extracting an Array in the DocParse UI, Part 2" width="2834" height="2290" data-path="images/extraction4.png" />

In this case, the nested properties should be

```
Name: State, Type: String
Name: Class Code, Type: String
Name: Payroll, Type: Integer
Name: Manual Premium, Type: Integer
Name: Modified Premium, Type: Integer
```

The schema should look like the following:

<img src="https://mintcdn.com/aryn/XXw1SBGGI6wakw09/images/extraction5.png?fit=max&auto=format&n=XXw1SBGGI6wakw09&q=85&s=6ca4e26ef56d14b15479a301078696f1" alt="The final Schema in the DocParse UI" width="2834" height="2290" data-path="images/extraction5.png" />

Once you have the schema how you like it, click on `Save Schema` and then `Process Document` to perform the parsing and extraction.

## Step 3: Review Results

After DocParse has finished processing, you can review the results. Select the "Properties" tab on the right-hand side to look at the extracted properties.

<img src="https://mintcdn.com/aryn/XXw1SBGGI6wakw09/images/extraction6.png?fit=max&auto=format&n=XXw1SBGGI6wakw09&q=85&s=18404d193b89b29347a50b04a3d1d83f" alt="Reviewing a document in the DocParse UI" width="2834" height="2290" data-path="images/extraction6.png" />
