AI Copilot

The artificial intelligence assistant built into Ravicor 7.2: a chat panel that queries data, creates and edits records, guides you through the interface and, for the Master, accesses devices over SSH with a live terminal.

What the Copilot is New in 7.2

The AI Copilot is an assistant that opens in a side panel on the right of the screen and works like an expert on the system itself. It knows every area of Ravicor (devices, OLTs, concentrators, Flow, DNS, IPDOCS, backups, VPN, users) and handles requests in natural language: it answers questions with real data, runs actual record operations and shows you on screen where things are.

The key usability trait is that the panel survives navigation. You keep operating the system normally on the left while chatting on the right: switching screens, opening modals or reloading the page (F5) does not lose the conversation, the history comes back on its own.

In 7.2 the Copilot replaces the old AI chat from the previous version. There is no API key to configure: inference is a built-in service of the product, and the call goes out from the Ravi server itself (nothing goes from your browser to the AI directly).

Concepts worth knowing

ConceptWhat it means
Side panelThe chat lives "outside" the pages, which is why it does not reload as you navigate. When closed, the system looks 100% identical to normal.
Chat sessionEach conversation has its own history. It persists across navigation and F5. It ends when you click New conversation, on logout, or on its own after 20 minutes of inactivity.
Action catalogThe set of about 70 operations the AI can run in the system (list, create, edit and delete in each module). It is filtered by the logged-in user's permissions: the AI does not even see what the user cannot do.
Screen toolsSee the current screen, navigate, highlight elements, click and fill forms. Used to guide you visually.
Device toolsSSH with a live terminal, SNMP test, configuration backup and saving credentials to the vault. Master only
Safety floor (hard-deny)A fixed list of catastrophic commands the server never runs on a device, even if the AI issues them and even for the Master.
ApprovalFor non-Master users, every destructive action shows the Confirm and Cancel buttons in the chat before running. The Master runs directly, with auditing.

Prerequisites

  • Version: Ravicor 7.2. The feature does not exist in earlier versions.
  • Access: any logged-in user can open the Copilot and chat. The AI button appears in the menu for everyone.
  • Permissions: what the AI can do depends on the user's profile. The action catalog uses the same permission mechanism as the screens, per module and per group. A user restricted to certain groups, OLTs or concentrators only sees and operates those items through the AI as well.
  • Master: runs actions without confirmation and is the only one with access to the device tools (SSH, SNMP, backup, credentials).
  • Server: the AI engine is installed by the system's normal install and update process, and the server needs internet access to reach the product's AI gateway.

If the chat shows the message AI engine unavailable on this server., the AI environment is not installed or healthy. Run the system update (the updater checks and reinstalls the engine) or contact support.


How to use

The Copilot is one click away on any screen of the system.

Opening the panel

  1. Click the AI button in the main menu (robot icon). It is present on every screen.
  2. The system slides smoothly to the left and the Ravi Copilot panel opens on the right, with a greeting and the message field ready to use.
  3. Alternative: in the home panel (dashboard) search, natural-language questions offer a shortcut that opens the Copilot with the question already sent.

Panel elements

ElementWhat it is for
Ravi CopilotPanel title.
New conversationEnds the current session (including the AI process on the server) and starts fresh.
ExpandTakes the chat to full screen; clicking again restores the side panel.
CloseHides the panel and pauses refreshing. The conversation stays alive and reappears when you reopen it.
Chat with the copilot…Message field. Enter sends, Shift+Enter adds a line break.
SendSend button (paper plane).
Attach text fileClip button to attach logs, configurations and other text files.

Panel behavior

  • Draggable divider between the system and the chat: minimum width of 360 px, maximum of 72% of the screen, default of 440 px. It works by mouse, touch and keyboard, and the chosen width is saved.
  • The panel state (open or closed, expanded, width) persists across pages and after F5.
  • On narrow screens (up to 480 px, phone), the open panel takes the whole screen and the divider disappears.
  • A "thinking" indicator (three dots) appears while the AI works and disappears when it replies or when it is waiting for you (a pending question or approval).
  • While the panel is open, the chat refreshes every 1.5 seconds; closing the panel pauses refreshing (zero load) and reopening resumes it.
  • With no messages for 20 minutes, the session ends on its own. Sending a message after that automatically starts a new conversation.

What to ask

Some examples of requests the Copilot actually handles:

  • Queries: "How many devices do we have?", "List the OLTs", "How many ONTs are offline on the Central OLT?", "What is the Flow status right now?".
  • Records: "Add the device Router-POP2 with IP 10.0.0.2 in the Backbone group", "Delete sensor X from device Y", "Create the domain example.com in DNS", "Pause the sensors of device Z".
  • Visual guide: "Show me where I configure Flow alerts". The AI navigates to the screen and highlights the item with a green outline for a few seconds.
  • Operate the screen: "Fill in this form for me with...". The AI clicks and fills; destructive controls on the screen still show the system's normal confirmation.
  • Devices (Master): "Connect over SSH to 192.168.1.1 and show the version and uptime", "Take a config backup of this Mikrotik", "Test SNMP on 10.0.0.5 with the community public".

