Skip to main content

AI assistant

Assistant, at the right of the top bar (its icon alone on a narrow screen), opens a drawer on the right of the page where users ask questions about their data in plain language. The assistant answers by running the connectors' queries, with the user's rights.


At a glance​

Orderssales.orders_getORDERCUSTOMERSTATUS00001ACMECLOSED00002Beta SARLOPEN00003Gamma SACLOSED00004ACMEOPEN00005Delta LtdOPEN00006Beta SARLCLOSED00007ACMEOPEN00008Gamma SACLOSED✦Assistant⟲+✕Page:orders · filters: 2 · the clicked row✕Sum the open orders of this customer› 2 tool call(s)ACME has 3 open orders:ORDERAMOUNT0000412,400.00000078,150.00Total: 20,550.00Which of them is the oldest?Compare with last month📎Type a message… (Enter to send, Shift+Enter for newline)➤The clicked rowtravels with the questionAttach a fileimage, PDF, sheet, textConversations and notesthen new conversation, closePage context× stops sending itTool callsfolded into one lineFollow-upsa click sends the question

Using it​

Type a question and press Enter (Shift+Enter for a new line), or click one of the starter questions shown on an empty conversation. The answer arrives as it is written; Stop interrupts it and keeps what was received.

  • Tool calls are folded into one muted line — 3 tool call(s) — that opens to show them; a failed call keeps its message visible.
  • A table in an answer scrolls sideways, each figure on one line.
  • Each answer ends with two or three follow-up questions as chips; a click sends one.
  • The conversation stays when the drawer is closed and after a reload, and it is saved for the user — see Conversations and notes. + (new conversation) starts another one.
  • The paperclip in the message box gives the assistant a file to read — see Attach a file.
  • When several models are allowed, a Model picker in the drawer's header chooses the one that answers. The choice is kept on this device.

The assistant knows today's date: last month or this quarter need no explanation.

Examples: How many open orders per company this month? — Which users have not signed in since June? — Where do I close a period?


Attach a file​

The paperclip (attach a file for the assistant to read) adds a file to the question: a screenshot of an error, a procedure in PDF, a list to compare with what the installation holds, a log.

FileSent to the assistant
Image — .png, .jpg, .jpeg, .gif, .webpAs it is; 5 MB at most.
PDFAs it is.
Spreadsheet — .xlsx, .xlsmAs text: the first sheet.
Delimited file — .csv, .tsvAs text, the delimiter detected.
Text — .txt, .log, .md, .json, .xml, .sql, .toml, .yaml, .ini, .html…As text.

A sheet or a text longer than 60,000 characters is cut: the file's chip then ends with *, and its tooltip says what was attached. The assistant only reads the file: nothing is loaded into a table, nothing is stored on the server. The file stays with the conversation while it is open; a saved conversation keeps its name only, and the assistant is told the file is gone when the conversation is resumed.

The largest file is set by File attached to a question: megabytes at most in Liberty Next → Administer → App → AI Assistant — 10 by default, 0 removes the paperclip. A file counts as input tokens at every question of its conversation.


Conversations and notes​

The history button of the drawer's header (conversations and notes) opens a panel with two lists.

Conversations — each conversation is saved on the server for the user and follows them from one device to another. A click on a row (Resume this conversation) reopens it; the bin deletes it. What is kept is what the user saw — the questions and the answers; a resumed conversation reads its data again. The 30 latest conversations are kept.

Notes — what the assistant remembers for you — ask the assistant to remember something for later conversations: a convention, a preference, how a figure is defined. It proposes the note on a card: Apply saves it, Skip drops it, and nothing is saved without that click. A note is 300 characters at most; it belongs to the application of the page, or to every application, and then travels with the user's questions. Notes are private to the user; the bin deletes one.


What the page tells it​

While a data screen is the active tab, every message carries what the user is looking at: the application, the screen and its read query, the active filters, the number of rows loaded and their columns, and the row last clicked (or whose row menu was opened). This screen, these rows or the selected row need no further explanation, and the assistant runs the screen's own query when it needs more data.

On the Data Explorer page, the context is the model and the analysis on the canvas (entity, rows, measures, period) or the saved analysis open: Save this as an analysis or Make a dashboard of these need no further explanation.

On a page an application ships (see Pages an application ships), the page itself says what the user is looking at: a title and a few facts — the object open, the tab, a filter, never rows. A question about this then needs no name there either.

