Create a chatbot using custom state

Hello
I am trying to build a chatbot without saving any data into the database.
So far I have managed to set up the the API call to Open AI and save the communication as a list in a custom state. Here is an example:

{“role”: “user”,“content”:“Hello”}, {“role”: “assistant”, “content”: “Hello! How can I assist you today?”}, {“role”: “user”,“content”:“I am not sure”}, {“role”: “assistant”, “content”: “That’s okay! If you have any questions or topics you’re curious about, feel free to share. We can talk about anything from hobbies and interests to information you might need. Just let me know!”}

So I need help to separate the content from the user and the assistent and transform the list into nice speech bubbles like ChatGPT. Can anyone help me?

This may help…

None of this saves and will hopefully make your life a little easier :wink:

https://paul-testing.bubbleapps.io/version-test/ai_bot

Hi,
Thank you for your help! Your app looks great!
I was hoping to build something on my own, but maybe I will use a plugin instead.
Seems like the AI BOT-plugin only use the models available in Groq. I would like to use GPT 4o-mini for my chatbot. Can you recommend any plugin using Open AI-models?

No probs, there’s a few in the plugin store, just take a look through them and read the description, they’ll explain what they do.