# Auto-Parsing

Astera allows users to process an input stream of name data and returns it into its constituent elements such as first name, middle name and last name, as parsed output with the help of the built-in auto-parsing feature.

In this document, we will learn how to automatically parse name data fields using the auto-parsing feature in Astera.

## Sample Use Case

In this case, we have some unstructured data stored in a PDF file.

Download the sample PDF file from here.

{% file src="/files/TeqtjTnKpRCVCzhtvHnJ" %}

![](/files/AXeXvEbqsdLdGhD6Y1yH)

This file is a customer list report that contains information such as full contact name, full address and account details of customers.

If you look at it, the *Account* field contains full name with title. We want to extract and parse this information into Suffix, First Name, Middle Name, Last Name and Prefix.

## Creating a Report Model

1\. Load the unstructured source file in the report model designer.

![](/files/Ja1gqPyrE8uK9td6Lnj4)

2\. Add a data region. Specify the pattern by typing "ACCOUNT:" in the pattern bar.

![](/files/s15idX1a15iOEB1SVfUr)

3\. Highlight the data region after "ACCOUNT:". Right-click on it and select *Add Name Field* from the context menu.

![](/files/b86pWC4rwrYFNmkPQ9Zt)

You can see that the parsed name field components such as NamePrefix, NameFirst, NameMiddle and NameLast have been added to the report model in the Model Layout panel under the Report Browser panel.

4\. Preview the extracted data to make sure everything, including the different fields and data, is in place.

![](/files/Mh6Cvlq7nvRPjLNHOxXq)

The concludes working with the *Auto-Parsing* feature in Astera.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/report-model/use-cases/auto-parsing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