A line under the drawer's header shows what is sent — Page: orders · filters: 2 · the clicked row, with the screen's identifier. Its × stops sending the page for as long as the user stays on it. The context is limited to 4,000 characters.


Starter questions​

On an empty conversation, the drawer offers questions suited to where the user is: those of the current screen (or of the Data Explorer page, or of the page an application ships), else those of the application, else those set for everywhere — the most specific place that has questions wins. An application can group them under headings, shown as pills above the questions; after an answer, the follow-ups take their place. When an application ships its questions in several languages, the drawer shows them in the user's language.

Questions come from two sources:

  • Liberty Next → Logic → AI: the questions an application ships, per application, by heading and per screen, in each language — see below;
  • Liberty Next → Administer → App → AI Assistant → Starter questions: the operator's own, for everywhere, an application or an application/screen. They win over the application's questions for the same place.

What it can do​

ToolDoesSetting
list_connectorsLists the connectors with the read queries and the endpoints the user may run (descriptions, no SQL, no credentials). On a large installation it answers with an overview, then narrows to one connector or to keywords.Connector tools (on by default).
sql_queryRuns a read query of a SQL connector the way its screen does: column labels and formats, the screen's filters, the environment of the page. It filters by column — a value or a range — and a filter that matches no column is refused. Write queries are always refused.Connector tools; Rows per query, at most (200).
explorer_models, explorer_fields, explorer_queryList the Data Explorer models and their fields, then compute a total, a ranking, a trend or a comparison on a model — rows, measures, filters, period, sort, Top N (100 rows by default, 10,000 at most) — under the user's data scope.On by default.
explorer_saved, explorer_save_analysis, explorer_save_dashboardList the user's saved analyses and dashboards, and save what the user asks for: an analysis is run once before it is stored, so a wrong field is refused; a dashboard gathers saved analyses as tiles. Both are private unless the user asks to share them.On by default.
describe_instanceSummarises what the installation holds, or one application: menus, screens with their read query, dashboards, Data Explorer models, jobs, playbooks. Where do I find… is answered from the real configuration.Always.
search_catalogFinds a screen, a menu entry, a dashboard, a Data Explorer model, a job or a playbook by keyword, without reading the whole configuration.Always.
Application toolsFunctions an application ships for its own subject, named <app>_<id>. Read-only. See Liberty Next → Logic → AI.The applications' tools (on by default).
remember_noteProposes a note for later conversations — see Conversations and notes.Always.
screen_form, screen_write, screen_write_many, screen_action, job_form, job_runRead what a screen lets its user do, then add, change or delete a record — or up to 50 records on one card —, or run an action of the screen, through the screen's own queries and rules; read a job as its page shows it, then run it — see Write through a screen.Write tools (off by default), with the ai:write permission.
PlaybooksLists the applications' procedures and loads the one that fits — see Playbooks.Always.
jobs_status, server_log, integrity_checksThe Nomaflow jobs with their schedule, last run and next start, and one job's recent runs with the failing step; the recent server log lines, by level and text; the configuration cross-checks.Operations tools (off by default); superusers only.
api_callCalls an endpoint of an API connector.API tool (off by default — an endpoint may change data).
api_runCalls an endpoint marked Changes data — a report submitted, an orchestration run. api_call refuses such an endpoint. In the chat it proposes a card; nothing is sent until the user applies it. See API endpoints.API tool and Write tools, for a user holding ai:write and the endpoint's permission; over MCP, Allow changes over MCP as well.
Scaffold toolsPropose a query, a dictionary entry, a screen or a menu item; the user reviews the proposal and applies it.Scaffold tools (off by default); superusers only.
Web fetchReads pages of the allowed domains.Allowed domains (none by default).

The assistant only uses existing named queries: it does not write SQL against the database. Beyond Rows per query, at most, a result is marked as truncated and the assistant is told not to count or add up the rows it received: it narrows its filters, or computes the figure with the Data Explorer tools. A tool result above 60,000 characters is cut, and the assistant is asked to narrow its call. A question that uses all its tool rounds (Max tool iterations, 15 by default) ends on a closing answer: what was done, what was found, what is left — and the user can ask to continue.

The Operations tools let the assistant read the running server rather than guess when a job failed, is late or is missing. They are meant for installations whose chat users are administrators: the server log can hold anything the server wrote.


Write through a screen​

With the Write tools on, the assistant can do what a user does in a screen or on a job's page — nothing by another path:

