AI assistant settings: models, limits, chats, files and Telegram
Describes AI Agent 0.3.0. On an older release? The version menu above has this guide as it was then.
Settings > AI Agent holds the defaults of the AI assistant for the whole site: which models it uses, the limits a user gets unless they have their own, the prompt every answer starts from, who is told when someone runs out, how long chats are kept, which files it takes and whether it answers in Telegram.
Where to find it
In the admin, open Settings, then AI Agent (/admin/settings/agent). You need the Manage the AI assistant permission (“Edit the module defaults and other users’ assistant settings, and see everyone’s spending”). The Admin role holds it from the start. The AI Agent module must be enabled, and it needs the AI module.
The page is made of separate cards. Each card has its own Save and saves only its own fields.
Models and default limits.
AI Agent settings: models and default limits.
Models
The models come from the endpoints of the AI module.
- Default model: the model a user without a model of their own uses. With None, the assistant does not answer anyone who has no model of their own; they are told No model is chosen for the assistant yet.
- Vision model: describes pictures and scanned PDFs for a model that can’t take pictures itself.
- Speech recognition model: writes down the recordings of the chat panel’s microphone and the voice messages sent to the Telegram bot. Choose a model that takes audio. Without one, voice input is off. If the AI module is too old to write speech down, the field is missing and the card says Voice input needs a newer version of the AI module: it cannot write speech down yet.
While the page checks the models, it shows Checking what the models take…. Then each model in the lists may be marked: no tools or tools unknown in the default list, does not take pictures or pictures unknown in the vision list, does not take audio or audio unknown in the speech list.
The assistant needs a model that takes tools. A model known not to is refused with cannot be used: its model does not take tools, which the assistant needs. One that nobody has marked yet is refused too: cannot be used yet: nobody knows whether its model takes tools. Mark what it can do on its AI endpoint first. The same goes for the vision model and pictures, and for the speech model and audio. You mark what a model can do on its endpoint in the AI module. If the speech model doesn’t report what a call costs, the card warns that voice input is not limited by money.
Default limits per user
These apply to every user without limits of their own (set on AI Agent > Users). Money is counted from the AI request journal, in US dollars, for endpoints that report a cost.
| Field | Default | What it limits |
|---|---|---|
| Spending per day | $1 | Money spent on the assistant per calendar day |
| Spending per month | $10 | Money per calendar month |
| Turns per day | 200 | Messages a user sends per day |
| Largest attachment | 20 MB | Size of one file |
| Attachments per message | 5 | Files sent with one message |
0 is a real limit: nothing is allowed. Days and months follow the site’s time zone.
If the default model doesn’t report what calls cost, the card warns: The default model does not report what a call costs: money is not counted, only the turn limit applies.
One turn
A turn is one message from the user and everything the assistant does to answer it.
| Field | Default | Range |
|---|---|---|
| Tool rounds per turn | 8 | 1 to 50 |
| Turn deadline (seconds) | 300 | 10 to 3,600 |
| History sent to the model, characters | 24,000 | 1,000 to 1,000,000 |
| One tool result, characters | 12,000 | 500 to 1,000,000 |
When the tool rounds are used up, the chat says The assistant used all its tool rounds for this turn. When the deadline passes, the answer is stopped. The history size also caps how long one message can be.
The two limit cards share one Save. Nothing is saved unless every value is valid; a wrong value is highlighted.
The assistant’s prompt
The text goes first into every request of every user, before the site’s own part, the prompt an administrator sets for a user and the user’s own instructions. It can be up to 16,000 characters. Saving it records in the Activity log that the prompt changed, but not its text.
Who is told about limits
The people ticked here get a notification when a user reaches a limit (if that user’s settings say to tell someone) and when the AI budget is used up. The list offers people who hold Manage the AI assistant, the Owners, and those already chosen. With nobody ticked, the card says Nobody is chosen: every Owner is told.
Keeping chats
How many days a chat is kept after its last message. Each night a job deletes, for good, every chat whose last message is older than that, archived chats included, with its messages and attached files. Leave the field empty to keep chats without a time limit: then nothing is deleted. It is empty by default. The AI request journal has its own retention, on the AI module’s pages.
Only an Owner can change it, in Keep chats for, days (a whole number from 1 to 3,650) and Save. While you type a new number, the card says how many chats the next nightly run would delete with it, before anything is saved. Others see Chats are kept for the number of days, or Chats are kept without a time limit., and Only an Owner can change this setting.
A chat in use when the job runs is left for the next night. Each run is written to the Activity log, with counts only.
Types of file in chats
The kinds of file people may attach: PNG, JPG, WebP, HEIC, PDF, XLSX, CSV, TXT and MD. All are ticked to start with. The server refuses any other, whatever the browser’s file picker shows, and it checks the type by the file’s content. A file added before its type was taken off the list is refused when the message is sent.
At least one type must stay ticked. To take no files at all, set Attachments per message to 0.
Request content in the AI journal
When on, the full text of the assistant’s requests and answers, including what its tools returned, is written to the AI request journal. Everyone with the AI permission can read it on the AI usage page (/admin/ai/usage). When off, the journal keeps only the counts and the cost. It is off by default.
Only an Owner can change it, with Write request content to the AI journal and Save. Others see On or Off and Only an Owner can change this setting.
Assistant in Telegram
When Answer in Telegram is on and saved, people can write to the site’s Telegram bot and the assistant answers them there. It is off by default. The Status line under it says what the bot reader is doing, for example Reading the bot’s messages., Off: the assistant does not answer in Telegram., or that no website bot is chosen or the bot has a webhook set. See the guide on the assistant in Telegram.
What the assistant can use now
The last card lists every module’s tools as the assistant finds them for your session’s role. Each module shows Reading: x of y and Writing: x of y. Open a module to see each tool, marked Read only or Writes, Available or Closed, with the permission it needs and why it is closed:
- The module is switched off.
- The module’s API is off in Settings → API.
- The tool is hidden in Settings → API.
- It writes, and “Agent may act” is off for the module in Settings → API.
- Your session’s role does not grant its permission.
The list is read when the page opens. To see it for another user’s roles, use Configure on AI Agent > Users.
What it doesn’t do
- It does not set limits for one person: that is AI Agent > Users.
- It does not show what was spent: that is AI Agent > Spending.
- It does not choose which tools the assistant gets. That follows from Settings > API and each user’s permissions.