I’ve built a working scenario that does the following:
- Reads values from column A (range A2:A99) in a sheet called
"CITIES + KEYWORDS"
. - Aggregates the values into an array.
- Sends that array to OpenAI to generate 10 SEO product names.
- Parses the result JSON.
- Adds the generated names to column A of another sheet called
"CITIES + PRODUCT NAMES"
.
Now I want to loop this process through all columns (B, C, D, etc.) — so that it runs the same logic for each city column automatically without having to duplicate my scenario.
How can I dynamically read each column one by one, and write back to the corresponding column in the second sheet?
Thanks a lot in advance!