> For the complete documentation index, see [llms.txt](https://docs.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-snowflake-cortex-ai-integration/synchronize-snowflake-cortex-ai.md). Agents can also search and read this documentation through its [MCP server](https://docs.collibra.com/~gitbook/mcp).

# Synchronize Snowflake Cortex AI

Synchronizing Snowflake Cortex AI is the process of integrating metadata from Snowflake Cortex AI and making the data available in Collibra Platform.

You can synchronize manually or automate it by adding a synchronization schedule.

{% hint style="info" %}
The Snowflake Cortex AI integration supports AWS PrivateLink for secure access to Snowflake. For configuration steps, go to this [knowledge article](https://support.collibra.com/hc/en-us/articles/43566778830871-How-to-configure-PrivateLink-for-secure-access-to-Snowflake-Listings-and-Cortex-AI). Azure Private Link connectivity is not supported.
{% endhint %}

## Prerequisites

### In your Collibra environment

* You have [created a Snowflake connection](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-snowflake-cortex-ai-integration/create-a-snowflake-connection-to-an-edge-or-collibra-cloud-site.md).
* You have [added the Snowflake capability](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-snowflake-cortex-ai-integration/add-the-snowflake-capability.md) to the Snowflake connection.
* You created a System asset which presents the Snowflake connection.
* You have a [resource role](https://docs.collibra.com/ai-command-center/terminology.md) with the **Configure external system** [resource permission](https://docs.collibra.com/ai-command-center/terminology.md), for example, **Owner**.
* You have a [global role](https://docs.collibra.com/ai-command-center/terminology.md) with the **Catalog** [global permission](https://docs.collibra.com/ai-command-center/terminology.md), for example, **Catalog Author**.
* You have a [global role](https://docs.collibra.com/ai-command-center/terminology.md) with the **View Edge connections and capabilities** [global permission](https://docs.collibra.com/ai-command-center/terminology.md), for example, **Edge integration engineer**.

### In your Snowflake Cortex AI environment

Your Snowflake Cortex AI integration role must have the following permissions:

{% hint style="info" %}

* Permissions are granted to roles, not individual users.

* Both `USAGE ON DATABASE` and `USAGE ON SCHEMA` permissions on the integration role are required. Only models and agents that the Snowflake Cortex AI integration role has visibility to are ingested. Models and agents that aren't visible to this role, but are included in any path pattern provided below, are skipped. You can check what models and agents the role has visibility to by running `SHOW <MODELS/AGENTS> IN ACCOUNT` in Snowflake. If you have a secondary role, add `USE SECONDARY ROLE NONE` to exclude any models or agents only your secondary role has access to.
  {% endhint %}

* `USAGE` permission on:
  * The database containing the models or agents.
  * The schema containing the models or agents.
  * The models or agents you want to ingest. You can scope this to a specific mode or agent, or to all models or agents in a database.

* If you plan to ingest Snowflake-provided foundational (`CORTEX_BASE`) models, grant the Snowflake-managed application role for the foundational models you want to ingest to your Snowflake Cortex AI integration role. For example:
  * Access to all foundational models: `GRANT APPLICATION ROLE SNOWFLAKE."CORTEX-MODEL-ROLE-ALL" TO ROLE <your_integration_role>;`
  * Access to specific foundation models: `GRANT APPLICATION ROLE SNOWFLAKE."CORTEX-MODEL-ROLE-CLAUDE-HAIKU-4-5" TO ROLE <your_integration_role>;`

For more information on granting permissions to Snowflake roles, go to the [Snowflake Cortex AI documentation](https://docs.snowflake.com/en/sql-reference/sql/grant-privilege).

## Steps

{% tabs %}
{% tab title="Manually synchronize Snowflake Cortex AI" %}
{% stepper %}
{% step %}
Open the **Create integration** step.

* If you just [created the Snowflake connection](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-snowflake-cortex-ai-integration/create-a-snowflake-connection-to-an-edge-or-collibra-cloud-site.md), you are already in this step.
* Otherwise, on the main toolbar, click <i class="fa-grid-round">:grid-round:</i> → **Integrations**, and then click the **More options** icon on the card of your Snowflake connection and select **Add an integration**.
  {% endstep %}

{% step %}
In the **Integration** list, select **Snowflake**, enter a **Name**, and click **Next**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The **Connect to source** step opens.
{% endstep %}

{% step %}
Click **Skip**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The configuration page opens.
{% endstep %}

{% step %}
Complete the fields as needed.

<table><thead><tr><th width="152">Field</th><th>Action</th></tr></thead><tbody><tr><td>System asset</td><td><p>Go to the <strong>General settings</strong> tab and add the System asset that represents your Snowflake connection. This asset is used by the Snowflake Cortex AI workflow for run tracking.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>If this asset doesn't exist yet, you must create it before synchronizing your Snowflake Cortex AI integration.</p></div></td></tr><tr><td>Updated: &#x3C;timestamp> (Optional)</td><td><p>Click <strong>Updated: &#x3C;timestamp></strong> next to <strong>Synchronization Configuration</strong>, where timestamp indicates the last time when the data was loaded from Snowflake Cortex AI.</p><p>If the <strong>Updated: &#x3C;timestamp></strong> is green, you don't need to refresh as the data is up to date. If it is red, refresh the data. If you don't see the option, the metadata hasn't been refreshed yet. As metadata is refreshed daily, try checking again later or tomorrow.</p><p>A scheduled refresh job is also automatically created when you complete the capability configuration. By default, the scheduled refresh job runs daily at 23:00 server time.</p></td></tr><tr><td>Domain mappings</td><td>Go to the <strong>Cortex AI</strong> tab. In <strong>Domain mappings</strong>, map Snowflake models to Collibra domains using path patterns in the following format: <code>DATABASE > SCHEMA > MODEL</code>.</td></tr><tr><td>Exclude patterns</td><td><p>In <strong>Exclude patterns</strong>, add path patterns that contain models you want the synchronization to skip in the following format: <code>DATABASE > SCHEMA > MODEL</code>.</p><p>Excluded patterns are always considered first, regardless of what is added in the <strong>Domain mappings</strong> field.</p></td></tr><tr><td>Fallback domain</td><td><p>In <strong>Fallback domain</strong>, select the default domain for models that don't match any path pattern added in <strong>Domain mappings</strong>. If you don't select a <strong>Fallback domain</strong>, unmatched models are skipped.</p><p><strong>Fallback domain</strong> is required if you haven't added a <strong>Domain mapping</strong>. Both can be used simultaneously to ensure no models are skipped.</p></td></tr><tr><td>Custom AI Metrics Mappings</td><td><p>Optionally, in <strong>Custom AI Metrics Mappings</strong>, define the custom Snowflake Cortex AI model metrics that you want to integrate. You can do this by adding the mapping between the custom metric and Collibra attribute. The attribute list contains all attribute types that are assigned to the Snowflake Cortex AI Model asset type.</p><p>After you synchronize the capability, the specified custom Snowflake Cortex AI Model metrics are mapped to the corresponding attributes.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>If you use this feature, add any custom attributes/characteristics, as needed, to the asset type assignment.</p></div><p>To add a custom AI metric mapping:</p><ol><li>Click <strong>Add Custom AI Metrics Mappings</strong>.</li><li>In <strong>Metric</strong>, select the custom metric from the list of available Snowflake Cortex AI metrics.</li><li>In <strong>Attribute</strong>, select the attribute in which you want to see the value.<br>Make sure to select an attribute that is included in the Snowflake Cortex AI Model asset type assignment.</li></ol></td></tr><tr><td>Asset deletion mode</td><td><p>Optionally, expand <strong>Advanced settings</strong> and set the <strong>Asset deletion mode</strong>. </p><ul><li><strong>Soft</strong>: Assets are archived and can be restored if the model reappears. This is the recommended mode.</li><li><strong>Hard</strong>: Assets are permanently deleted and cannot be recovered.</li></ul></td></tr></tbody></table>
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}

{% step %}
Click the synchronize button in the toolbar.\ <i class="fa-chevrons-right">:chevrons-right:</i> A notification indicates the synchronization has started.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="Add a synchronization schedule" %}
{% stepper %}
{% step %}
Open the **Create integration** step.

* If you just [created the Snowflake connection](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-snowflake-cortex-ai-integration/create-a-snowflake-connection-to-an-edge-or-collibra-cloud-site.md), you are already in this step.
* Otherwise, on the main toolbar, click <i class="fa-grid-round">:grid-round:</i> → **Integrations**, and then click the **More options** icon on the card of your Snowflake connection and select **Add an integration**.
  {% endstep %}

{% step %}
In the **Integration** list, select **Snowflake**, enter a **Name**, and click **Next**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The **Connect to source** step opens.
{% endstep %}

{% step %}
Click **Skip**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The configuration page opens.
{% endstep %}

{% step %}
Complete the fields as needed.

<table><thead><tr><th width="152">Field</th><th>Action</th></tr></thead><tbody><tr><td>System asset</td><td><p>Go to the <strong>General settings</strong> tab and add the System asset that represents your Snowflake connection. This asset is used by the Snowflake Cortex AI workflow for run tracking.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>If this asset doesn't exist yet, you must create it before synchronizing your Snowflake Cortex AI integration.</p></div></td></tr><tr><td>Updated: &#x3C;timestamp> (Optional)</td><td><p>Click <strong>Updated: &#x3C;timestamp></strong> next to <strong>Synchronization Configuration</strong>, where timestamp indicates the last time when the data was loaded from Snowflake Cortex AI.</p><p>If the <strong>Updated: &#x3C;timestamp></strong> is green, you don't need to refresh as the data is up to date. If it is red, refresh the data. If you don't see the option, the metadata hasn't been refreshed yet. As metadata is refreshed daily, try checking again later or tomorrow.</p><p>A scheduled refresh job is also automatically created when you complete the capability configuration. By default, the scheduled refresh job runs daily at 23:00 server time.</p></td></tr><tr><td>Domain mappings</td><td>Go to the <strong>Cortex AI</strong> tab. In <strong>Domain mappings</strong>, map Snowflake models to Collibra domains using path patterns in the following format: <code>DATABASE > SCHEMA > MODEL</code>.</td></tr><tr><td>Exclude patterns</td><td><p>In <strong>Exclude patterns</strong>, add path patterns that contain models you want the synchronization to skip in the following format: <code>DATABASE > SCHEMA > MODEL</code>.</p><p>Excluded patterns are always considered first, regardless of what is added in the <strong>Domain mappings</strong> field.</p></td></tr><tr><td>Fallback domain</td><td><p>In <strong>Fallback domain</strong>, select the default domain for models that don't match any path pattern added in <strong>Domain mappings</strong>. If you don't select a <strong>Fallback domain</strong>, unmatched models are skipped.</p><p><strong>Fallback domain</strong> is required if you haven't added a <strong>Domain mapping</strong>. Both can be used simultaneously to ensure no models are skipped.</p></td></tr><tr><td>Custom AI Metrics Mappings</td><td><p>Optionally, in <strong>Custom AI Metrics Mappings</strong>, define the custom Snowflake Cortex AI model metrics that you want to integrate. You can do this by adding the mapping between the custom metric and Collibra attribute. The attribute list contains all attribute types that are assigned to the Snowflake Cortex AI Model asset type.</p><p>After you synchronize the capability, the specified custom Snowflake Cortex AI Model metrics are mapped to the corresponding attributes.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>If you use this feature, add any custom attributes/characteristics, as needed, to the asset type assignment.</p></div><p>To add a custom AI metric mapping:</p><ol><li>Click <strong>Add Custom AI Metrics Mappings</strong>.</li><li>In <strong>Metric</strong>, select the custom metric from the list of available Snowflake Cortex AI metrics.</li><li>In <strong>Attribute</strong>, select the attribute in which you want to see the value.<br>Make sure to select an attribute that is included in the Snowflake Cortex AI Model asset type assignment.</li></ol></td></tr><tr><td>Asset deletion mode</td><td><p>Optionally, expand <strong>Advanced settings</strong> and set the <strong>Asset deletion mode</strong>. </p><ul><li><strong>Soft</strong>: Assets are archived and can be restored if the model reappears. This is the recommended mode.</li><li><strong>Hard</strong>: Assets are permanently deleted and cannot be recovered.</li></ul></td></tr></tbody></table>
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}

{% step %}
Click **Scheduling** to expand it.
{% endstep %}

{% step %}
Enter the required information and click **Save**:

<table><thead><tr><th width="152">Field</th><th>Description</th></tr></thead><tbody><tr><td>Repeat</td><td>The interval when you want to synchronize automatically. The possible values are: <strong>Daily</strong>, <strong>Weekly</strong>, <strong>Monthly</strong>, and <strong>Cron expression</strong>.</td></tr><tr><td>Cron</td><td><p>The Quartz Cron expression that determines when the synchronization takes place.</p><p>This field is only visible if you select <code>Cron expression</code> in the <strong>Repeat</strong> field.</p></td></tr><tr><td>Every</td><td><p>The day on which you want to synchronize, for example, Sunday.</p><p>This field is only visible if you select <code>Weekly</code> in the <strong>Repeat</strong> field.</p></td></tr><tr><td>Every first</td><td><p>The day of the month on which you want to synchronize, for example, Tuesday.</p><p>This field is only visible if you select <code>Monthly</code> in the <strong>Repeat</strong> field.</p></td></tr><tr><td>At</td><td><p>The time at which you want to synchronize automatically, for example, 14:00.</p><ul><li>You can only schedule on the hour. For example, you can add a synchronization schedule at 8:00, but not at 8:45.</li><li>This field is only visible if you select <code>Daily</code>, <code>Weekly</code>, or <code>Monthly</code> in the <strong>Repeat</strong> field.</li></ul></td></tr><tr><td>Time zone</td><td>The time zone for the schedule.</td></tr></tbody></table>
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}

## What's next

The synchronization job synchronizes the Snowflake Cortex AI data.\
After the synchronization:

* You can [view a summary of the results](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-snowflake-cortex-ai-integration/view-the-summary-of-a-snowflake-cortex-ai-synchronization.md) from the Activities list.
* The resulting assets get a relation to the Domain that you selected.\
  For information on the integrated data, go to [Synchronized Snowflake Cortex AI data](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-snowflake-cortex-ai-integration/integrated-snowflake-cortex-ai-data.md).
