Skip to content

Run Agents Team

Runs a multi-agent conversation to solve a given task using 1–31 agents. You choose the team organization mode (Cycle, Smart, or Manage), optionally enable summarization, and control limits like maximum messages and execution time. The node returns the chat transcript (as a markdown-formatted string) and an optional concise summary.
Preview

Usage

Use this node when you want multiple agents (created via Create Agent) to collaborate on a task. Connect agent_1 (required) and optionally chain agent_2 through agent_31 in order. Select a team type: Cycle (round-robin), Smart (LLM chooses next speaker), or Manage (conversation managed by an orchestrator). Provide the task, optionally enable summarization, and set limits for message count and timeout. The output includes a formatted transcript and a summary to feed into downstream steps.

Inputs

FieldRequiredTypeDescriptionExample
agent_1TrueAGENTPrimary agent configuration and capabilities. This is the first team member.{'model': 'gpt-4o', 'tools': {'WebSearcher': True, 'Calculator': False}, 'role': 'Research assistant', 'system_prompt': 'You help with web research and synthesis.'}
team_typeTrueSTRINGHow the team coordinates: Cycle (round-robin), Smart (LLM picks next speaker), or Manage (orchestrator manages flow).Smart
taskTrueSTRINGThe task or problem statement the agents should collaboratively solve.Compare the latest AI model benchmarks and recommend the best for document summarization.
summarizeTrueBOOLEANIf true, returns a concise summary of the multi-agent discussion focused on solving the task.True
max_messagesTrueINTMaximum number of messages the team can produce. 0 means no limit.20
max_timeoutTrueINTMaximum execution duration in seconds for the agents team run.300

Outputs

FieldTypeDescriptionExample
messagesSTRINGThe multi-agent conversation transcript as a markdown-formatted string containing all messages.```markdown Agent_1: Proposal A looks promising. Agent_2: I’ll verify with recent data. ```
summarySTRINGA concise summary of the conversation outcome. May be empty if summarization is disabled.Recommendation: Use Model X for document summarization due to superior accuracy and latency.

Important Notes

  • Agents must be connected sequentially: each agent_n becomes available only after agent_(n-1) is set.
  • You can run with a single agent by only providing agent_1.
  • Team types: Cycle (round-robin), Smart (next speaker selected via an LLM), Manage (conversation orchestrated).
  • max_messages = 0 removes the cap on the number of produced messages.
  • The transcript output is wrapped as a markdown-formatted string.
  • Set max_timeout high enough for complex tasks to avoid premature termination.
  • If summarization is disabled, the summary output may be empty or minimal depending on the task.

Troubleshooting

  • Request failed or timed out: Increase max_timeout and try again; ensure the task is appropriately scoped.
  • Non-200 response from the service: Review the error message and adjust inputs (e.g., reduce complexity, change team_type).
  • JSON decoding error: Retry the run; if persistent, simplify the task or reduce max_messages.
  • Empty or unhelpful summary: Enable summarize or refine agent roles/prompts to produce clearer outcomes.
  • Conversation stops early: Increase max_messages or verify that added agents are properly configured and connected in order.

Example Pipelines

Example
Example