From Intent to Execution: Composing Agentic Workflows with Agent Recommendation
This paper presents an automated framework for composing multi-agent systems that replaces manual planning and agent selection with an LLM-driven workflow featuring a two-stage agent recommender and a critique agent, demonstrating superior recall, robustness, and scalability compared to state-of-the-art approaches.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you want to build a complex machine, like a custom robot that can make you a sandwich, fold your laundry, and water your plants. In the past, to build this robot, you would have to manually hire a chef, a laundry expert, and a gardener, figure out exactly how they should talk to each other, and draw a map of who does what and when. This is slow, tedious, and requires a lot of human effort.
This paper introduces AutoMAS, a system that acts like a super-smart project manager who can automatically build this "robot team" just by listening to your simple request.
Here is how the system works, broken down into simple steps using everyday analogies:
1. The "Master Planner" (The Architect)
First, you tell the system what you want in plain English, like, "I want to book a table at the best Mexican restaurant near me."
The Planner acts like an architect. It doesn't just say "Okay." It breaks your big request down into a list of small, manageable steps (subtasks), such as:
- Find the nearest Mexican restaurants.
- Read reviews to find the best one.
- Call to make a reservation.
Instead of a simple list, the system draws a flowchart (called a Finite State Machine). Think of this as a map with multiple possible routes. If the first restaurant is full, the map knows how to instantly reroute to the second-best option without you having to do anything.
2. The "Recruiter" (The Agent Recommender)
Now the system needs to find the right "workers" (called Agents) to do each step. Imagine you have a massive phone book with thousands of different specialists (some are great at finding restaurants, others at reading reviews, others at making calls).
Finding the right person in a phone book with thousands of entries is hard. The paper's system uses a two-stage hiring process:
- Stage 1: The Fast Scout (Retriever): This is like a quick search engine. It scans the whole phone book and pulls out the top 10 or 20 candidates who might be a good fit. It's fast but might include a few people who aren't perfect.
- Stage 2: The Expert Interviewer (Re-ranker): This is a highly intelligent AI (an LLM) that takes those top candidates and interviews them. It reads their resumes (descriptions) very carefully to see who is actually the best fit for the specific job. This ensures the very top choice is the right one.
3. The "Resume Booster" (Description Enrichment)
Sometimes, a worker's resume is written in a boring way that doesn't match how you ask for help. For example, a worker might say, "I process flight data," but you ask, "I want to book a trip to Paris."
The system has a special trick called Description Enrichment. Before the search even starts, it uses AI to rewrite the workers' resumes by adding examples of what they can do. It turns "I process flight data" into "I process flight data, like booking a trip from New York to San Francisco." This makes it much easier for the "Fast Scout" to find the right person.
4. The "Quality Control Inspector" (The Critique Agent)
Even with a great recruiter, mistakes happen. Maybe the system picks a cheap, fast worker who is actually terrible at the job, or maybe the workers don't fit together well (like a chef who speaks only French and a waiter who speaks only Spanish).
The Critique Agent is like a final quality inspector. It looks at the whole team and the whole plan before the work starts. It asks:
- "Does this team actually fit the user's budget and speed requirements?"
- "Do these workers' outputs match what the next worker needs?"
If the plan looks weak, the Critique Agent sends it back for a redo, ensuring the final team is perfect.
5. The "Human Safety Net" (Human-in-the-Loop)
The system is designed to be mostly automatic, but it knows when to ask for help. If the system gets confused or encounters a situation it can't solve, it can pause and ask a human supervisor for a quick decision, then continue automatically.
What Did They Prove?
The authors tested this system with real data involving thousands of different "tools" and tasks. They found that:
- Their two-stage hiring process (Fast Scout + Expert Interviewer) was much better at finding the right workers than older methods that just looked for keywords.
- Enriching the resumes (adding examples) made the search even more accurate.
- Adding the Quality Control Inspector (Critique) significantly improved the final results, making sure the whole plan worked together smoothly.
In short: This paper describes a system that turns a simple human wish into a fully functional, automated team of digital workers, handling the complex hiring, scheduling, and quality control entirely on its own.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.