Executing Complex Tasks with One Sentence
Background
In a work environment, we often need to understand our supervisor's intentions from a single sentence, break it down into work tasks, and execute them step by step. This document demonstrates how to process complex tasks with a single sentence in Magic.
Case Introduction
The Magic Project Assistant is designed for enterprise management, helping managers complete project management tasks. It handles tedious project follow-up tasks, allowing project managers to focus on core business matters.
Implementation Method:
Thinking Agent (DeepSeek): Outputs task execution plans.
Task Breakdown Agent (GPT4o): Responsible for breaking down task steps.
Task Execution Agent (GPT4o): Executes tasks according to the steps.
Implementation Steps
- Building the main process:
- Use DeepSeek-R1 model to understand and think about user intentions
- Use the intent node to determine whether to follow task breakdown or task execution
- Describe the tools needed and their capabilities
- Build a task breakdown process to break down steps and tasks according to the inferred user intentions
- Create a task breakdown flow
- Choose GPT4o as the model for task breakdown
- Build a task execution process and load the appropriate tools
- Create a task execution flow
- Load the tools needed for task execution
- Observe and verify the results