Introduction
Large Language Models (LLMs) are increasingly deployed as autonomous agents capable of planning and executing actions. However, in "knowledge-intensive" domains—such as insurance processing or complex corporate Robotic Process Automation (RPA)—these agents frequently encounter "planning hallucinations." While they possess general commonsense, they often lack the domain-specific expertise required to navigate professional workflows accurately.
Existing research has attempted to mitigate this by providing agents with external "workflow knowledge" (digital manuals). However, these efforts have lacked a standardized representation format and a rigorous benchmark to evaluate adherence to such workflows. This paper introduces FlowBench, a comprehensive benchmark designed to evaluate how well LLM-based agents follow structured workflows in expertise-demanding tasks.
Methodology
FlowBench encompasses 51 scenarios across 6 diverse domains: Customer Service, Personal Assistant, E-tailing, Travel & Transportation, Logistics Solutions, and RPA. To evaluate the impact of knowledge representation, the authors formalized three distinct formats for workflow knowledge:
- Text: Natural language documentation, which is flexible but often ambiguous.
- Code: Python-style pseudo-code, offering precision but potentially high parsing complexity for LLMs.
- Flowchart: Structured diagrams represented via Markdown Mermaid notation, providing a balance between structure and readability.
The evaluation framework moves beyond static, single-step planning. It employs a Simulated Session-level Evaluation, where a GPT-4-powered user simulator interacts with the agent in multi-turn conversations. This setup tests the agent's ability to reach a successful conclusion while strictly adhering to workflow constraints within a dynamic environment.
Results and Insights
The study reveals several critical findings regarding LLM agent performance:
- The Flowchart Advantage: Flowcharts consistently outperformed text and code formats. The structured "state-transition" nature of flowcharts helps LLMs pinpoint their current progress and identify valid subsequent actions more effectively than linear text or symbolic code.
- Format Sensitivity: Performance is highly dependent on the model's capabilities. While state-of-the-art models like GPT-4o handle various formats reasonably well, weaker models like GPT-3.5 are significantly more sensitive, often struggling with code-based logic but performing better with flowcharts.
- Domain-Specific Requirements: In expertise-heavy domains like RPA or Logistics, agents without explicit workflows performed poorly. While they could rely on internal training data for general customer service, they could not accurately predict specific business logic without external guidance.
Quantitative results show that even with the optimal Flowchart format, GPT-4o achieved only a 42.7% success rate in single-scenario tasks and 40.1% in cross-scenario tasks. The primary failure mode was not simply selecting the wrong tool, but rather "Tool Usage" errors—failing to collect necessary parameters or invoking the correct tool at the inappropriate time.
Conclusion
FlowBench provides a necessary "reality check" for the development of LLM-based agents. While providing structured manuals significantly reduces hallucinations and improves tool invocation accuracy (by 6-9% using flowcharts), even the most advanced models struggle with the precision required for professional workflows. Future work will focus on reducing the cost of evaluation and automating the extraction of high-quality workflows from unstructured sources.
Summary updated