Agent via No-Code Builder
Loops
Rerun a part of the flow multiple times
Use loops when you need to rerun a node or part of the flow multiple times.
The above example shows a simple agent that would identify the landmark in the given image and return the current weather of that location. The flow that occurs is as follows:
- The
Prompt
node gets the initial image as an input and runs the LLM to identify the landmark. - The
getWeather
tool is called with the location of the landmark as input. - The output of the
getWeather
tool is connected back to thePrompt
node. - The
Prompt
node runs again with the updated context and returns an assistant message to move the agent forward. - The
Final output
node gets executed and the agent completes its execution.