LLM outputs JSON, LOOP runs only on the first item

Trying to create a very basic process:

  1. LLM generates multiple text paragraphs, outputs a JSON with each paragraph as a separate element:

{
“document”: [ “parag1”, “parag2”, “parag3” … etc etc ]
}

  1. I then want to process each pargraph separately and iteratively.
  2. However, when setting a batch of ‘1’ in the Loop Over Items settings, the lop runs and processes the first item in the JSON successfully, then goes straight to the DONE branch without processing the other items.

what am I doing wrong? :slight_smile: thanks a lot

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:
1 Like

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