AI Agent tool - call n8n workflow gives single output instead of array

Hi, I have AI Agent with an access to the “call n8n workflow” tool. My sub-workflow output gives me multiple items, but inside the main workflow I get only the very first item. What have I been doing wrong ? Is it possible to get multiple items and use them with AI agent ?
I share a much smaller and simpler version of my AI Agent.

Subworkflow output:
[
{
“eventId”:
“094rg6l00uqkdd3tqnop6ssvcu”,
"date ":
“2025-02-26T12:45:00+01:00”
},
{
“eventId”:
“2nnhd76ri74iqj2duvg5kngf2c”,
"date ":
“2025-02-26T16:30:00+01:00”
},
{
“eventId”:
“28kl2dk4c68tvaoogai3muupbu”,
"date ":
“2025-02-26T18:45:00+01:00”
}
]

Main workflow output using “call n8n workflow”:

[

{

“eventId”: “094rg6l00uqkdd3tqnop6ssvcu”,

"date ": “2025-02-26T12:45:00+01:00”

}

]

Thanks for helping.

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:

Try Aggreagting the items. Let me know how it goes

.

:muscle: If my reply answers your question, please remember to mark it as a solution.

1 Like

It looks like you got it right! Thank you

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