> For the complete documentation index, see [llms.txt](https://docs.mindee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindee.com/v1/workflows/workflows-ui-tour/review-interface.md).

# Review Interface

## Review Interface

## Overview

The objective of the review interface for our **AI document process automation** Platform is to offer a user-friendly and intuitive, operator-centric interface designed for efficiently managing and reviewing high volumes of documents. This productivity-focused tool aims to significantly reduce the time required for data review and correction, ensuring that users can trust the validated data integrated into their systems.

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

<br>

## Document section

**Document viewer**

This section displays the document you need to review. You can perform the following actions on the document (from left to right):

* *Zoom in & out*: to examine the data you need to extract
* *Comment* (soon): to add document-specific notes
* *Rotate*: to adjust document orientation for better readability
* *Magic Wand*: Use the text on the document to correct or complete your field's data.<br>

**Using the Magic Wand to Copy Data**

The magic wand helps you copy data from a document into a field efficiently. Click on the following icon to activate it.

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

1. Highlighting Words:

* *Text Field*: All words are selectable.
* *Amount Field*: Only numbers are selectable.
* *Date Field*: Only dates are selectable.

2. Copying Words:

* Select the target field.
* Click the desired words to copy them.
* For multiple words (e.g., an address):
  * Hold the Ctrl key, click and drag to create a selection box.

The selected content will be copied into the field automatically.

For products that support bounding boxes, you'll see these boxes displayed on the document.

Clicking a bounding box will highlight its corresponding field in the data validation section of the interface.

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

<br>

For multi-page documents, thumbnails of all pages appear on the right side of the document viewer. You can navigate between pages by clicking these thumbnails.

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

<br>

**Data validation**

The data validation section displays the prediction results for each field you selected during workflow creation (See creation of a new workflow).

At the top of the interface, you'll see the document name and its position in the review queue.

<figure><img src="/files/0RSjrW3MhRPbznQDcgTo" alt=""><figcaption></figcaption></figure>

You can copy the name of the document by clicking on the copy CTA

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

For each of them the corresponding value of the extraction prediction is displayed and can be corrected if needed.

Like the document viewer's ability to highlight fields when clicking on bounding boxes, you can also display a field's corresponding bounding boxes by clicking on that field.

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

When focusing on a specific field, you can also see other fields' bounding boxes highlighted by hovering over them.

#### Main types of field

**List item**

For list items you also have the possibility to:

* add a new item
* switch the visualization from list (vertical layout) to table (horizontal layout) which can improve the ease of reviewing long tables.

from list:

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

to table:

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

**Date field**

Date fields are presented as a text using the format YYYY-MM-DD. A date picker opens when you click on it.

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

**Classification field**

Classification fields are represented as a finite list of available values.

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

The active value is greyed. You can change the class by clicking on another value.

**Other fields**

All other fields are represented as a text field where you can directly input any value using your keyboard.

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

#### Apply a status

At the bottom of the Data validation part, you have a sticky button bar providing the following actions:

* **Quit**: leave the review interface.

{% hint style="warning" %}
If the changes made to the documents were not saved, they will be lost.
{% endhint %}

* **Validate**: Saves the changes made on the prediction data.
* **Reject**: Rejects the document. The reasons can be multiple:
  * You are not sure how to review / correct the document.
  * The document should not be reviewed: wrong type of document
  * …

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

<br>

When you finish reviewing the last document in your selection, the review interface will automatically close and redirect you to the Documents page, where you can create a new selection to continue reviewing.

## Access the review Interface

You can access the Review Interface either on:

* the platform by selecting documents and launching the review see the Documents page, or
* using an iframe in your system

### Display the review interface on your system using an iframe

To load the iFrame, you only have to set the src tag attribute of your iFrame with the `public_url` value.

The `public_url` can be reconstructed with the public\_hash unique to each document entering your workflow, or directly fetched via API. [See the Documents](/v1/workflows/workflows-ui-tour/review-interface.md) section to see how to get the `public_hash`of a document.

```
<https://platform.mindee.com/review-interface/>\<public_hash>
```

Here is an example of an iframe in React.js:

```
<iframe id="review-interface" src={publicURL} width={1200} height={700} />
```

### Customize the iframe

Parameters can be set in the `public_url` as query parameter in order to customize the iframe.

```
https://platform.mindee.com/review-interface/<public_hash>?lang=fr&primary_color=%23FF0000&display_quit=false

```

* `lang` (default `en`): Language of field labels. Possible values are `fr` and `en`
* `primary_color`: Hexadecimal color code of the button (the %23 is the '#' code for URL encoded symbols)
* `display_quit` (default `false`): Whether to display the "quit' buttons or not. Possible values are `true` and `false`

### Fetch the data

When a user hits the **validate** or reject **button**, a callback is triggered on the iframe, allowing you to fetch the data dynamically in your frontend code.

Here is a React.js example using `useEffect` to catch the data validated by the user in the iFrame:

```python
useEffect(() => {
    const handleMessage = (event: MessageEvent) => {
      if (event.origin !== 'https://platform.mindee.com') return
      
      // Do whatever you need with the validated data here
      console.log(event.data)
    }

    window.addEventListener('message', handleMessage)
    return () => window.removeEventListener('message', handleMessage)
  }, [])
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mindee.com/v1/workflows/workflows-ui-tour/review-interface.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