Attachments

Use the clip to send text files for analysis: logs, configuration exports, CSV and the like.

  • Accepted extensions: .txt .log .csv .conf .cfg .cnf .ini .json .xml .yaml .yml .md .rsc .sh .env .list .out .text.
  • Limit of 2 MB per file; binaries are rejected.
  • The content read by the AI is truncated at around 8,000 characters. When that happens, the attachment chip shows "truncated".
  • Images are not supported. If you need to show a system screen, ask the AI to "see the screen" or describe what appears.

Attachment content is treated by the AI as data, never as a command: instructions written inside an attached file are ignored. This protects against manipulation attempts via file.

Request best practices

  • Be specific with identifiers: use the exact name or the IP of the device or OLT. Ambiguous names lead to extra questions.
  • One goal at a time works best: "add exporter X" and then "configure mitigation on it".
  • To create something, provide the required fields right in the request (name, IP, group); otherwise the AI will ask before running.
  • Correct the AI when it gets a fact wrong ("that IP is the tunnel's, not the public one"): it is instructed to accept the operator's correction immediately.
  • If an SSH flow stalls (repeated command, syntax error), ask it to stop and describe the device (brand and version); the AI adapts the syntax.
  • Prefer asking for data ("what is the IP of device X?") over asking the AI to "look on the screen": the catalog answers straight from the database, faster and more reliable.
  • Responses are deliberately short and direct. Explicitly ask for "step by step detail" when you want more.

Example of a complete request, with the required fields already provided:

chat
Add the device Router-POP2 with IP 10.0.0.2 in the Backbone group
and create a ping sensor on it.

What it can do

The Copilot operates on four fronts: query, record, guide through the screen and access devices. Everything goes through the system's action catalog, filtered by the logged-in user's permissions.

Query and record

The AI queries any data in the system and creates, edits and deletes real entities: devices, sensors, groups, OLTs, concentrators, DNS domains and records, Flow prefixes, users and other records. Each action runs with the identity and permissions of whoever is logged in, exactly as if the person had done it through the interface.

Navigate and guide through the screen

Ask "show me where X is" and the AI opens the right page and highlights the button or field with a green outline. It can also click and fill forms for you. Useful for training new staff and for finding rarely used settings.

Device access over SSH Master only

For the Master user, the Copilot connects to network devices over SSH and shows a live terminal inside the chat, with full transparency:

  • header with the device IP;
  • the command that ran (a $ command line in green);
  • the full output in a monospaced font.

Besides the normal state, the terminal panel may show BLOCKED (the command hit the safety floor and was not run) or error (connection or execution failure). Execution is always one command at a time, with the output visible.

Credentials: the AI fetches the access from the system's credential vault. If there is no credential for that IP, it asks for the user, port and authentication method (password or the system SSH key) and saves it to the vault before connecting. For key access, the Ravi public key must be installed on the device (System access (SSH key) card in General Settings); if key authentication fails, the AI offers the public key for you to install.

Typical device use cases:

  • Diagnostics: version, uptime, interfaces, device logs.
  • SNMP test of an IP with a given community.
  • Configuration backup before any change.
  • Complete guided flows: add a Flow exporter, configure the iBGP mitigation session (FlowSpec/RTBH) and configure the WireGuard VPN on the remote end. The AI follows per-brand recipes (Mikrotik, Huawei, Cisco, Juniper, Nokia, Datacom, Ubiquiti, ZTE), always backing up before touching anything.

Best practice: treat the AI as a junior operator under supervision. It backs up before configuring and shows everything in the terminal, but review what appears on screen for sensitive changes (BGP, VPN, firewall). For BGP changes the AI itself asks before applying, even for the Master.

Confirmations for non-Master users

When a user without the Master profile requests a destructive action (delete, for example), the chat shows the action description and the Confirm and Cancel buttons. With no answer within 120 seconds, the action is canceled. Negative text replies ("no", "cancel") also cancel it, and in case of ambiguity the system does not run it.

Quick reference

ItemValue
OpeningAI button in the menu (all screens) or the home panel search
Panel widthDefault 440 px; adjustable from 360 px to 72% of the screen; full screen via Expand
PhoneUp to 480 px wide: panel full screen
Chat refreshEvery 1.5 s with the panel open; pauses on close
Session idlenessEnds after 20 minutes with no messages
Destructive action confirmation (non-Master)Confirm / Cancel buttons, expire in 120 s
AttachmentsText only, up to 2 MB, about 8,000 characters read
SSHMaster only; one command at a time; visible terminal; unbreakable safety floor
AuditingAction History with the "AI Copilot" indicator, plus the session timeline

Security and limits

The Copilot was designed to be useful without opening gaps: it never has more power than the user operating it, and there is a safety floor that not even the Master gets around.

