Skip to main content

AI Assistant

What This Chapter Covers​

PAIO's AI chat creates and modifies the model from natural language. This chapter explains what it does, how to write a request, and how to check and revert what the AI wrote.

  • Audience: users who want to create or modify the model from natural language
  • Prerequisites: an active license and at least one LLM provider (15.2). To modify a model, the window must have a project open.

The AI drafts, the engineer decides. What the AI produces is always a draft. PAIO blocks malformed results and gives you a way to revert, but it does not judge whether the design is correct. Always check the result in the editors and in the 14. Validation panel.

15.1 What the AI Does for You​

PAIO has two AI features: AI chat (this chapter), which uses the provider you connect and choose, and the AI nodes of the AI Workflow, which always use Claude (21. AI Workflow). The provider you choose for AI chat does not change what the AI Workflow uses.

AI chat changes only the part of the model you ask about. It can touch:

  • network topology: ECUs, HPCs, communication clusters, connectors
  • signals, PDUs, frames
  • data types and units
  • port interfaces and service deployment
  • SWCs and compositions, SWC-to-ECU mappings
  • ECUC module definitions and configuration values
  • the AI Workflow graph: its nodes, connections, notes and settings (21. AI Workflow)

You can also ask questions that do not modify the model.

15.2 Preparation — Connecting a Provider​

  1. Click the gear button in the chat header (tooltip Manage AI accounts). The AI Providers dialog lists five providers.
  2. Prepare a provider outside PAIO. For example, sign in to the Claude CLI in a terminal with claude auth login. PAIO itself has no log-in button.
  3. Click Use on an available provider to make it active. The active provider carries an ACTIVE badge.

The AI Providers dialog with five providers and the status of each

① The status dot: green is available, gray unavailable. ② The active provider with ACTIVE. ③ The status line. ④ Use on an available provider. ⑤ Set API key. ⑥ Offline when no Ollama server is reachable. ⑦ The caret that expands a row.

15.2.1 Claude Model and Effort​

Expand the Claude [OPUS] row with its caret and choose MODEL and EFFORT. The defaults are Opus and Medium. A change applies from the next message.

The MODEL and EFFORT settings of the Claude provider

The run settings with MODEL set to Opus and EFFORT to Medium.

15.3 Using AI Chat​

  1. Click the robot button at the right of the top bar (tooltip AI Chat Panel). The chat panel PAIO Robo opens on the right.
  2. Type a request and press Enter. Shift+Enter starts a new line.
  3. To interrupt an answer, click Stop response.

The chat panel open beside the System editor

① The robot button. ② The title PAIO Robo. ③ The answer language. ④ The provider in use. ⑤ The input field. ⑥ The send button.

The language selector offers KO, EN, JA and ZH, and the assistant answers in the chosen language.

15.3.1 The Basic Flow​

  1. Write your request with the project open.
  2. Read the answer. If the request modified the model, the result is written straight to the files, and a summary (Model API, Write Complete, Project:, Files:) is appended.
  3. Open each editor and check the result. Click V in the status bar to check the validation panel as well.
  4. If you are not satisfied, revert (15.3.3).

An answer with the write summary and the Undo button

① Write Complete with the counts and the file written. ② The ↩ Undo button.

PAIO rejects a document with an empty or invalid name or a wrong structure, and re-sends the request automatically up to twice.

15.3.2 Which Project Gets Written​

The AI writes into the project open in that window, whichever editor tab is open. The Project: line of the summary names the project that was written. With no project open, nothing is written.

15.3.3 Reverting Changes​

  1. Click ↩ Undo below the answer.
  2. The confirmation Undo AI changes lists the files to be restored. Edits you made after that answer are lost too.
  3. Click Undo.

The Undo AI changes confirmation

① Undo restores the file; Cancel leaves it as it is.

You can also revert with Ctrl+Z; a change written by the AI is one undo step. The backup that ↩ Undo uses is kept for 30 minutes only, and not across a restart of PAIO.

15.4 How to Write a Good Request​

The wording of your request mostly decides the result. Four rules are enough.

Name the Target Explicitly​

The AI cannot see what you selected on screen. Say what to create and where, for example: Add a door ECU named DoorEcu_RL to the CAN cluster CAN_Body.

Ask for One Thing at a Time​

Split a request that carries several concerns, and check each result before you move on.

State the Conditions​

Write down any fixed value up front: a count, a bit length, a cycle time, a platform. If you leave it out, the AI picks a value on its own.

Ask First When You Are Unsure​

If you only ask instead of telling the AI to modify the model, the files stay untouched.

15.5 The QuickStart Workflow​

QuickStart is not offered in PAIO 1.0.1. To start from a blank slate, create a project with New Project (4.3.1) and build the model in the editors, or with AI chat requests made one step at a time (15.4).

15.6 Limits to Know About​

  • An active license is required (see 20.8).
  • The conversation and the model content are sent to the provider you selected. Ollama communicates only with the local server.
  • A large project is not sent in full, so name the target specifically.
  • What is generated is a draft and must be reviewed by a person.
  • The AI Workflow's AI nodes always send to Anthropic Claude (21).

15.7.1 A Request That Runs Several Rounds​

A large request, such as designing a whole VFB, is written over several rounds. PAIO asks for the rest by itself, up to 10 rounds per request, and each round starts with [Continuing <n>/10]. If work remains after that, reply continue. When what the AI wrote adds new validation findings, PAIO also asks it to fix them, and the answer lists any that remain.

15.7.2 Stopping a Request​

Stop response stops writing from that moment. Rounds already written stay in the files. ↩ Undo below the answer reverts the whole request, every round included.

A link to a project file opens the file as a double-click in the Explorer does. An http or https address opens in the system browser.

15.8 AI Chat in an SSH Window​

In a window connected over SSH (17. Remote Development), AI chat writes to the SSH server, not to your PC.

  1. Send the request as usual. While PAIO copies the project from the server, the answer area reads Reading the project from the SSH server….
  2. Every file the AI writes goes to the server first. ↩ Undo and Ctrl+Z restore the server files.
  3. The conversations are stored in the server project.