# Assistant Setup

DecisionRules AI Assistant supports different AI integration options depending on your deployment type.

## Cloud Version

In the **Cloud version**, AI integration is fully managed by DecisionRules.

* No additional setup is required
* The AI Assistant is available out of the box
* Configuration is maintained by our team for optimal performance and reliability

### About the Model and Limits

The assistant is powered by **Gemini for Business**. We are currently using the model `gemini-3-flash-preview`. The exact versions may change in the future.

{% hint style="success" %}
Your privacy is fully respected. **No user data is used to train any AI model**, and nothing is shared outside Decision Rules application. See more information about data governance [here](https://cloud.google.com/vertex-ai/generative-ai/docs/data-governance) and [here](https://cloud.google.com/gemini/docs/discover/data-governance).
{% endhint %}

Current usage limits for the assistant are defined by your **subscription plan**. If you are on a free trial, paid Lite or higher tier, you will have access to a limited number of AI generations each month.

## Docker (On-Premise) Version

{% hint style="info" %}
Make sure that you have set **`AI_ENGINE_URL`**  environment variable. More details: [Environment Variables](/doc/other-deployment-options/docker-and-on-premise/containers-environmental-variables.md#server-required)
{% endhint %}

In the **Docker version**, you can connect your own AI provider with the required credentials.

Configuration can be defined on the following levels:

* **Organization level**
* **Environment level**
* **AI Engine application level**

### Configuration Resolution

These configuration levels are evaluated in the following order:

1. **Organization level**
2. **Environment level**
3. **AI Engine application level**

This works as a fallback mechanism:

* When an **Organization-level** configuration exists, it is used
* If not, DecisionRules checks the **Environment level**
* If that is also not configured, DecisionRules uses the **AI Engine application level**

### Next Steps

For more details, see the dedicated pages for each configuration level:

* **Organization Level:** [Define AI Provider](/doc/ai-assistant/assistant-setup/define-ai-provider.md)
* **Environment Level:** [AI assistant provider](/doc/environment/ai-assistant-provider.md)
* **AI Engine Application Level:** [DecisionRules AI Engine](/doc/decisionrules-applications/decisionrules-ai-engine.md)


---

# 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.decisionrules.io/doc/ai-assistant/assistant-setup.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.
