Skip to content

AI assistant settings: models, default limits and the site prompt

Describes AI Agent 0.2.0.

Settings > AI Agent holds the defaults of the AI assistant for the whole site: which model it uses, the limits a user gets unless they have their own, the prompt every answer starts from, and who is told when someone runs out.

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.

Settings, AI Agent in PhoenixKit: default and vision model, default limits per user (spending per day and month, turns per day, largest attachment, attachments per message) and tool rounds per turn Settings, AI Agent in PhoenixKit: default and vision model, default limits per user (spending per day and month, turns per day, largest attachment, attachments per message) and tool rounds per turn

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.

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.

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. You mark what a model can do on its endpoint in the AI module.

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.

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.

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.