ReAct Agent Max Iterations

Is it possible to limit the number of iterations in the ReAct Agent node like I can do in the Tools Agent with the Max Iterations parameter?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Ranni,

Welcome to the community :tada:

Tip for sharing your workflow in the forum

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!


That’s not a possible option in ReAct Agent. What are you building with the ReAct Agent if I may ask? In general, we recommend using the Tools Agent for most use-cases, do you think you can use the Tools Agent instead for whatever you’re building?

Hi! Fortunately, this is an option in LangChain, so I’ve made a fork of n8n and added this parameter.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.