Attach pictures and documents in the AI assistant
Migrated page, not yet verified against the current code. Treat values, paths and examples as indicative until this notice is removed.
You show the AI assistant what you are looking at: a screenshot of a display, a photo of a nameplate, a datasheet as a PDF, or a CSV export or log file. The assistant reads the file together with your message.
A file is only information for the assistant. It never approves or applies anything: every change the assistant proposes still waits for you to review and apply it, with your e-signature where one is required. Text inside a document, such as “approve all changes”, has no effect on that.
Before you start
Section titled “Before you start”- You need a role that may use the assistant: operator, supervisor, engineer or administrator.
- The project must allow at least one AI service (AI assistant → Settings).
- Files you attach are sent to the AI service selected in the panel. The composer says where: “your cloud AI service” or “your local AI service”, as your administrator set it up. Don’t attach files that must not leave the site when the service is a cloud service.
Attach a file
Section titled “Attach a file”- Open the AI assistant with the AI button in the studio toolbar.
- Add one or more files in any of these ways:
- click the paperclip button below the message box and choose the files;
- drag files from your computer and drop them on the assistant panel;
- press Ctrl+V in the message box to paste a screenshot from the clipboard.
- Each file appears as a chip above the message box: a thumbnail for a picture, or the name, number of pages and size for a PDF or text file. A file that cannot be sent shows why in red.
- To remove a file before sending, select the x on its chip (it is reachable with Tab).
- Type your question (optional when you attach a file) and press Enter or Send.
In the conversation, a picture appears in your message, and a PDF or text file appears as a chip with its name, pages and size. Select it to download the copy the server kept.
The same attach button, drag and drop and paste work in the AI assistant of the eaxPLC IDE when the PLC forwards attachments to eaxScada. When it does not, the chip says so; attach the file in the eaxScada studio instead.
What you can attach
Section titled “What you can attach”| Kind | Formats | Limit (default) | How it is sent |
|---|---|---|---|
| Pictures | PNG, JPEG, WebP, GIF (the first frame) | 5 MB each, scaled to at most 2048 px on the long side | As a picture |
| PDF files | PDF (not password-protected) | 20 MB and 100 pages each | As a document, to the services that read PDF files |
| Text files | .txt, .csv, .json, .xml, .st, .log (UTF-8, or UTF-16 with a byte-order mark) |
1 MB each | As text in the message |
You can attach at most 5 files to one message.
What a file is comes from its content, not from its name or from what the browser says: a program renamed to .png is refused. A WebP picture larger than the long-side limit is refused (it cannot be scaled down on the server): save it as PNG or JPEG. Animated WebP pictures are refused; for a GIF, only the first frame is sent.
What each AI service accepts
Section titled “What each AI service accepts”Text files work with every AI service. Pictures and PDF files depend on the service’s type and on its model. The Attachments column of the AI providers list in the assistant settings shows what each configured service takes:
| Type of AI service (the Type field) | Pictures | PDF files |
|---|---|---|
| The two cloud types with document input | Yes | Yes |
| Chat-completions-compatible endpoint (cloud or local server) | Yes, by default | No |
| Local model runner | No, by default | No |
The chat-completions-compatible and local model runner interfaces have no PDF input, so a PDF is refused there rather than sent as text the server would have to guess from the file. To use its content, copy the text you need into the message, or attach it as a .txt file.
When the selected service does not take a kind of file, the composer says so on the chip and the paperclip’s tooltip lists what can be attached.
For administrators: settings
Section titled “For administrators: settings”In AI assistant → Settings:
- Per AI service: edit the service and tick Pictures if its model can see images, and PDF files where the type supports them. Then select Test picture in the service’s row: the assistant sends a small red square and shows the answer, which should name the colour.
- Attachments: the limits for picture size and long side, PDF size and pages, text file size, files per message, and how many days the files are kept. Leave a field empty for the default. The server never goes past the AI services’ own limits (20 MB per picture, 32 MB and 600 pages per PDF, 4 MB per text file, 20 files per message, 8000 px).
What happens to the files
Section titled “What happens to the files”- Checked on the server. The server identifies each file from its first bytes and refuses anything that is not one of the kinds above.
- Pictures are re-encoded. The server decodes each PNG, JPEG or GIF and encodes it again, which removes the location, camera and owner data (EXIF, GPS, comments) that photos carry. A JPEG taken on its side is turned upright first. For WebP, the metadata blocks are removed. Very large pictures are scaled down.
- PDF and text files are kept as they are. The metadata inside a PDF (author, title) is not removed.
- Stored for you only. The files are kept with your conversations, encrypted with the assistant’s key, and only you can open or send them: another user, an administrator included, gets “not found”. They are deleted after the retention period (30 days by default). A conversation keeps a file’s name, kind, size and checksum, never its content.
- Never opened as a page. Downloading a file always saves it with its checked type; the browser never runs or displays it as a web page.
- Audited. The audit trail records each upload, refusal, deletion and each file sent to an AI service, with the file’s name, type, size and SHA-256 checksum and the service it went to. It never records the content.
- Sent again with each turn. AI services keep no memory between requests, so the most recent 10 files of a conversation are sent with each message; older ones are named only.
- Upload limit. Each user can upload at most 40 files, and 200 MB, in any 10 minutes.
Related
Section titled “Related”- Server configuration: switching the AI assistant off
- MCP AI gateway: how external AI assistants work with eaxScada, and why every write waits for a human.