AutoFlowgen: A Multi-Agent Framework for Automated Generation of Workflows from Natural Language
Agentic Workflows are an important application form of Large Language Models (LLMs), but automatically generating executable Agentic Workflows from natural language descriptions is a significant challenge. Directly prompting LLMs to generate complex, logically sound, and executable workflows is often ineffective due to the complexities of task decomposition, node selection, parameter configuration, and inter-node dependency management. To address these challenges, we propose AutoFlowGen, a multi-agent framework that decomposes the workflow generation task into distinct stages: requirements analysis, structural planning, sketch drafting, code generation, and reflective optimization. Each stage is managed by specialized agents, which collaborate to enhance the quality and reliability of the generated workflows. Furthermore, to rigorously evaluate the performance of automated workflow generation systems, we introduce FinQA-Workflow, a novel benchmark dataset. This dataset follows an end-to-end evaluation philosophy and is specifically designed to test the quality of generated workflows in solving complex tasks, comprising 2000 question-answer pairs from the financial domain. Extensive experiments on FinQA-Workflow demonstrate that AutoFlowGen significantly improves the accuracy of workflows generated for solving complex financial problems, achieving an average accuracy improvement of 3.46% and up to 6.13% for specific models compared to direct prompting methods with various LLMs.
Authors
- Zichen Tang (ORCID: https://orcid.org/0000-0003-1667-1661)
- Zheng Quan (ORCID: https://orcid.org/0000-0002-3256-4199)
- Zhongjun Yang (ORCID: https://orcid.org/0000-0001-5549-937X)
- E Haihong (ORCID: https://orcid.org/0000-0003-2087-586X)
- Yang Liu (ORCID: https://orcid.org/0000-0001-9814-638X)
- Jiacheng Liu (ORCID: https://orcid.org/0000-0003-0378-2311)
Institutions
- Beijing University of Posts and Telecommunications (CN)
Publication Details
- Published
- 2025-06-20
- DOI
- https://doi.org/10.1109/caibda65784.2025.11182955
- Primary Topic
- Business Process Modeling and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00