Iterate over items to Open AI

Hey there,

pardon my ignorance but I wanted to check if my method seems right?

I have a batch of excel sheet having like 1500+ items I need to pass through OpenAI, and update each row

at first I didn’t add the loop over items but then realize it try to pass the 1500+ items at once to OpenAI which cause to timeout as it’s too long

my work around is the Loop over items node as per the below

this is my first real use case of N8N so I wanted to see if that the right approach?

Thank you and happy making!

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:

Hi @shvz

Thanks for posting here and welcome to the community! :raised_hands:

If it works, it is the right approach! :stuck_out_tongue:

But in general, the more you can modularize your workflows in order to decrease memory consumption, the better. We also have a pretty handy documentation on best-practices in workflow building here:

Feel free to also check out our workflow templates collection, where you can browse other use cases and workflow ideas.

Happy Building! :blush:

2 Likes

Thank you Ria, indeed if it work do not touch it! :slight_smile:

I will look at those links, thank you very much!

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