Describe the problem/error/question
How can I iterate over multiple models in n8n? For example, I have 4 models and I want to loop through them to get their different responses. I also want to extract the name of each model and save the results (model name + response) into a data table.
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
Hi @karim_shousha,
Are you able to give us more context of what you’re referring to? Are you talking about LLM Models when using an AI Agent?
If yes to my above question, then you could probably use sub-agents with a specialised main orchestrator agent calling sub agents, each using a different model. Since we use a structured parser, you can then just push the results into your data table
thank you for your responce
but i have a proplem that my in put is an image
Hi @karim_shousha,
What is the reason for running so many models? Are you trying to evaluate which is the best one to use?
Under the additional options for the main as well as each of the sub agents, set the passthrough binary image option
Although I think this is enabled by default
hi @Wouter_Nigrini
exactly i want to evaluate all those model
i set the passthrough binary image , but it doesnot fed through the models