Loop Over Items node ends workflow prematurely when processing a single item




I’m having an issue with my Human-in-the-Loop AI editing pipeline in n8n and would appreciate any insights.


Context

The workflow is designed to support human feedback in an AI-assisted editing system:

  • A form submission triggers an AI agent to process a certain set of information.
  • The AI sends the result to Telegram for human feedback.
  • The feedback is received and processed by an EditApplicator agent, which implements the changes.
  • The updated content is sent to a Code node (OutputParser2) that parses it into two values:
    • key: title of the information
    • value: body paragraph (the bulk of the information)

At this point, I want to send the edited info back to Telegram for secondary (or further) human approval.


The Issue

After OutputParser2, I route the data to a Loop Over Items node.
Even when it receives a single item, I expect the node to pass it through as part of the loop.
However, the node sends the edited info to its done branch, and the workflow ends at this step with the message:

“Workflow executed successfully”

No loop iteration occurs, and the item is not forwarded to the Telegram node.


What I’ve Tried

  • Confirmed that OutputParser2 outputs one or more items in proper format (key/value).
  • Attempted to add a Merge node before Loop Over Items to force the loop, but it interfered with how the EditApplicator agent receives its inputs, returning “can’t determine which item to use” for each input (see image #4).
  • When I bypass Loop Over Items, the workflow completes as expected — but I need this node for future support of multiple items.

Question

How can I configure Loop Over Items to reliably process even a single item, rather than immediately exiting through the done output?
Ideally, I’d like a solution that works for both one and multiple edited terms, without introducing issues elsewhere in the flow.

Happy to provide screenshots or node configurations if helpful.

hello @Serira

As far as I can see, that part is wrong

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