Text Splitter Issue
Status: Closed · Asked by Londonil Indian Dosai on · 0 views

The above is text, and I need to get the result only as "International Conference on Artificial Intelligence and Education 2024" as the output. Meaning I want only the first line of all the texts to be the caption.
I tried \n, but no luck in text splitter.
Hey @theliduk
It appears that the "message" fields have a different response in every form. Kindly let us know if you can make some changes in your form so that the response is in the same format every time. For eg. the last response can be parsed using "–" instead of "\n"

As a work around, you can use two action steps available.
- Code by Pabbly - You can use a JS code to extract the desired text out of the response and map it in the further steps.
- OpenAI (ChatGPT) - You can prompt ChatGPT to extract the first phrase of every message accordingly.
Let us know if any of these work for you.