Sequential Task
The Sequential Task component describes one step of the work of a Sequential Crew, the team of AI agents that works in order. You say what has to be done, what result you expect and which agent is in charge. Tasks are chained: each one connects to the previous one, and that sets the order.
When to use it
- Define each step of a fixed process, such as research, write and review.
- Assign each part of a job to a specific specialist agent.
- Add a review step at the end of a chain of tasks.
Configuration
| Field | What it does |
|---|---|
| Description | What has to be done in this step, with all the detail needed. |
| Expected Output | What the result should look like, for example “A paragraph of no more than 100 words”. |
Both fields accept a connection, so you can pass the task, for example, the text that arrives through a Chat Input.
| Connection | What to connect |
|---|---|
| Agent (required) | The CrewAI Agent that does this task. |
| Task | The previous task in the chain. Leave it empty on the first task. |
Output
Task: the task together with the previous ones in the chain. Connect it to the Task input of the next task or, if it is the last one, to the Tasks input of a Sequential Crew.
Example
For its monthly newsletter, a farming cooperative creates two tasks. The first, with the “Researcher” agent, has Description “Summarise this month’s news on olive oil prices”. The second, with the “Writer” agent, has Description “Use that summary to write an article for members” and its Task input connected to the first. The second is connected to the Sequential Crew.