Define crew structure
This step sets up the layout of your Agent Crew. You can create agents from scratch or import them from your existing library. Each agent can be connected to others to establish a hierarchy, where supervisor agents manage task flow and sub-agents handle specific functions.
How to create the agent crew structure
To build the crew structure, you can either create new agents or select existing ones from your ‘Agent Library’. These agents are then arranged on a visual canvas, where you define the execution flow and task delegation by connecting them.
Create a new agent
When you are directed to the ‘Define Crew Structure’ step, a default root agent (main agent) is already present on the canvas. This is the starting node of your Agent Crew. You can rename or reconfigure this agent as needed to match your use case.
To create sub/child agents, click on ‘+Add Agent’ and select ‘Create New’.

A new, unnamed agent box appears on the canvas. At the same time, a sidebar titled ‘Create New Agent’ appears, displaying the following fields:
Agent Name: Enter a name for the agent.
Agent Type: Select the agent type from the dropdown. Currently supports ‘Autonomous’ agent type.
Instructions: Define the instructions you want the agent to follow using natural language prompts. This could include the role, behavior and interaction style of the agent.

Under ‘Agent Tools’, click ‘+Add’ to attach tools. A new window will appear where you can either select from ‘Default Tools’ (prebuilt tools available) or create a new one. Tools you’ve previously created will appear in the 'My Tools' section for future use.

To create a new tool, click the ‘New Tool’ button. This opens a new interface with the following fields:
Name: Enter a name for your tool.
Description: Briefly describe what the tool does.
Inputs: Click ‘+ Add Items’ to define input variables.
Code: Write your custom JavaScript code.
Dependencies: (Optional) Specify any external libraries or dependencies.

Click ‘Save’ to make the tool available under ‘My Tools’.
Under ‘MCP Servers’, click ‘+Add’ to attach an external system via MCP. A new window named ‘MCP Library’ will appear, where previously connected systems will be reflected. To add a new MCP server, click on the ‘New MCP’ button. You’ll be directed to another window wherein you’ve to fill in:
MCP server name
Description
MCP server URL
Headers (optional key-value pairs in
{"key": "value"}
format)


Click ‘Save’ to store the MCP server. It will then appear in the MCP library for future selection.
Click ‘Save’ to confirm and close the sidebar. The agent is now part of the crew structure.
Add an agent from the library
Click on ‘Add Agent’ and select ‘Add from Library’.
A sidebar titled ‘Agent Library’ appears.
Browse or search for agents from existing categories, ‘Autonomous’ and ‘ZBrain Flow’.

Select the desired agent.
Define agent hierarchy
Each agent box has circular connectors on its left and right.
Hover over a connector to display a
+
cursor.Click and drag from one agent’s connector to another’s to define the task flow. Ensure that you arrange the agent box in the hierarchy you require.

Multiple agents can be connected to the same supervisor, depending on task requirements.
How to test your crew setup
Click on the ‘Test Crew’ button at the top.
A sidebar named ‘Test Crew’ opens with a message box.
Enter a test message to simulate a task or query.
Click send to observe how the crew processes the input.

The system displays the outputs generated by the agents, helping you validate the structure.
Use the ‘Previous’ and ‘Next’ buttons at the top to move between steps in the Agent Crew creation process.
Last updated