Chat GPT Node: Prompting issue when trying to loop

All, i know this is less of a n8n technical questions, but a chat GPT prompting challenge in my chat gpt node that i am facing, but i hope you can help.

What I am trying to achieve is, i want to do a competitor analysis. I have 1 project company, and 3 more companies that i would like to compare to this one project company.

My prompt is: row 2 is always the project company that i want to compare the other companies to. Start by comparing the company in row 3 to the project company in row 2. THen repeat the same for row 4 - etc . The relevant snipped of the prompt is:

Now, the issue is, chat gpt does exaclty this for the first company, it compares acushnet to concert golf (row 3 to row 2), but then it misses to loop. It compares acushnet to concert goflf 3x times, isntead of moving to the next row. What am i doing wrong? (I have tried soooo many variations, and watched prompting tutroials, still hitting a wal - sorry to toruble you with this)

Thanks a bunch!
Felix

All, i am still struggling with this, but i am not getting a lot of traction here. The problem must be with my above explanation, sorry. Allow me to reprhase my problem:

I am giving openai a tool / worksheet and ask it to analyse each of the rows in the worksheet. It should start with row one, and once the analysis is compete, go to the next row and do the same , i.e. loop the task on rows. Now, openai executes the task correctly on the first row, but for the following rows it duplicates the result from the first row (see screenshot). I was wondering, if this is related to me not giving the ai agent memory? But i am having torubles hooking up memory to a previous node, if the ai agent doesnt use a previous node in its task execution. Or could the problem be how i wrote my prompt?

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