# Data Collection with X-Ray

## Introduction

Process Intelligence X-Ray tool streamlines data collection from Windows UI elements, allowing users to capture, analyze, and define rules for efficient process automation. The data collection process consists of three main phases:

1. Capturing the UI Blueprint using X-Ray Recorder and uploading it to the Platform
2. Downloading and analyzing UI Blueprints with the X-Ray Viewer
3. Creating and uploading rules

For a deeper understanding of the underlying technology and low-code options, please refer to the Developer Documentation.

## Capture the UI Blueprint with X-Ray Recorder&#x20;

Follow these steps to capture the UI blueprint using the X-Ray Recorder:

1. Download and extract the [Process Intelligence Tooling](https://downloads.workfellow.com/test-tools/workfellow_tools.zip) ZIP folder.
2. Open the extracted `workfellow_tools` folder, then run the `workfellow_x_ray` program.
3. If prompted by Windows Defender, select **More info** and then **Run anyway**.\
   \
   ![](/files/IuqiS3n2KFYwlfkpqozd)![](/files/qHUJtK9yYPxFCBqmtuhP)
4. Once the program starts, position the X-Ray window as needed, for example, to the corner of your screen.

<figure><img src="/files/uMOUixZZl3oSmYoIhtl4" alt=""><figcaption></figcaption></figure>

5. Activate the window you want to capture (ensure you have clicked inside the window to activate it and that it is in the foreground of your monitor).
6. Use the shortcut **Alt + A** to start capturing. The mouse may freeze for 1-15 seconds during capture.
7. Verify that the capture was successful by checking the X-Ray window to see if the number of records has increased by 1.

<figure><img src="/files/oWdAPHgjk3oNRTNkSbZN" alt=""><figcaption></figcaption></figure>

### Upload X-Rays to the Platform <a href="#uploading-x-rays" id="uploading-x-rays"></a>

Follow these steps to uploaded the captures x-rays to the Platform:

1. Navigate to the X-Ray folder on your computer. To do so, you can either click **Open Recording Location** in the X-Ray tool or manually go to `C:\Users\%USERNAME%\Workfellow`. .
2. Right-click on the `x-ray-extracts` folder and select **Compress to ZIP file**.
3. In the Process Intelligence Dashboard, navigate to **Admin Panel -> X-Ray Tools**.
4. Upload the ZIP file in **Step 2 - Upload captured X-Rays**.

## Downloading and Analyzing the UI Blueprints with the X-Ray Viewer

1. In the Process Intelligence Dashboard, navigate to **Admin Panel -> X-Ray Tools**.
2. Download the ZIP file(s) and extract it.
3. Open the `workfellow_tools` folder, then launch the desktop program.
4. Select the unzipped X-Ray folder from your computer to begin analyzing the captured UI Blueprints

{% hint style="info" %}
Please refer to the Developer Documentation to create and upload rules.
{% endhint %}

Click on one of the following links to learn more about using the X-Ray Tool.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td></td><td><strong>Learn how to use the X-Ray Desktop Tool</strong></td><td></td><td><a href="/files/Zld0HZRxalLQOuVQ5nn4">/files/Zld0HZRxalLQOuVQ5nn4</a></td></tr><tr><td></td><td><strong>View an example of the     X-Ray Desktop Tool</strong> </td><td></td><td><a href="/files/44jB6meIcAfEFHNjcySr">/files/44jB6meIcAfEFHNjcySr</a></td></tr></tbody></table>


---

# 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://processmaker.gitbook.io/process-intelligence/data-collection/data-collection-with-x-ray.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.
