Hi everyone,
I’m working on a Make scenario that uses the OpenAI ChatGPT module to generate 30 LinkedIn post hooks (one per line). The model returns the hooks as plain text, each on a new line (no numbering or formatting), like this:
Hook 1
Hook 2
Hook 3
…
Hook 30
I need to split this output so that each individual hook can be processed separately in the next module (e.g., Airtable Create a Record — one row per hook).
What’s the best way to split this text into an array of 30 items, one per line, so I can iterate over them? I’ve tried using the Iterator module with a split
function, but I’m not sure how to format it correctly.
Any help or example setups would be really appreciated!
Thanks in advance
PS: here is the formula I used: split(trim({{5.choices.message.content}}); “\n”)