Using the DataMiner App agent
A session with the DataMiner App agent follows a fixed workflow. Knowing this workflow helps you give the right input at the right time.
flowchart LR
A[Describe the app] --> B[Answer questions]
B --> C[Data discovery]
C --> D[Implementation]
D --> E[Tests and build]
E --> F[Deployment and review]
F -->|Change request| A
Starting a session
Create an empty folder for your app, or open the folder of an existing app that was built with the agent.
Open the folder as the workspace in your AI client, such as Visual Studio Code with GitHub Copilot, Claude Code, Cursor, or OpenAI Codex.
In Visual Studio Code, for example, use File > Open Folder.
Open the chat, and select DataMiner App agent in the agent picker.
Describe what you want to build or change.
The workflow
1. Classify the request
The agent first determines whether you want to create a new app or update an existing one (a new feature, a fix, or another change). If this is not clear from your prompt, the agent asks you.
2. Answer questions
The agent always asks what the app should do, or what should change. For a new app, it will always need this information:
- The name of the app. This name is shown on the DataMiner landing page and in the header bar.
- The key features: What users need to see and do.
- The data sources: Which DataMiner data the app shows, such as elements, parameters, alarms, services, or DOM instances.
- Any write-back operations: Actions that change something in DataMiner, such as running an automation script.
The agent does not add features you did not ask for. The more complete your initial description, the fewer questions it needs to ask. See Best practices.
Tip
For anything larger than a small app, use your client's Plan mode (if available) to create a plan with milestones, and review it before the agent writes code.
3. Data discovery
To find the data your app needs, the agent asks for the URL of your DataMiner System and access to a DataMiner user account. It signs in to discover the GQI queries for each data need, e.g., "all active alarms for elements in the Encoders view" (using DataMiner Assistant if enabled).
The discovered queries are then embedded in the app. Unless you explicitly integrate the DataMiner Assistant, the app itself does not use AI at runtime or need stored account credentials.
Important
Use a non-production DataMiner System whenever possible and a dedicated account with only the permissions the agent needs. Do not share credentials in chat; use an approved secure authentication method. If a secure method is unavailable, do not proceed with credential-based discovery. If you must use a production system, see Security.
4. Implementation
By default, the agent creates a React project in a dedicated subfolder of your workspace, and implements the requested features in the DataMiner style (which is customizable). You can also request another client-side technology that does not rely on server-side rendering.
The agent can run commands in your workspace, e.g., npm install or npm run build. Your AI client may ask you to allow these commands.
5. Tests and build
Every new app comes with Playwright end-to-end tests. These tests run against the production build, with mocked DataMiner responses, so they do not need a connection to your DataMiner System. The agent only considers the work done when the tests pass and the production build succeeds.
6. Deployment and review
When the build is ready, the agent packages the build output and App.info.json into a ZIP file (or provides the build output so you can package it). Upload the ZIP file via the DataMiner landing page, review the draft app with real data, and publish it as described under Deploying an app.
Making changes
To change an app later, open the same workspace, select the agent again, and describe the change, e.g., "Add a filter on severity to the alarm list". The agent extends the existing code and tests and rebuilds the app so you can upload the updated ZIP package to DataMiner again, test the new draft, and publish it.
If something does not work as expected on the DataMiner System, describe the behavior to the agent, e.g., "The alarm table stays empty after sign-in". The agent can open the app in a browser and inspect the network requests and WebSocket messages to find the cause.
Tip
Commit your workspace to Git after each working version. This way, you can always return to a version that worked if a later change goes in the wrong direction.
Letting the agent inspect your DataMiner System
The agent can use Playwright to open pages of your DataMiner System in a browser that you share with it. This works for the app it builds, but also for existing screens, such as a low-code app, a dashboard, or a visual overview in the web apps. The agent can then:
- Take screenshots of every page and panel, in different states.
- Click through the screen to see how it behaves, e.g., which panel opens when a row is selected.
- Capture the network requests and WebSocket messages, to see which data the screen requests, e.g., the GQI queries of a low-code app, and which automation scripts it executes.
To let the agent inspect your system:
Ask the agent to open the page, and give it the URL, e.g.,
https://my-dma/app/<app ID>.When the page redirects to the DataMiner sign-in page, the agent asks you to sign in. Sign in yourself in the shared browser, and tell the agent when you are done. Do not give the agent your credentials for this.
Important
The agent acts with the permissions of the account you signed in with. Use a non-production DataMiner System whenever possible, and tell the agent explicitly not to click anything that changes data, e.g., buttons that execute automation scripts, or the Save and Publish buttons of a low-code app in edit mode.
Tell the agent what to inspect and what to deliver, e.g., an inventory file with screenshots.
Note
Your AI client must have a browser tool that the agent can control, such as the integrated browser of Visual Studio Code or a Playwright MCP server. If the agent cannot open a browser, it will tell you so.