Skip to content

AI chat ​

Note: an Agent is a system runtime (orchestrator). An Assistant is a custom Assistant card (ai_chat_agents) created by an admin in Settings → AI Router → Assistants and available via shared_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/spec ignore the assistant; obs does 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.

SurfaceRoute / UIOrigin
Main AI Router window/ai-routergeneral
Space chat/space/:id/chatspace
Floating button (FAB)work screens, hidden on settings / monitoring / automationorigin of the current screen
Task cardtask editortask-detail
Command editorCommand Managercommand-editor
Note editorNotesnote-editor
Flow editorFlow Managerflow-editor
Skill editorSettings → Skillsskill-editor / skills
Table editorData Tablestable-editor
Env Managerspace secretsenv-manager
Notebook/ai-router/notebooks/:idnotebook

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 ​

  1. The user writes a request (or fills a structured form: context / task / goal / result format).
  2. 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.
  3. Before the LLM call, Guard masks PII and secrets; a DLP banner appears in the chat.
  4. The answer streams in chunks: text, a thinking block, tool calls and their results.
  5. RAG and web search sources are shown as citations (Source, URL).
  6. Dangerous tools (command runs, mutations) require confirmation if confirm_tools is 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:

ElementWhat it sets
Provider / modelOpenAI, Anthropic, Google, Ollama or OpenAI-compatible (Yandex AI Studio)
Modeexecution pipeline; details — modes
Agenta ready-made set of tools + skills from the assistant catalog (Settings → AI Router → Assistants)
ScopesRAG bases: the space-{uuid} of the space and shared bases with ACL
Toolsa 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.