ToolDoes
screen_formReads what the screen lets this user add, change, delete and run: the key, each column with its label, whether it is required or locked, its default and the values it accepts, the columns a picked value fills, and the screen's actions.
screen_writeAdds, changes or deletes one record.
screen_write_manyAdds, changes or deletes several records of one screen — the same operation for all, 50 at most — on one card.
screen_actionRuns one action of the screen — a row menu's Validate or Close, a button of the toolbar or of a form tab.
job_formReads a job as its page shows it: what it does, the parameters a user may set with their choices, its presets, whether it is running, its last runs with their state and error.
job_runRuns the job — the page's Run now — with its declared parameters and presets only.

The record is read through the screen's read query, and the form's rules apply: a missing required column, a value outside its list, a column or a record the screen holds read-only are refused with the reason. The save then runs as from the form — dictionary rules, sequences, related tables, audit, data scope, change package, notification rules — and so do the screen's save hooks and the steps of its actions, each under its own permission. A value picked in a list fills its sibling columns, as in the form; a sibling the request gives is kept.

Three locks, all needed: the Write tools setting, the ai:write permission of the role, and the permission of each query, endpoint or plugin that runs, as in the screen — job:<id> for a job.

Who confirms. In the drawer the tools only propose: the user gets a card — Change sales/orders — … — STATUS: 'OPEN' → 'CLOSED', or the action with the screen's confirmation and what it runs — and nothing happens until Apply; Skip drops the step. Over MCP, these tools exist only where Allow changes over MCP is on, and the client asks its user before calling one.

Several records. Every record of the list is checked before the first is written: if the screen refuses one, nothing is written and the answer names each refused record with its reason. One Apply then writes them in order, each as screen_write writes one. Should a save still fail midway, it stops there: the records before it stay written, and the answer says how many. Beyond 50 records, the grid's Excel import is the way.

Jobs. A run is queued and goes on in the background; the assistant follows it with job_form, and the user sees it in the Nomaflow run history. A job that is already running is refused. A job that loads a file the user brings asks for it on the card — one picker per file step, with the kinds of file the job's upload takes: Apply sends the file through the job's own upload and runs the job with it. The file never goes through the model. From Claude Desktop, the file comes from the extension's folder.

RefusedReason given
A record open in its formThe form holds the record: it cannot be changed or deleted until the form is closed — by another user, or by the user's own open form.
A screen that cannot be writtenThe screen is read-only, has no query for the operation, runs actions when its form opens, or reads its data from a connector left out of Allowed connectors.
An action made only of what a browser doesOpening a page or an address is noted, not run.

As in the screen, a save, its related tables and its hooks are separate statements: when a hook or a step fails, what ran before stays, and the answer says so.

What is kept. Each applied card and each saving tool called over MCP is in the usage record — who, the screen, the operation or the action, the key of the record, the job, and the reason of a refusal; never the values. Monitoring → AI usage lists them, and on a change-tracked screen the change package names these entries AI assistant.


Playbooks​

A playbook is a step-by-step procedure an application ships for the assistant: Close a period, Add a user to a role. When a user asks how to do something in an application, the assistant looks for a playbook that fits, loads it and follows its steps in order, saying which one it follows. Without a suitable playbook, it says so and answers from what it can read.


Liberty Next → Logic → AI​

✦AI↻ Reload configSave↺ DiscardApp:∗crmsales+ Add scopeWhat the application ships for the assistant — starter questions for the app and for its screens.文A LanguagefrFrench▾The questions shown to the users whose language is French. A list left empty here shows the one as written.✦ Starter questions anywhere in salesQuelles commandes sont en retard ?✕A question the user can click…+☰ Starter questions by heading+ Add a headingThe chat shows the headings, then the picked heading's questions. When headings are set, they are shown instead of the list above.Commandes🗑Quelles commandes sont en retard ?Quel client a le plus commandé ce mois-ci ?▤ Starter questions per screen+ a screen…▾orders— OrdersPourquoi cette commande est-elle bloquée ?📖 Playbooks🔧 ToolsAdd scopeanother applicationLanguageas written, or another languageEmpty list in a language= the one as writtenEverywhere in the appthe default questionsHeadingsgrouped questions, shown first+ Add a headinga label and its questionsPer screenthe most specific place winsPlaybooks, toolsthe same for every language

Liberty Next → Logic → AI edits what each application ships for the assistant; Discard and Save are in the page header. The App row lists the applications that already have some, plus * for everywhere; Add scope picks another one. For each:

