I am building an app that provides a consistent response from openAI. The response has multiple pieces of text I’d like to have separated inside of a thing in my database, for instance, a title for the response, and then the body of the response. The OpenAI part is all working properly, I’m getting the responses back with a | as the delimiter between the title and the body, but I don’t know how to use bubble to actually say “Everything before the | should be the “Title” field in my response object, and everything after the | should be the “Body” field in the response object.” Any input on how to achieve this would be greatly appreciated!
Hi there, @plduwelius… if I understand your post correctly, you should be able to use the :split by operator (with the character to splitting being a |, of course) to do what you described. You would use the first item in the split for the title and the last item for the body, and you should be good to go.
Hope this helps.
Best…
Mike
1 Like
Thank you! After looking up how to use the Split By operator it was perfect for what I needed! Thank you so much.
1 Like