Splitting a text into separate items

Hi all,

I am looking for a way to split a text into separe items. The text is has different paragraphs, and I want every paragraph to be a separate item. The text can have multiple paragraphs, or just only one. The final goal is to instead sending a whole text via whatsapp (final node), to have it cut up in separate messages.

Basically this is the simplified workflow:

I know there are some big brainz in this community, so hopefully one of them knows how to solve this. Thanks so much!!

1 Like

try to use this Expression in a Set node, just after the first with the input

{{ $json["inputText"].split('\.') }}

I’ve use like value of splice a dot, but you can choose what you prefer.
Below the 2 nodes in n8n


Thanks Gabriele!!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.