PartContent
LanguageThe language whose questions are shown and edited: As written (the questions as the application ships them), or another language — then the lists below are the questions shown to the users of that language. A list left empty in a language shows the one as written. Shown when the interface has another language than the one the configuration is written in.
Starter questions anywhere in appThe questions offered everywhere in the application.
Starter questions by headingAdd a heading: a Heading and its questions. The chat shows the headings first, then the questions of the heading picked; when headings are set, they are shown instead of the list above. No heading: the chat shows the list above.
Starter questions per screen+ a screen… adds a screen — or a page the application ships, by its name — and its own questions. Add a heading for this screen groups them under headings, as for the application: a Heading and its questions; when a screen has headings, they are shown instead of its plain questions. A screen taken out leaves every language with it.
PlaybooksAdd playbook: an Id (letters, digits, _ and -, unique in the application), a Title — what the procedure achieves, the assistant picks a playbook by it —, When it applies (one line, optional) and The procedure in Markdown.
ToolsAdd tool: an Id (lowercase letters, digits and _, unique in the application — the assistant sees the tool as <app>_<id>), the Function (module:function) — one of the entry points of the application's plugins, whose parameters become the tool's arguments —, the Description (what it answers and when to use it: the assistant picks a tool by it) and the Permission the user needs (blank: the function's own). A tool must not change anything. Tools belong to an application: none on the * scope.

Save writes and reloads at once. This material travels with the application: it is installed and upgraded with it, versioned like the rest of the configuration. The questions set under Liberty Next → Administer → App → AI Assistant win over the application's, place by place.


Who can use it, and on what​

  • The user needs the ai:chat permission (a role's AI assistant rule, in Beyond the menus).

  • ai:chat opens the drawer; each tool then checks what the screens check, for the signed-in user:

    ToolThe user needs
    sql_querysql:<connector>:<query>.
    api_callapi:<connector>:<endpoint>.
    Data Explorer toolsexplorer:<app>:<model>.
    list_connectors, describe_instance, search_catalog, playbooksNothing more, and they show only what the user can open: a screen by its read query, a menu entry by the menu's rule, a job by job:<id>. An application with nothing for the user is not named.
    Application toolsThe tool's permission.
    screen_form, screen_write, screen_write_many, screen_actionai:write, and the permission of each query, endpoint or plugin the screen runs.
    job_form, job_runai:write and job:<id>.
    Operations and scaffold toolsSuperuser.

    A user holding ai:chat without the sql: or explorer: permissions of an application gets no figure from it: grant them, as for the screens. A refusal reads the same for a query that exists and for one that does not.

  • Allowed connectors in Liberty Next → Administer → App limits the connectors the assistant may reach, and the applications describe_instance and the playbooks cover; empty means all. The write tools follow it too: a screen whose data is on another connector does not exist for them.

  • Every query it runs goes through the same server checks as a screen: the user's data scope filters the rows.

  • Model in the drawer only offers the models allowed in the settings; the server refuses any other.


From Claude, and what is recorded​

  • The same tools answer an external client — Claude Desktop, claude.ai, Claude Code — through the server's MCP endpoint, each user with a personal access token and their own rights. See Connect Claude (MCP).
  • An installation can flag its sensitive columns and keep them from the assistant, and Data sent to Anthropic lists what a question sends and what it never does.
  • Every question is recorded: who asked, the model, the tokens, the tools called — never the question, the answer or a row. Superusers read it in Monitoring → AI usage.

Settings​

In Liberty Next → Administer → App → AI Assistant: Enabled, Anthropic API key (encrypted), Model, Effort, Max tokens, Max tool iterations (15), Request timeout (s), Adaptive thinking, System prompt, the tools above, Allowed connectors, Rows per query, at most, File attached to a question, Usage record kept, Write tools, Hide sensitive data from the assistant, the MCP endpoint, and for the chat drawer the Models users may pick and the Starter questions. See App settings. Without a key, the drawer says the assistant is not configured.


Tips​

  • Give queries a clear label and description (Liberty Next → Data → Connectors): the assistant chooses its queries from them.
  • Write dedicated read queries for the questions users ask often (totals per company, per month), rather than expecting the assistant to aggregate thousands of rows.
  • Write a playbook for each procedure users ask about more than once: the answer is then the application's procedure, not a guess.
  • Keep API tool and Operations tools off unless the endpoints are read-only and the chat users are administrators.