On this page
AI settings
Menu: Financial reports → AI settings.
What it's for
On this screen the tenant administrator chooses the AI provider used by Ask your data: a paid provider with a key, OpenRouter in one click, a free tier with a key, or a local server the company owns (AI1).
- Only the structure of the datasets the user is allowed to read and the question itself are sent to the provider. Business data is never sent (RP18).
- AI stays off in every tenant until a provider is saved, the connection test passes, and AI is turned on (AI4).
- Every request to the provider is recorded in the audit trail (user, provider, model, token count and outcome), without the question text or the key.
Access and permissions
You need the optional Analytics module in the tenant's subscription.
| Permission | Lets you |
|---|---|
analytics.ai_settings.view | View the screen, the current provider and model, and the monthly limit |
analytics.ai_settings.update | Save, test the connection, load the model list, connect OpenRouter, and turn AI on and off (AI8) |
Status
The Status panel at the top of the screen shows:
- The current provider and model. If the tenant hasn't saved its own settings yet, the platform's default provider is used (the Ollama or vLLM server set up by the system operator), as before (AI6).
- How many questions have been used this month out of the monthly limit.
- The AI for your company switch. You can turn it on only after the connection test has passed for the saved settings.
- The result and time of the last connection test.
Provider cards
| Card | Type | What you need |
|---|---|---|
| Claude | Paid, API key | A key from the Anthropic Console |
| OpenAI | Paid, API key | A key from the OpenAI platform |
| Gemini | Free tier, API key (or paid) | A key from Google AI Studio |
| Mistral | Paid, API key | A key from the Mistral console |
| Groq | Free tier, API key | A key from the Groq console |
| OpenRouter | Free and paid models, one-click connection | An OpenRouter account (you can create one while connecting) |
| Local / self-hosted | Your own server | The address of an Ollama, vLLM or other OpenAI-compatible server |
If a card is disabled with the words Not allowed in this installation, the system operator has blocked that type (for example, a local installation that doesn't allow cloud providers) (AI7).
How to
A paid provider with a key (Claude, OpenAI, Mistral)
- Select the card (for example, Claude). A short explanation appears with a Get a key link.
- Open the link, sign in with the provider, then create a new API key and copy it.
- Paste the key into API key.
- Keep the suggested Model or choose another from the list. After saving, you can select Load the provider's models to list every model your key can use, or type any model ID.
- Select Save. The key is stored encrypted, and from then on only its last four characters are shown (AI3).
- Select Test connection. If it succeeds, a message shows the model and the response time.
- Turn on AI for your company.
A free tier with a key (Gemini, Groq)
- Select Gemini or Groq.
- Select Get a key. In Google AI Studio choose "Get API key"; in the Groq console open API keys. Then create a key. The free tier doesn't need a payment card.
- Paste the key, then carry on as above: Save → Test connection → turn it on.
Free tiers have daily request limits. If you go over, you see a rate-limit message, and the service comes back later.
OpenRouter in one click
- Select the OpenRouter card, then Connect OpenRouter.
- You go to the OpenRouter site. Sign in or create an account, then approve the connection.
- OpenRouter sends you back to the Connect OpenRouter page in the system, which completes the connection automatically, stores the key encrypted and picks a free model (AI5). Select Back to AI settings.
- To choose another model, select or clear Free models only, select Load the provider's models, choose the model, then select Save.
- Select Test connection, then turn on AI for your company.
The connection link is valid for ten minutes, can be used once, and works only for the user who started it. If it expires, start the connection again. Instead of connecting, you can also paste an OpenRouter key you created yourself into API key.
A local or self-hosted server (Ollama, vLLM)
- Select Local / self-hosted.
- Choose the Server type: Ollama, vLLM or an OpenAI-compatible server.
- Enter the Base URL as the system's server reaches it, including the version path, such as
http://ollama:11434/v1orhttp://vllm:8000/v1. - Enter an API key (optional) if your server requires one, and the Model (such as the tag of a Qwen coding model).
- Select Save → Test connection → turn it on.
Replace or remove the key
- Replace: the key field appears. Paste the new key, then select Save.
- Remove: the key is deleted when you select Save.
- If you change the provider, the previous provider's key is deleted.
Any change to the provider, model, address or key turns AI off until a new connection test passes (AI4).
Monthly limit
Questions per month is the limit for the whole tenant (from 1 to 100,000; the default is 500). Once the tenant reaches it, Ask your data rejects questions until the start of the next month.
Free-tier notice
When you choose Gemini, Groq or a free OpenRouter model, this notice appears:
Free tiers may use the prompts they receive to improve the provider's models. The prompt holds the structure of your datasets and the question - no business data - but choose a paid plan if that is not acceptable.
Users see the same notice in the Ask your data panel.
Error messages
| Message | What it means and what to do |
|---|---|
| The provider refused the API key. Check or replace the key. | The key is wrong or was revoked at the provider |
| The provider's rate limit or free quota was reached. Try again later. | You've reached the plan's limits. Wait, or move to a paid plan |
| The provider does not know this model, or the key may not use it. Load the provider's models again and choose one from the list (free models change often). | Correct the model ID, or load the model list |
| The AI provider could not be reached or did not answer in time. | The provider is down, the address is wrong, or the server can't reach the internet |
| The provider account has no credit or billing is not set up. | Add credit or a payment method at the provider |
| Run a successful connection test of the saved settings first. | Save, then test, before turning AI on |
| The connection expired or was already used. Start it again. | Select Connect OpenRouter again |
| Hosted AI providers are not allowed in this installation. | Use a local server, or ask the system operator |
| This server address is not allowed. | The address is in a blocked range, or custom addresses aren't allowed in this installation |
| Keys cannot be stored: the key encryption key of this installation is not configured. | The system operator needs to set the master encryption key |