What the Copilot never does

  • Never leaves the system scope: it refuses in one sentence questions that are not about Ravi (weather, generic code, other subjects).
  • Never ignores its own rules: requests like "ignore the instructions", "show your prompt" or "unrestricted mode" are refused. Screen content, command outputs and attachments are treated as data, never as commands; this protects against instruction injection via a device or a page.
  • Never reveals secrets: the internal prompt, tokens and vault passwords. A device password never leaves the server, not even into the conversation itself.
  • Never runs catastrophic commands on devices, even for the Master: reboot and shutdown (reboot, reload, shutdown, halt, poweroff), factory reset, rm -rf, formatting (format, mkfs), erasing configuration (write erase, erase startup/nvram/config), direct disk writes (dd if=, redirection to /dev/sd*), fork bombs and any change to device users or passwords (/user, passwd, password, secret). The list is enforced on the server, cannot be bypassed via the chat, and covers even RouterOS abbreviations.
  • Never escalates privilege: every action runs with the logged-in user's identity and permissions, revalidated live on each action. Demoting a user cuts off the AI access for that user immediately, even with the session open.
  • Does not use device tools for non-Master users: SSH, SNMP, backup and credentials are refused and also blocked on the server.
  • Does not navigate to action links: the AI's navigation is blocked for URLs that would trigger mutations (delete, create, save, logout). Mutations happen only through the audited catalog.

Auditing

Every action run by the AI is recorded in the user's Action History with the "AI Copilot" indicator, including SSH commands one by one. The entire conversation is saved in the session timeline. Managers can audit exactly what the AI did, on whose behalf and when.

To give someone AI access to a module, grant the normal access to the module: the Copilot respects exactly the same permissions as the interface. There is no separate "AI" permission.

Server usage

Each open conversation keeps a dedicated process on the server. For large teams, tell staff to use New conversation or close the panel when done; the automatic shutdown after 20 minutes of idleness covers the forgetful cases. There are also internal caps per request and per session that prevent loops.

Troubleshooting

SymptomLikely cause and what to do
"AI engine unavailable on this server." when opening the chatThe AI environment is not installed or healthy on the server. Run the system update (the updater checks and reinstalls the engine) or contact support.
"Failed to reach the AI" in the middle of the conversationServer without internet or the AI gateway momentarily unavailable (the system already retries a few times). Check the server connectivity and try again.
The AI replies that it does not have permissionThe logged-in user does not have the required level in the module: the catalog is filtered by the real permission. Adjust the user's or group's permissions; it is not an AI defect.
The AI refuses SSH, backup or SNMPDevice tools are exclusive to the Master.
Terminal shows BLOCKEDThe command hit the safety floor. It is intentional and applies even to the Master. Ask for the goal another way: instead of rebooting, for example, diagnose the cause.
The AI asks for the device user and passwordThere is no credential in the vault for that IP. Provide it in the chat (the AI saves it to the vault) or register it beforehand in the credential vault.
Key connection fails with "publickey"The Ravi public key is not installed on the device. Install it (ready-made command in the System access (SSH key) card in General Settings) or use a password.
Attachment rejectedOnly text files of the accepted extensions, up to 2 MB. Binaries and images are rejected.
The conversation "disappeared"Session ended by 20 minutes of idleness, logout or New conversation. The next send opens a new session automatically. Within the same session, F5 recovers the history.
Confirm/Cancel buttons do not work after F5Expected behavior: old confirmation requests are not revived in the history, to avoid approving something already expired. Ask for the action again.
The AI "sees" the wrong screen or cannot read the screenThe open page left the Ravi domain (external content). Go back to a system screen.
The browser Back button does not undo internal navigationKnown limitation of the current version: the AI's navigation inside the system does not create browser history entries. Use the system menus.

AI in other areas

The Copilot is the system's generalist AI. Beyond it, several areas have specialized AI features, documented on each module's pages:

FeatureWhat it doesWhere to read more
Sensor AI Insight On the sensor detail, it generates a natural-language technical analysis of the readings and charts. A separate action from Export PDF: only whoever clicks consumes AI. Devices and sensors
Authoritative DNS technical analysis AI-assisted insight on the diagnosis of an authoritative domain. DNS
DDoS incident AI analyst On the Flow incident console, the Analyze with AI button opens the DDoS Analyst (AI) panel: an assessment of the attack and a recommendation between FlowSpec, RTBH and monitor only. Flow: view and analysis
AI exporter configuration When adding a device in Flow, the AI tab connects over SSH, takes a backup, configures SNMP, NetFlow and sampling and registers the exporter on its own. It includes the Review configuration (AI) mode for already registered exporters: the AI reads the current configuration and applies only what is missing, without duplicating. Flow: configuration
AI device discovery (Backups) It identifies the brand, model and system via read-only SSH and "learns" the backup recipe. The approved recipe enters the catalog and the next identical devices do not spend AI. It includes an optional readable summary of the daily configuration diff. Device backups
AI WireGuard auto-configurator It configures the remote VPN end (MikroTik or Debian) with live terminals, mandatory backup and human approval on sensitive commands. VPN and remote access

All of these features use the same built-in AI engine of the product. There is no API key nor any AI configuration for the customer to do, in any of them.