I need my OpenAI module to read the news, and select top 3. I’m feeding it JSON that contains fields mapped to the array of those news. It reads only the first Collection in the array and therefore puts in a JSON string only info from 1 Collection.
Instead of an Aggregator and Create JSON, use an Aggregate to JSON module. Create a structure with 3 fields of type text: title, url and summary. You can probably use the jsonlinked you created. Once it receives the result, it will output a json array with N collections containing these 3 fields. Instruct your prompt to receive the JSON array and iterate it.
Remove the Aggregator altogether and use only the json aggregator. Map the fields directly from the RSS module (or Iterator, wherever your values come from).
what happens now: i have multiple operations going on, while I need only one output from openai. I resolved that earlier with adding an aggregator after the RSS feed which allowed me to put everything in one bundle (=> one operation).
although, Aggregator to JSON produces now correct string per RSS feed TU