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?