Skip to Content
DocsGuidesStudio FeaturesWorkflow Canvas

Workflow Canvas

The canvas is where you design multi-agent workflows. Each node is an AG2 agent or supporting element; edges define who talks to whom.

Adding nodes

Click + in the top left to open the node palette. Drag a node onto the canvas or click to place it.

Basic nodes

NodePurpose
InitializerEntry point and global config (sample messages, LLM defaults)
AgentGeneric conversable agent with full configuration
UserUserProxyAgent — human interface and code execution
AssistantAssistantAgent — LLM-powered helper
GroupGroupChat container for multiple agents
NoteComment on the canvas (not included in generated code)

Advanced nodes

NodePurpose
CaptainAgent tuned for breaking down complex tasks
Web SurferAgent that browses the web
DeepSeekAssistant preconfigured for DeepSeek models

Workflow canvas with agents

Configuring agents

Click a node to open its property panel on the right. Common settings:

  • Human Input Mode — when the user proxy should pause for human input (ALWAYS, TERMINATE, or NEVER)
  • Max Consecutive Auto Replies — how many back-and-forth turns before stopping
  • System message — instructions that shape agent behavior
  • LLM config — model and inference settings (project-wide defaults can be set in Settings → Models)

Use More Options on a node for advanced AG2 settings such as code execution config, termination messages, and custom functions.

Project layout

A workflow editor has three main areas:

  1. Canvas — nodes and connections
  2. Property panel — selected node or edge settings
  3. Toolbar — add nodes, start chat, view Python code, toggle theme

Switch between light and dark themes from the top right.

Tips

  • Start every workflow with an Initializer node for sample messages and shared LLM config.
  • Use Notes to document intent for collaborators without affecting codegen.
  • Name nodes clearly — names become variable names in the generated Python.

Next: Conversation Patterns

Last updated on