# Structural AI features

{% hint style="info" %}
AI features are currently only available on:

* The United States deployment of Structural Cloud.
* On self-hosted instances that [connect to a Structural-supported LLM](https://docs.tonic.ai/app/admin/structural-ai-use/connecting-a-self-hosted-instance-to-an-llm).

They are not yet available on the European deployment of Structural Cloud.
{% endhint %}

Tonic Structural currently offers the following AI features.

## Structural Agent

The [Structural Agent](https://docs.tonic.ai/app/structural-agent/agent-about) is a chat-based AI assistant that helps you to configure your workspace for data generation.

## LLM-based sensitivity detection

During sensitivity detection, the [LLM-based detection process](https://docs.tonic.ai/app/generation/identify-sensitive-data/running-the-structural-sensitivity-scan#llm-based-sensitivity-detection-medium-confidence) sends the following information to an LLM:

* Database schema
* Sample source data values. You can [opt to exclude the source data values](#llm-detection-exclude-sample-data).

On a self-hosted instance, the process first retrieves the provider configuration.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FDBTI0IqCVtIfz4IgGSni%2FSensitivityDetectionWithAI.png?alt=media&#x26;token=d8cd1673-8ca0-43f0-910d-8bf1788ef638" alt=""><figcaption><p>LLM-based sensitivity detection</p></figcaption></figure>

## Custom Categorical value creation

For the [Custom Categorical](https://docs.tonic.ai/app/generation/generators/generator-reference/custom-categorical) generator, you can provide a prompt for the LLM to use to create the available values.

For example, `1,000 common pharmaceuticals`.


---

# 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://docs.tonic.ai/app/admin/structural-ai-use/structural-ai-features.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.
