# Setting Up AGL in Astera

The *Auto-Generate Layout* *(AGL)* feature lets you auto-create all the data regions and data fields with the click of a button. This feature helps save time and effort spent on manually creating a report model from scratch, making the entire extraction process quicker and more efficient.

In this document, we will see how to set up Java and Python to run AGL in Astera.

## **Installing Java**

1. Visit this [link](https://www.oracle.com/java/technologies/downloads/#jdk17-windows) and proceed to download the Java 17 x64 installer.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FOc8tadARSfFkaouLcgAP%2F0.png?alt=media)

2. Once downloaded, run the installer with the default settings, Java will be installed.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2Fe6EU0JHkDz72gJEPOT73%2F1.png?alt=media)

## **Setting up Python 3.9.7**

For AGL, we require the 3.9.7 version of Python.

1. Visit this [link](https://www.python.org/downloads/windows/) and proceed to download the 3.9.7 Windows Installer (64-bit).

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2F5woW2g1gvGA9QdINGTrv%2F2.png?alt=media)

2. Run the installer by clicking on it. Proceed by selecting the default settings. Python will be installed on your system.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FOyeOy5B0W21fEQVh6gor%2F3.png?alt=media)

3. Next, launch the client application and go to *Tools* > *Package Install*.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FSMzIQpfxYgbut9Dj2Sm2%2F4.png?alt=media)

4. Provide the path of the Python39 folder in the *File Path* textbox. With the default directory installation, the file path would be *C:\Users{username}\AppData\Local\Programs\Python\Python39*.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FcGYPd9Nisu9bfWJmmCYf%2F5.png?alt=media)

Alternatively, you can also click on the folder icon on the right and select the Python39 folder from the directory.

{% hint style="info" %}
**Note:** The AppData folder is normally hidden in the directory. Go to *View in Explorer* and unselect *Hide Selected Items.*
{% endhint %}

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FyeKmJeQrszPdPog8D4aA%2F6.png?alt=media)

5. Click on the *Run Py Package Installation* option.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2F5nSXy5Un0CJbVJt16CjH%2F7.png?alt=media)

6. A green progress bar will show the installation progress. Wait till it is complete.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FfHdNEkAO7be0N36h698y%2F8.png?alt=media)

7. Once the installation is completed, a dialogue box will pop up, notifying you that the package installation was successful. Click *OK.*

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FbVjK85QLlrExEoVu38wX%2F9.png?alt=media)

8. Right-click on the Package Installation window and select save and close.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FpaRehotUT2kKg6eQndRy%2F10.png?alt=media)

You have successfully set up Java and Python for AGL in the client application. After restarting the client, you can proceed to use the feature.


---

# 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/astera-data-stack-v9/report-model/auto-generate-layout-beta/setting-up-agl-in-astera.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.
