Introduction
In modern enterprise environments, workflows serve as the critical infrastructure for automation, connecting disparate tools and services to streamline operations. However, translating complex natural language (NL) instructions into executable workflows—a task known as NL2Workflow—remains a significant challenge for general-purpose Large Language Models (LLMs). This paper introduces WorkTeam, a multi-agent framework designed to bridge this gap by decomposing the workflow construction process into specialized roles.
The NL2Workflow Challenge
Traditional approaches to NL2Workflow often rely on a single LLM to handle the entire pipeline, from intent understanding to parameter extraction. The authors identify two primary bottlenecks that hinder performance:
- Specialized Knowledge Gaps: No single model possesses the exhaustive technical documentation required for every niche enterprise tool in a complex chain.
- Cognitive Load: Simultaneously managing high-level logic orchestration and precise parameter filling leads to performance degradation, as the model struggles with task-switching strain.
The WorkTeam Framework
To address these issues, WorkTeam employs a collaborative multi-agent system consisting of three specialized roles that mimic a professional software development team:
- Supervisor Agent: Acts as the project manager, overseeing high-level planning, interacting with users, and performing "result reflection" to ensure outputs meet requirements.
- Orchestrator Agent: Functions as the architect, selecting necessary components from a library and arranging them into a logical "skeleton" using semantic retrieval and fine-tuned orchestration tools.
- Filler Agent: Serves as the technician, retrieving specific documentation to populate the workflow skeleton with accurate parameters (e.g., API keys, message content, and URLs).
Dataset: HW-NL2Workflow
Due to the lack of existing public benchmarks for this task, the researchers developed the HW-NL2Workflow dataset. Comprising 3,695 real-world business samples, the dataset includes both workflow creation and modification tasks. Unlike synthetic datasets, these samples reflect the complexity of actual production environments, featuring an average of five components and sixteen parameters per workflow.
Key Results
WorkTeam significantly outperforms state-of-the-art single-agent models. In comparative evaluations against GPT-4o and fine-tuned models like LLaMA and Qwen, WorkTeam achieved:
- Exact Match Rate (EMR): 52.7%, nearly tripling GPT-4o's 18.1%.
- Arrangement Accuracy (AA): 88.9%, demonstrating superior logical sequencing of tools.
- Parameter Accuracy (PA): 73.2%, highlighting the precision of the Filler agent in handling complex JSON structures where general models often hallucinate.
Ablation studies further confirmed that the "reflection" mechanism in the Supervisor agent and the modular specialization of the team are functional necessities for maintaining high reliability in complex logic tasks.
Conclusion and Future Work
WorkTeam demonstrates that multi-agent collaboration is a robust solution for complex reasoning tasks in enterprise automation. While the system excels at standard workflows, future research will focus on handling highly nested conditional logic and expanding the framework's compatibility with a broader range of third-party enterprise tools.
Summary updated