---
id: 18759
lang: en
title: "Old End-to-End Tests Taught an AI Agent to Build a Data Pipeline in 3–5 Minutes for 2.5–6 Rubles"
published_at: "2026-12-01 00:26:09"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1114278/?utm_campaign=1114278&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18759"
categories: ["llm", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Old End-to-End Tests Taught an AI Agent to Build a Data Pipeline in 3–5 Minutes for 2.5–6 Rubles

> **Краткая суть (BLUF):** A text-based AI agent assembles a data-processing chain of 5–6 nodes, such as import and filtering. A browser agent took about half an hour to do this, while an analyst working by hand needed 10–15 minutes. After the team connected scripts from old end-to-end (e2e) tests, which click through interface elements themselves, assembly took 3–5 minutes and 2.5–6 rubles in token costs. The takeaway: let the LLM handle the plan and leave the clicks to code.  • The agent swarm performed worse: success dropped below 10% • It runs on DeepSeek 4.1 Flash and on the local qwen3.8-27B using two RTX 3090 cards • Only frontier models managed to build an 80-node pipeline

Imagine an analyst who writes a task in plain text while an AI agent assembles a ready-made data-processing chain on the platform: file import, filter, calculation. Such a chain is called a pipeline, and it consists of nodes that can be opened, checked, and edited by hand. Alexey Arustamov, director of the company that develops an advanced analytics platform, described on Habr how his team got this working on the third attempt. The result: the agent assembles a simple pipeline of 5–6 nodes in 3–5 minutes, with direct token costs of 2.5–6 rubles. For comparison, a standard browser agent took about half an hour to build the same pipeline, and an analyst working manually spent 10–15 minutes. The key is that the agent was given ready-made scripts from old e2e tests, that is, autotests that emulate user actions in the interface.

## Why an agent instead of a code generator

The team could have simply generated code from a prompt. But for an analyst or business user, such code remains a black box: if the logic contains an error or the business rules change, fixing it requires a developer, and the whole idea of self-service collapses. A visual pipeline built from the platform's familiar nodes works differently: the user gets the benefits of AI but keeps control and the ability to make edits.

## Two failed attempts

At first, the agent generated the platform's internal format, a zip archive with XML describing nodes, connections, and settings. The team built a pipeline around the agent: searching for similar packages, Python scripts for handling chunks of XML, and three levels of validation (XSD schema, command-line execution, and browser checking). The agent handled simple tasks, such as adding two numbers or importing with a filter, in about 5 minutes, and a pipeline of 5–10 nodes in roughly 20 minutes on average. Only 60–70% of simple pipelines succeeded, and the agent could not handle a complex one with 80+ nodes (a multi-stage KPI calculation for HR accounting): the context window ran out and the planning thread was lost. Moreover, everything worked only on expensive frontier models. In effect, the team was rewriting the platform's logic in Python, and every new node type required further script work. The agent swarm made things worse: success fell below 10%, wait times grew, and debugging became more expensive.

The second attempt was a standard browser agent (Codex, Claude, Hermes, or OpenCode via Playwright). In a demo it looks impressive: the agent clicks through the interface on its own. But it does not know the product and acts by trial and error: it parses the DOM, takes screenshots when it fails, and asks a multimodal model for element coordinates. A 5–6 node pipeline that an analyst builds in 10–15 minutes took the agent about half an hour. The context filled up quickly, and errors piled up. The author compares this to firing a cannon at mosquitoes.

## What worked: e2e tests as instructions for the agent

The team arrived at the third approach almost by accident. To evaluate the first agent, they needed reference pipelines, and the QA Team Lead decided to use thousands of e2e scripts that the automation department had written over the years to test the platform. These scripts already contained stable test identifiers (data-testid), semantic labels for interface elements that do not depend on fragile CSS selectors. The agent was asked to analyze the tests and compile an AI Skill, a set of instructions. For example, "connect two nodes" was described not as "drag with the mouse" but as a sequence: find the ports, wait for the data-type compatibility check, and confirm that the connection appeared.

Then the repetitive actions were moved into executor code. Now the agent selects a node, requests its settings schema, and calls a script such as setupImportFromTextFile, passing the file path, delimiter, encoding, and field settings. The script finds the elements and fills them in. The agent reads the actual settings, checks them against the task, and chooses the next step.

The results the author reports:

- a simple pipeline of 5–6 nodes is assembled in 3–5 minutes;
- direct generation costs are 2.5–6 rubles, which replaces 30–60 minutes of analyst work;
- when the parameters are correct, a node is configured identically on every run;
- the approach works on economical models, including DeepSeek 4.1 Flash, and on the local qwen3.8-27B using a pair of RTX 3090 cards;
- with a frontier model, the agent planned a pipeline of up to 80 nodes based on a scientific article about KPI calculation in HR accounting.

## Limitations and conclusion

The figures come from the team's own account, and there has been no independent verification. The author himself notes that local models still struggle with very large pipelines in a single pass. Details on tool contracts, agent memory, the MCP server, security, and the eval pipeline are promised in a follow-up article.

The practical lesson for those building agents in enterprise products: an LLM works better as a "manager" that plans and outputs parameters in JSON, while clicks and state checks go to deterministic code. In that case, you only need to validate the input parameters, not where the agent clicked. It is also worth looking at your own codebase: ready-made e2e tests with stable identifiers may turn out to be the best interface documentation for a future agent.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1114278/?utm_campaign=1114278&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18759
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
