> For the complete documentation index, see [llms.txt](https://documentation.ardoq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ardoq.com/integrations/out-of-the-box-integrations/ai-visual-importer.md).

# AI Visual Importer

Bring your diagrams into Ardoq as components and references.

{% hint style="info" %}
This feature requires administrator permissions to use.
{% endhint %}

## Overview <a href="#h_4c6e45fc0b" id="h_4c6e45fc0b"></a>

This integration is intended as a way to bring diagrams you've created in diagramming tools into Ardoq.

Ardoq supports diagrams in image formats like PNG, JPEG, and SVG, as well as importing diagrams directly from Lucidchart.

Objects in a diagram are intended to be imported as Ardoq components and the connecting lines between objects are intended as references. Users can further refine their import using a custom prompt to suggest additional details to consider.

{% embed url="<https://youtu.be/DrdS2SwyBdY>" %}

### Enabling the AI Visual Importer <a href="#h_49ddb86101" id="h_49ddb86101"></a>

As an AI-based feature, you will need to manually enable the feature by clicking your organization name in the top-left corner then going to **Admin** > **Organizational settings** and selecting the **Features** tab, and toggling on the Visual Importer.

<figure><img src="https://2484004798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnlnB7uZ29iLVLzqGbCym%2Fuploads%2FizIwbLHVppssdHbLHF20%2Fimage.png?alt=media&amp;token=4813d321-669c-47ba-b8a3-a5ad993076f0" alt=""><figcaption></figcaption></figure>

Once enabled, the Visual Importer can be found on the Integrations dashboard (main menu > **Imports & Integrations**).

<figure><img src="https://2484004798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnlnB7uZ29iLVLzqGbCym%2Fuploads%2FVQ6ovQFH5PnW0PPJ9F2A%2Fimage.png?alt=media&amp;token=58cab1c4-c39c-43b0-94de-4b9dbe58674d" alt=""><figcaption></figcaption></figure>

## Importing Diagrams <a href="#h_c80d027afd" id="h_c80d027afd"></a>

To start the analysis, you'll need to upload an image or select a Lucidchart diagram with the Upload button.

### Selecting Workspaces <a href="#h_d2c79ac949" id="h_d2c79ac949"></a>

The workspace selector sets the scope for the AI analysis. The component and reference types from the selected workspaces will be used in the diagram processing to automatically determine the types for the references being brought in.

<figure><img src="https://2484004798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnlnB7uZ29iLVLzqGbCym%2Fuploads%2F4rzIV9h7fupNq24wia0a%2Fimage.png?alt=media&amp;token=c0f4a319-c8cb-42fb-9d78-a96eb49507d4" alt=""><figcaption></figcaption></figure>

Once the relevant workspaces have been selected, run the analysis with **Analyze data**.

#### Matching Across Workspaces <a href="#h_6462ec4894" id="h_6462ec4894"></a>

By default, the Visual Importer requires that you specify all workspaces to be used for the import. This means that components will only be automatically identified from the selected workspaces.

On the other hand, if you enable the **Match across workspaces** option, the visual importer will look across all workspaces in your organization to find matching components and it will automatically add workspaces to the scope of the importer.

### Refining the Analysis <a href="#h_f733766d88" id="h_f733766d88"></a>

After the analysis has completed, you'll be presented with the discovered components and references. We recommend verifying that the AI interpretation was correct.

The visual importer has options to create any missed components and references, as well as to delete falsely identified ones.

<figure><img src="https://2484004798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnlnB7uZ29iLVLzqGbCym%2Fuploads%2FNWuA3PFZ0xniyrpdz1EJ%2Fimage.png?alt=media&amp;token=4b4848e7-cc93-4f7b-9a02-648602d4b4b5" alt=""><figcaption></figcaption></figure>

The results are organized as components and their outgoing references. You can expand a component to see its references and add any new ones.

<figure><img src="https://2484004798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnlnB7uZ29iLVLzqGbCym%2Fuploads%2Fo8xPdB0jux2wsvP82x8A%2Fimage.png?alt=media&amp;token=6fa94859-8890-4603-8a63-4d38b9399f96" alt=""><figcaption></figcaption></figure>

#### Existing Components <a href="#h_9161a33bf6" id="h_9161a33bf6"></a>

Components that were originally exported from Ardoq to Lucidchart contain Ardoq IDs and will be identified as already existing in your workspaces.

<figure><img src="https://2484004798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnlnB7uZ29iLVLzqGbCym%2Fuploads%2FclDS6RZwOkn6sWUKTcuS%2Fimage.png?alt=media&amp;token=b7d82301-5644-41a4-a0e8-69dab940b83a" alt=""><figcaption></figcaption></figure>

As these components already have defined types, the importer will pre-populate them and prevent you from making changes to the component type.

#### Diagram Types and Limitations <a href="#h_ef06a4c41f" id="h_ef06a4c41f"></a>

The visual importer is designed around importing diagrams that were originally exported from Ardoq into Lucidcharts. However, the flexibility of the solution allows you to ingest a wide variety of non-Ardoq diagrams into Ardoq as components and references. Keep in mind that extremely large diagrams may fail analysis due to limitations in AI models.

### Previewing the Results <a href="#h_928e9d7555" id="h_928e9d7555"></a>

You can verify the mapping done in the **Review** step with the preview window. It will display the diagram as it will be imported into Ardoq.

<figure><img src="https://2484004798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnlnB7uZ29iLVLzqGbCym%2Fuploads%2FyyincjovHQmmqqbAnSDg%2Fimage.png?alt=media&amp;token=0c06cb4c-ac99-4a2c-8cb9-83c1c8a32e78" alt=""><figcaption></figcaption></figure>

## Importing to Scenarios <a href="#h_ffee76f3dc" id="h_ffee76f3dc"></a>

{% hint style="info" %}
While Ardoq uses Scenarios as a staging ground for your import, this feature does not require the Scenario add-on.
{% endhint %}

Once you've made adjustments to your import, you can bring in any new and existing components into a scenario by clicking the **Import to Scenario** button.

<figure><img src="https://2484004798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnlnB7uZ29iLVLzqGbCym%2Fuploads%2FoAJdm66j6ZxEt16bdWTh%2Fimage.png?alt=media&amp;token=e17fdb33-7d8e-43fd-9d44-b83700355c53" alt=""><figcaption></figcaption></figure>

Scenarios serve as a staging ground before bringing in the data created from the diagram directly into Ardoq.

Once you're confident about the state of the scenario, you can merge it to the mainline data.

## Known Limitations <a href="#h_8d72f7f995" id="h_8d72f7f995"></a>

* You can only import components and references to new scenarios, not existing ones
* Depending on the complexity of your custom prompt, the import may not succeed due to AI limitations
