Skip to main content
Version: 2.0

AI Assistant

The assistant is a chat panel on every page of the dashboard. It answers questions about the current project and can make changes for you. It uses one of the project's AI connections; Milvaion ships no model.

What It Can Do​

It uses the same tools as the MCP server, run inside the API as the signed-in user, in the current project. It can do nothing you could not do yourself: a tool whose permission you lack answers with an error.

ToolWhat happens
Read-only (list, get, search, summarize)Runs at once.
Everything else (create, update, pause, trigger, cancel, delete, ...)Waits for your confirmation.

Whether a tool is read-only is part of its code. Nothing in a conversation can change it.

Confirming a Call​

A call that changes something is shown with the exact tool and arguments. Run it runs exactly that, once; Refuse drops it for good. Invisible and direction-changing characters in the arguments are shown as escapes.

A confirmation is checked on the server. It works only for the user it was shown to, in that conversation and project, for those arguments, once, and for 15 minutes. Writing "yes" does not confirm anything, and writing a new message drops calls that still wait.

Read the arguments before you confirm. Job data, results and logs are written by programs and other people, and may contain text that tries to make the assistant do something. The assistant is told not to follow such text, but the protection is the confirmation, not the model.

A call whose arguments contain a {{secret:…}} reference is refused without being offered. The reference would be filled in with the secret where the job runs, and the model would have chosen where that is. Write such job data yourself.

Drafting Jobs and Workflows​

Describe what you need ("Create a job that calls this URL every Monday at nine, Istanbul time"). The assistant looks up what exists and drafts the job or workflow. A draft that creates or changes one is shown as a diff against what is stored now, field by field; a step setting the draft leaves out shows as removed. It is saved only by the same confirmation, and by the same validation as in the editors: a draft that does not pass is rejected and nothing is saved.

What Is Sent​

Your messages and the results of the tools it uses go to the AI connection you choose. Known secret values are replaced by their names first, as in failure analysis, and long results are cut. Answers are shown as plain text: they load nothing and run nothing.

Conversations​

Conversations are stored per user and project. Nobody else can read, continue or delete yours. Deleting one removes everything in it; usage records stay. They are deleted with the user account.

Every model call counts as usage and is subject to budgets. Stop ends the current answer; what was written so far stays, and the provider may charge for it. A tool you confirmed that is already running is not interrupted.

Permission and Limits​

The panel appears for users with AiAssistantManagement.Use. API keys cannot use it.

MilvaionConfig:AssistantDefaultMeaning
MaxTurns12Model calls per message
MaxOutputTokens8192Output tokens per model call
MaxConversationTokens400000Tokens a conversation may use
MaxMessageLength8000Characters per message
MaxToolResultLength20000Characters of a tool result given to the model
MaxToolCallsPerTurn10Tool calls per model call
ConfirmationMinutes15How long a confirmation can be given
ModelTimeoutSeconds300Timeout of a model call
ToolTimeoutSeconds60Timeout of a tool call

A reverse proxy in front of the API must not buffer text/event-stream responses.