AI chat
Note: an Agent is a system runtime (orchestrator). An Assistant is a custom
Assistantcard (ai_chat_agents) created by an admin in Settings → AI Router → Assistants and available viashared_user_ids. The catalog is empty after installation (pptx/drawio/bpmn/doc-generator cards are not created by migrations); tools belong to the orchestrator. When an assistant is selected, a turn runs as a sub-agent with the card's prompt/tools/skills/scopes.mode=agent→multi-agent.plan/specignore the assistant;obsdoes not replace it wholesale, it adds to it.
AI chat is a single interface to the AI Router service: an LLM dialog in the corporate context of a space. The answer streams in real time (Centrifugo), the model can call platform tools (tasks, notes, commands, RAG, web) and lean on the workspace knowledge base.
The chat backend is the AI Router service (:8101, DB ai_router_db). Answer modes — AI chat modes.
Where it opens
The same chat component is embedded into different screens. The place of opening is stored in the origin field and filters dialog lists.
| Surface | Route / UI | Origin |
|---|---|---|
| Main AI Router window | /ai-router | general |
| Space chat | /space/:id/chat | space |
| Floating button (FAB) | work screens, hidden on settings / monitoring / automation | origin of the current screen |
| Task card | task editor | task-detail |
| Command editor | Command Manager | command-editor |
| Note editor | Notes | note-editor |
| Flow editor | Flow Manager | flow-editor |
| Skill editor | Settings → Skills | skill-editor / skills |
| Table editor | Data Tables | table-editor |
| Env Manager | space secrets | env-manager |
| Notebook | /ai-router/notebooks/:id | notebook |
In editors the chat works as an origin chat: the entity's context (command draft, notes, flow) is passed to the model, and mutations often go through draft tools (update_*_draft) rather than straight to production.
List and history
In the left column of /ai-router:
- Notebooks — personal notebooks with a dedicated RAG scope
notebook-{uuid}(the Notebooks feature). - Chats — dialogs of the current user. By default the main window shows only
origin=general; origin chats of editors live next to their entity.
Per chat:
- a title (from the first message, otherwise the chat id);
- a branch tree: an answer can be developed into a child dialog (
parent_id,source_message_id); - pin — pinned to the top of the list;
- grouping today / yesterday / earlier;
- deletion (with confirmation; a branch subtree is deleted together with its parent);
- a processing indicator while the stream is running.
The message column width on desktop is switchable: compact / medium / large.
Message and answer
- The user writes a request (or fills a structured form: context / task / goal / result format).
- Optionally attaches text files (
.txt,.md,.json,.csv) — drag-and-drop or paperclip. The content goes to the model as an attachment, not as a separate RAG document. - Before the LLM call, Guard masks PII and secrets; a DLP banner appears in the chat.
- The answer streams in chunks: text, a thinking block, tool calls and their results.
- RAG and web search sources are shown as citations (
Source, URL). - Dangerous tools (command runs, mutations) require confirmation if
confirm_toolsis enabled in user settings.
Chat snapshots (Settings → AI Router → Snapshots) capture the dialog state for debugging and audit. An admin sees chats and token spend in Monitoring.
Turn context
The bottom panel of the composer selects how to answer this turn:
| Element | What it sets |
|---|---|
| Provider / model | OpenAI, Anthropic, Google, Ollama or OpenAI-compatible (Yandex AI Studio) |
| Mode | execution pipeline; details — modes |
| Agent | a ready-made set of tools + skills from the assistant catalog (Settings → AI Router → Assistants) |
| Scopes | RAG bases: the space-{uuid} of the space and shared bases with ACL |
| Tools | a manual set of tools for the turn (unless an assistant pins them) |
The space chat pins the space-{id} scope: search covers notes and tasks of this workspace (auto-sync via NATS). In Notes the same scope is substituted by default.
Observability (mode=obs), on the contrary, works only in the general chat — inside a space the mode is disabled. MCP servers are taken from all servers enabled in MCP Gateway; if there are none, the composer shows a warning.
What the assistant can do
A short product-level set (the full catalog lives in the AI Router service):
- knowledge base search (
search_knowledge_base) with citations; - space tasks and notes: search, read, create, update;
- commands and flows: search, run, job status;
- files and diagrams:
create_file, Draw.io, BPMN, PPTX, DOCX/PDF/XLSX generation; - web:
web_search,fetch_url; - clarifying questions to the user (
ask_user); - skills — instruction packages (
read_skill) mixed into the system prompt of a turn.
Specialized assistants
For complex applied tasks the composer can switch to a profiled assistant:
- Document generator — layout of official reports, memos and tables in Word (
.docx), Adobe PDF (.pdf) and Excel (.xlsx) with corporate styles and formulas. - PPTX presentations — slide decks in PowerPoint with design themes (
corporate,dark,pitch,minimal), cards and KPIs. - Draw.io diagrams — architecture schemes, topologies and DFD data flows without touching raw XML.
- BPMN business processes — modeling of guidelines and processes in BPMN 2.0 (events, tasks, gateways).
An administrator configures providers, scopes, tools, skills, MCP and pipeline graphs in Settings → AI Router.
Related pages
- AI chat modes —
chat/multi-agent/plan/obs/spec - Notebooks — personal sources with their own RAG scope
- MCP integration — connecting external IDE assistants