I have been wrestling with a very basic problem, and need some help please.
Basically, I am passing data from 3 agents (Product SKU, Title, Description AI Agents generators) to a set node and then onto a spreadsheet. I need the data to be in the same row.
However the output to the sheet isn’t working, it only pastes in descriptions, and excludes the title and SKU.
In the Set node, you can see that the {{ $json.output }} is the same for all 3 value fields, but the code for all 3 outputs from the agents were all the same…
Glad I helped, but you still have an issue because you didn’t merge as I suggested
You’ve selected “append” method in the merge node, meaning all items are appened resulting in 3 items. Then you’re requesting in the code node the 1st item each time. With 3 items triggering the code node, you’re requesting 3 times the 1st item. Since you have only the title in the 1st item, at the end you’re getting 3 times the Title from the 1st item
Use the “combine” method with “by position” parameter and 3 inputs, each plugged to each agent, and it should work.