Why is my LLM node running continuously?

Describe the problem/error/question

I am not sure but why is my anthropic node running continuously?

Below you can see I am pulling 803 rows. I clean up the rows to lower the tokens and then I pass it to my Basic LLM Chain to do 1 call to anthropic to analyze my sheet. I add the previous input using the {{ $input.all() }} using Define Below option, then I add a system and user prompt. However, I see this run 10 times like here and before it ran like 45 times.

What is the error message (if any)?

My node is running continously

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

hi - what is your prompt in the LLM.
I have just tried this and as you can see it runs all once for each row (17 rows all the way), i did a simple check if the column is a string or number, and I have output this value out for you too for further processing. You have to map your JSON in the structured output parser.
Ensure your prompt has the right logic, I am sharing this with you too.


One question here:

Do you want LLM to run once or 803 times

If you only want to run once

Here is the example

You can use aggregate to make multiple items into one.

And in LLM user prompt use

{{ $json.holder_name.join() }}

To join the array. or toJsonString()