After an array aggregation in my scenario I have collection ? (array?) like this which I need in one simple text to pass on to OpenAI
Which simple function can I use? Just a simple long text string “From: User, concent: c, timestamp, …” how can I achive this. I tried flatten() even two times but it doesnt work. Documentation is also spotty on these transformations
I think you need to aggregate the parameter into text. So please use Text aggregator with suitable separation(, or space) accordingly with your requirements.
“value”: “[Collection], [Collection]” as input and therefore as output as well. See the structure that comes out of the array module above…
Again, I fell I need to flatten or convert this multi-dimensional array, but I do not know how. This should be a built in function? Even outputting the above JSON like structure would be fine
Simply use an iterator after your array aggregator and map the aggregator’s output to the iterator. Then you will get the operator, content and time stamp as mappable variables.
MISSING: Get this output in some form of PLAIN TEXT to send over to OpenAI e.g. in the simple form “From: user On: Timestmap Content: 1; From …”
Using another iterator after the aggregator just splits up the elements again and would call OpenAI for each Bundle (in this case two times).
Ideally Make would be intelligent enough when I put the array element in the Message Content to turn this into plain text and not “[collection], [collection]”