How to create an AI agent for a corporate product and why 'just connecting an LLM' doesn't work
Alexey Arustamov, Director of a development company, discussed three approaches to an AI agent for an analytics platform and the reasons for rejecting direct XML generation.

The team wanted analysts to describe tasks in plain text and receive a ready-made visual scenario composed of platform nodes. This format was intended to preserve the ability to verify and manually edit, unlike code that a user receives from a language model.
Initially, the agent generated an internal XML package: it searched for suitable templates, called Python scripts, and validated the result against XSD via the command line and in a browser. Simple scenarios took about 5 minutes, while options with 5–10 nodes took an average of 20 minutes. Only 60–70% of simple scenarios were successful, and complex solutions with dozens of nodes quickly hit the context window limit. Attempting to combine multiple agents reduced success rates to below 10%.
Next, the team tested a browser-based approach using Playwright. The agent interacted with the interface, analyzing the DOM and screenshots, but creating a scenario with 5–6 nodes took about half an hour and often built logic based on assumptions.
The breakthrough came with the platform's e2e test database. Based on this, the team prepared an AI Skill with instructions for actions via stable data-testid attributes, while repetitive operations were moved to deterministic scripts. The agent selects the required tool and passes parameters to it, after which the executor interacts with the interface independently and returns the result.





