Hey, long time lurker, first time poster so be kind ^_^. Really enjoying playing more and more with n8n. I am working on a process where I am building out a chatbot with AI.
The string will increase over the conversation with the questions and answers being included and we are capped by the limits of prompt, what I want to be able to do is to measure the number of characters (I have found a useful post with that solution!) and if over a certain number then return the string with say the last 1500 characters only so it will exclude the characters at the start of the string.
Is there any way to do this with n8n? Any tips or assistance to point me in the right direction would be much appreciated!