The development team explored three approaches to building an AI agent for their analytics platform. The first attempt involved direct XML generation, which proved difficult to maintain and scale. Simple scenarios took 5 minutes, while complex ones took 20 minutes, with a success rate of 60–70% for basic tasks and failure for complex 80-node scenarios.
A second approach used browser-based agents via Playwright to interact with the UI. While effective for demonstrations, this method was slow, taking 30 minutes for a 5-node scenario, and suffered from high token consumption and frequent errors due to the agent's reliance on DOM analysis and screenshots.
The final, successful solution utilizes existing e2e-test infrastructure and data-testid attributes. The LLM acts as a manager that plans the structure, while e2e-test scripts serve as deterministic executors. This hybrid model allows for the creation of a 5–6 node scenario in 3–5 minutes at a cost of 2.5–6 RUB per scenario.
This architecture enables the use of more economical models, such as DeepSeek 4.1 Flash or local Qwen 3.8-27B models deployed on RTX 3090 GPUs. The system successfully handles complex tasks, including scenarios with up to 80 nodes, by separating high-level planning from low-level interface interactions.






