Skip to content

Sequential Task Agent

The Sequential Task Agent component combines an AI agent and the task it does into a single component, for a Sequential Crew. It is equivalent to using a CrewAI Agent and a Sequential Task together, and keeps the canvas tidier when each agent only does one task.

When to use it

  • Build a chain of steps where each step has its own specialist.
  • Simplify an ordered team with few agents and one task per agent.
  • Quickly add a new step, for example a final reviewer, to an existing chain.

Configuration

Agent fields:

FieldWhat it does
RoleThe agent’s role, for example “Contract reviewer”.
GoalWhat the agent tries to achieve.
BackstoryThe agent’s background: experience, way of working, tone.

Task fields:

FieldWhat it does
Task DescriptionWhat has to be done in this step, with all the detail needed.
Expected Task OutputWhat the result should look like.

The text fields accept a connection, so they can come from another component.

ConnectionWhat to connect
ModelAn AI model component, which does the agent’s thinking.
ToolsThe tools the agent can use. You can connect several.
Previous TaskThe previous step in the chain. Leave it empty on the first step.

Advanced options

FieldWhat it does
MemoryThe agent remembers what has happened during the team’s work. Default: on.
VerboseKeeps a more detailed record of what the agent does. Default: on.
Allow DelegationLets the agent hand part of its work to other agents in the team. Default: off.
Allow Code ExecutionLets the agent run code. Default: off. Leave it off unless you need it.
Async ExecutionLets the next step start without waiting for this one to finish. Default: off. Leave it off if the next step needs this result.
Agent kwargsAdditional agent settings as name-value pairs. Usually left empty.

Output

Sequential Task: this step together with the previous ones in the chain. Connect it to Previous Task of the next step, to the Task input of a Sequential Task or, if it is the last one, to the Tasks input of a Sequential Crew.

Example

A law firm reviews rental contracts. It chains two steps: the first, with Role “Legal analyst”, has the task of flagging the risky clauses in the contract it receives; the second, with Role “Writer”, has the task of writing a summary for the client, with its Previous Task connected to the first. The second step is connected to the Sequential Crew.