How to Build a 24/7 Automated Multi-Agent System: From Natural Language Requests to End-to-End Delivery

    This article explains how to build a 24/7 automated multi-agent system that turns a natural language request into a complete engineering deliverable without human intervention. It covers the three-layer architecture of an orchestrator agent and specialized sub-agents, requirement parsing into verifiable tasks, collection layer design, time-series storage and explainable anomaly rules, visualization and export, tiered alerting, reliability safeguards, and a phased rollout plan.

    1. Scenario: From a One-Sentence Request to Automatic Delivery

    A business user sends a natural language request to an orchestrator agent in a collaboration tool: build a competitor price monitoring dashboard that accepts competitor links, periodically collects price, original price, discount information, and stock status, provides trend charts and anomaly markers, sends alerts through instant messaging when prices drop sharply, fluctuate heavily, or go out of stock, and supports spreadsheet export. Once the request is submitted, the requester no longer participates in execution.

    The point of this scenario is not a “chatbot answering questions,” but multiple agents collaborating to complete end-to-end engineering delivery. The system must handle requirement understanding, solution design, code generation, data pipeline setup, scheduling configuration, alerting policy configuration, and result reporting with no one on duty.

    2. Overall Architecture: Layered Collaboration Between an Orchestrator and Specialized Sub-Agents

    A practical architecture usually has three layers.

    The first layer is the orchestrator, responsible for intent recognition, task decomposition, priority ordering, context maintenance, and result aggregation. Its output is not code but a structured task list.

    The second layer is the execution layer, made up of multiple single-responsibility sub-agents, such as a collection agent, a storage agent, a computation and visualization agent, an alerting agent, and an export agent.

    The third layer is the infrastructure layer, built from general cloud product categories such as container platforms, message queues, object storage, logging services, and monitoring and alerting, which provide runtime and observability for the layers above.

    A sample task orchestration structure looks like this:

    1. {
    2. "task": "competitor price monitoring dashboard",
    3. "subtasks": [
    4. {"name": "data_ingest", "cron": "0 */2 * * *"},
    5. {"name": "anomaly_detect", "cron": "5 */2 * * *"},
    6. {"name": "alert_dispatch", "trigger": "anomaly_found"},
    7. {"name": "report_export", "cron": "0 8 * * *"}
    8. ],
    9. "on_failure": "retry_then_notify"
    10. }

    3. Requirement Parsing and Task Decomposition: Turning Natural Language into Executable Engineering Items

    The orchestrator agent first converts a vague description into a verifiable structured specification: entities (competitor links), metrics (price, original price, discount, stock status), time dimensions (collection frequency), decision rules (low price, sharp fluctuation, out of stock), and deliverables (dashboard, alerts, exported files).

    The key is “acceptance criteria.” Every subtask should carry inputs, outputs, and a definition of done. For example, the collection task is done when field completeness meets the target and failed links enter a retry queue. Without acceptance criteria, automation degrades into uncontrolled random generation.

    4. Collection Layer Design: Stability Over Complexity

    The collection agent has to deal with three practical problems: differences in page structure, access rate limits, and retry on failure.

    The engineering recommendation is “configuration-driven parsing”: keep site selectors, field mappings, and encoding in configuration while the code stays generic; use exponential backoff retries for failed requests, with a maximum retry count and a dead letter queue; apply global rate limiting to collection frequency to avoid putting pressure on target sites, while respecting the target sites’ terms of use and robots conventions.

    1. def fetch_with_retry(url, selector, max_retry=3):
    2. for i in range(max_retry):
    3. try:
    4. html = http_get(url, timeout=10)
    5. return extract(html, selector)
    6. except Exception as e:
    7. if i == max_retry - 1:
    8. dead_letter.push({"url": url, "error": str(e)})
    9. return None
    10. time.sleep(2 ** i)

    Collected results are best written to a data table with time-series characteristics. Core fields include product identifier, timestamp, current price, original price, discount description, stock status, and collection batch. Raw payloads can be archived to object storage for traceability and re-parsing.

    Anomaly detection should use explainable rule combinations rather than a single black-box model:

    • Low price: the current price falls below the minimum threshold of the last N collections or a target price set by the user;
    • Sharp fluctuation: the change rate between two adjacent samples exceeds a configured percentage;
    • Out of stock: stock status changes from available to unavailable and stays that way for M cycles.

    Rule parameters are externalized as configuration so the business side can adjust them and the agent can execute them unattended.

    6. Visualization and Export: Making Conclusions Readable and Deliverable

    The visualization agent generates line trend charts with anomaly markers, time on the horizontal axis and price on the vertical axis, out-of-stock intervals highlighted with a background color, and each anomaly point annotated with its trigger reason. The dashboard must support filtering by competitor and time range.

    The export agent generates a spreadsheet file daily, writes it to object storage, and returns the access path. Fields match the dashboard so that “what you see is what you export.”

    7. Alerting Pipeline: Tiered, Deduplicated, Traceable

    The alerting agent routes events by severity: out of stock and sharp fluctuation are high priority, low price is normal priority. To avoid alert storms, add time-window deduplication and state convergence, so the same product with the same reason is pushed only once within a window, with an optional recovery notification once the state clears. All push records are written to the logging service to form a traceable chain.

    8. Reliability Design: Four Safeguards for Unattended Operation

    1. Idempotency: repeated execution of the same batch produces no duplicate data;
    2. Retry and dead letter: failed tasks can be compensated and are never silently dropped;
    3. Observability: logs, metrics, and traces cover the full pipeline, and anomalies are caught by monitoring and alerting;
    4. Least privilege: credentials are centrally managed and authorized per task to avoid unauthorized access.

    9. Where General Cloud Capabilities Fit

    In this setup, the container platform hosts the runtime for collection and computation tasks, the message queue decouples tasks and absorbs traffic peaks, object storage holds raw payloads and exported files, and logging plus monitoring and alerting provide observability and fallback notifications. These are all general cloud product categories available in the industry and can be replaced with equivalents from your existing tech stack. In the original system, these capabilities are provided by Baidu AI Cloud.

    Phase one: collection from a single site plus rule-based alerting, to validate data quality. Phase two: multi-site configuration and dashboard filtering. Phase three: more complex fluctuation detection and automatic parameter tuning. Phase four: build up task templates so a new request can generate a new agent orchestration from a single sentence.

    The value of automation is not replacing one instance of coding, but standardizing, reusing, and making observable the path from “requirement to delivery,” so the team can focus on rule design and business judgment.