Is it possible to separate text aggregator outputs with a new line?

Hey guys,

I’m trying to format “memory” from my backend so that it is ready to inject into an ai prompt. It’s important that the most recent chat logs are pulled and separated with a new line, for example:

User: question
Assistant: answer

User: question
Assistant: answer

Etc…

However, I am having great trouble formatting the 6 bundles given to me from my backend function into one single output that is seperated by a new line. I have tried the “Other” button in the separator input inside the aggregator, but this just gives back raw text so things like \n\n do not work. As far as I can see, it is only possible to separate by a tab, but this is not good enough.

Does anyone know how I can separate with new lines in the cleanest most concise way? Thank you so much.

I wish I had an answer for you (apologies to you for an unhelpful notification) but I would love to know the answer to this myself, so I’m hoping someone will chime in with a response!

I decided to use a text parser to replace a custom seperator such as ###NEWLINE### with make’s native {{newline}} function. It is an extra module, but it does work. Just make sure you add two {{newline}}. Example in screenshot below. It’s a shame you can’t add dynamic values to the seperator field but hey ho. Hope this helps!

1 Like