> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/products/editor-1/facephi-onboarding/web/widgets/documento.md). Agents can also search and read this documentation through its [MCP server](https://docs.facephi.com/~gitbook/mcp).

# Document

**Document Capture Widget v.6.X.X**

### **Introduction** <a href="#introduccion" id="introduccion"></a>

Document onboarding is a remote, online registration process that takes place the first time a user accesses a service or product.

To complete the registration, document information is captured automatically in real time. The result is used to verify the document’s authenticity using security algorithms and protocols.

### **Requirements and installation** <a href="#requisitos-e-instalacion" id="requisitos-e-instalacion"></a>

To use Facephi Onboarding, you need a compatible browser on your device, whether you are using a computer or a mobile device. The compatible operating systems and browsers are:

* Windows, macOS, Android, iOS.
* Mozilla Firefox, Google Chrome, Opera, Safari.

### **Capture a document** <a href="#captura-un-documento" id="captura-un-documento"></a>

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-56127bca6c529b3a2aa90fcc57afe905eb220a7f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
Before you begin, a message appears requesting the permissions needed to complete the process.

To continue, tap button (1). To deny permission and stop, tap button (2).

1. Button to allow access
2. Button to cancel access
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-d00c02f4be1a14633efe2142421c1be526a99817%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
Once you are in the widget, text appears with instructions for the step you need to complete. In this case, your camera has been activated, and you need to point it at the front or back of your document. The document must fit inside the rectangle (3), with none of its edges extending beyond the frame. If the lighting and sharpness are suitable, the photo will be taken automatically.

If you have any questions or difficulty with this step, tap the information button (2) to open a helpful tutorial.

You can switch between your device’s cameras by tapping the icon (4).

To exit the widget without capturing an image, tap the icon (1).

1. Back button
2. Information button
3. Frame for positioning the document
4. Button to switch cameras
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-848942c9721a4f956c8d5f1172e4d99171c0f7f0%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
This is the document capture tutorial. It provides tips on how to position the document and what to keep in mind to ensure a successful capture. There are up to 3 tips.

Tap buttons (3) and (4) to view them. To return to document capture, tap button (2).

1. Button to close the process
2. Back button
3. Next button
4. Previous button
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-7d5ba31b0a1933c87e272d9c9af05733009a444a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
During this process, helpful messages will appear in the status notification (3) to guide you through capturing the document correctly. For example, they may tell you to correct the document’s tilt or let you know if there is glare or if it is too close or too far away.

1. Button to close the process
2. Information button
3. Status notification
4. Frame for positioning the document
5. Button to switch cameras
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-c8423e788165b7ab5bbe5743e637aae01eb1b1a4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
The widget will show you in real time whether the photo was taken successfully or if there was a problem.

The process status is shown in the status notification (3), with a message and color that change according to the status.

If the capture fails, repeat this step until the widget captures the document correctly. The information button (2) may be very helpful during this step.

If the photo is captured successfully, a confirmation message will appear. Repeat the same step, this time with the back of your document.

1. Button to close the process
2. Information button
3. Status notification
4. Frame for positioning the document
5. Button to switch cameras
   {% endcolumn %}
   {% endcolumns %}

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-f003e90babc94b76c634bd6c61ce90ff7ebd1c7d%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
Once the document has been captured, a preview screen appears (if enabled in Settings). Check that the entire document is visible and that the information is legible.

If the photo is blurry or any information is obscured or cut off, we recommend repeating this step (3) to retake the photo and avoid reading errors later. A poor capture may lead to the information being misinterpreted and require you to repeat the process.

If the photo is sharp and the information is legible, tap button (4) to continue to the next step.

1. Button to close the process
2. Information button
3. Button to retry
4. Continue button
   {% endcolumn %}
   {% endcolumns %}

### **Errors** <a href="#errores" id="errores"></a>

#### **Generic**

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-1e2f003c62347ac29b1ecb8c2d1b64631b765538%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
You can try again by tapping button (2).

1. Log out button
2. Button to retry
   {% endcolumn %}
   {% endcolumns %}

#### **Timeout** <a href="#tiempo-superado" id="tiempo-superado"></a>

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-dc4904e892be005a294b2ec0481bd02956504e70%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
The widget will show you in real time whether the photo was taken successfully or if there was a problem.

The process status is shown inside the frame (3), with a message and color that change according to the status.

If the capture fails, repeat this step until the widget captures the document correctly; otherwise, you will not be able to continue. The information button may be very helpful during this step.

If the photo is captured successfully, a confirmation message will appear. Repeat the same step, this time with the back of your document.

1. Back button
2. Information button
3. Frame for positioning the document
   {% endcolumn %}
   {% endcolumns %}

#### **Technical issues** <a href="#problemas-tecnicos" id="problemas-tecnicos"></a>

{% columns %}
{% column width="50%" %}

<figure><img src="https://865101184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUo71Qbj6jZQDavjc0U5X%2Fuploads%2Fgit-blob-a05eb4357b47d8424b47ab6e6ffe917f8c3a9a58%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}
An internal error has occurred in the app, and you need to restart the previous step to complete the registration correctly.

1. Button to close the process
   {% endcolumn %}
   {% endcolumns %}
