BuildShipBBuildShip
Powered by
MichaelM
BuildShip•2y ago•
2 replies
Michael

Michael - Hello! Not sure how to do this. I hav...

Hello! Not sure how to do this. I have a loop on a json list, and each loop iteration generates an image url. How can I add the generated image url as an object key on the original json list?
Screenshot_2024-07-30_at_3.27.51_PM.png
Solution
Hey, in the body of the loop you can save the json in a temporary file and append the new image url field. For this you can use the "Append Array to JSON File" node. Here's a sample workflow thats looping over an array of countries, getting a city for each one using GPT, then using the aforementioned node to append the new field. It then reads the json and returns it. Hopefully this helps: https://buildship.app/remix/a2bd6f42-d22f-4eb9-a54d-062d71d1f7ed
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

cleverbit - Not sure where to ask this, but I w...
cleverbitCcleverbit / 💬・general
2y ago
Savannah - I'm not sure how to use variable, bu...
SavannahSSavannah / 💬・general
2y ago
Jrocks - I'm not sure how to use the Branch nod...
JrocksJJrocks / 💬・general
2y ago
Michael - Hi, everybody
MichaelMMichael / 💬・general
12mo ago