Product guides
Workflow
🔄 Loop Node

Loop Node on MindPal Multi-Agent Workflow

The Loop Node is a powerful feature in MindPal Multi-Agent Workflow that allows you to iterate a single agent over a list of items. This node is particularly useful when you need to perform a repetitive task on multiple items, such as writing LinkedIn posts for a list of ideas.

Configuring the Loop Node

To set up a Loop Node, you'll need to configure three essential components:

  • The List: Specify the list of items you want the agent to work on. You can mention a variable, such as a human input or the result of a previous step, using the @ or # syntax. Don't worry about formatting the list programmatically; simply enter a string, and the system will convert it into a list for you.
  • The Agent: Choose the agent that will perform the task on each item in the list.
  • The Instruction: Provide the instruction for the agent to work with each item in the list.

Example Use Case

Suppose you have a workflow that brainstorms a list of ideas, and you want to write a LinkedIn post for each idea. You can use a Loop Node to achieve this:

  1. Configure the Loop Node to use the list of ideas generated by the brainstorming agent.
  2. Choose an agent that can write LinkedIn posts.
  3. Provide an instruction for the agent to write a post for each idea in the list, using the @ or # syntax to reference the needed variable.

Benefits of the Loop Node

The Loop Node offers several benefits, including:

  • Efficient processing: Iterate a single agent over multiple items, reducing the need for repetitive tasks.
  • Flexibility: Use the Loop Node to process lists of varying lengths and complexities.
  • Simplified workflow: Streamline your workflow by using a single Loop Node to perform a repetitive task, rather than creating multiple nodes for each item.

By mastering the Loop Node, you can create efficient and effective workflows that automate repetitive tasks and drive business value.