RG Chat history not rendering properly

Hi everyone,
I’m working on a chatbot app similar to ChatGPT and I’m having a persistent issue with the chat history section (Repeating Group). For some reason, it’s not showing up properly in the preview — sometimes it appears, but most of the time it disappears or acts weird (scrollbars only, blank content, etc).

I already tried using Bubble GPT to help me debug this, but it didn’t solve the issue.

Here’s what I’ve done so far:

  • The RG’s data source is set to a list of Conversations (from the DB).
  • Each cell is supposed to display the session_name of the conversation.
  • I wrapped each cell in a group (Group Wrapper) and set its type to Conversation, with the data source: Current cell's Conversation.
  • I’ve checked privacy rules (they’re all removed).
  • I’ve tested in responsive mode — no improvement.
  • The RG sometimes appears momentarily, but then vanishes when I try to select a chat session.

I’m stuck and would really appreciate any help or ideas to try out.
Let me know if you need screenshots or an editor link.

Thanks a lot in advance!




“Group Chat Session” should be pulling “Current cell conversation”.

It started to pull data but I’m having issues with separating new chats and conversations. When I click on any chat session, it always shows all messages in the data horizontally. I have a custom state selected_conversation for the Group Main Container. I use: Set state - selected_conversation = Current cell’s Conversation.

I would say there’s obviously a problem with your workflow and maybe some kind of condition you have set.

Can you a share a screenshot of all your workflows?
There’s probably something that you are missing

Ok, no problem. I’ve tried numerous ways to solve it. Maybe it’s because I’ve been using custom states to display new messages (user messsages and AI response) in the RG Main Messages?





I will share my Bubble editor privately if someone has time to take a look. This is very urgent for me because I’m almost done. I’m relatively new in Bubble. The main problem is that I can’t separate conversations and I’ve spent hours trying to solve this problem with only minor progress.

send me a private message,
i share my calendly link with you that you can use to schedule a a video call.

Your database structure should be as follows

  1. Data Type called ‘Conversation’ with fields called ‘Participants’ which is a list of Users
  2. Data Type called ‘Message’ with a field called ‘Conversation’ (related to data type called Conversation), field for ‘Content’ (whatever is the text message)

With that simple setup you can find all Conversation any User is part of by constraining on the Participants list. You can find any Message sent by any User by filtering on the ‘Created By’ built in field. You can find ALL Messages in a Conversation by searching Messages and constraining by Conversation.

Then in your Repeating Group, you will have the datasource set to Messages and the Search will be for Messages with a Constraint of ‘Conversation’ is equal to…NOW the equal to part is the selected Conversation, which to make the Chat functionality a Fully Realized feature, you NEED to anticipate use case examples of when you will inevitably need to Show a specific Conversation based on a selection from another area of the app or even an email or phone alert, so our Selected Conversation should be a URL parameter (search the forum for URL parameters, you’ll find enough posts I’ve put up with details on how to understand and use them if you do not already).

So your Message Repeating Group will show from the database all Messages whose conversation is equal to the conversation in the URL parameter.

Then on the left side for list of all conversations you will have repeating group set to data type of Conversation with a search for Conversation with a constraint of ‘Participants’ contains Current User.

Then in that Repeating Group have the elements to show the details.

Then whatever elements you put into the Repeating Group for conversation, when you click you need to set the Conversation, and you do that by running the workflow action of ‘go to page’ and you will go to the same page your chat is on, and add parameter for ‘conversation’ to be equal to the ‘current cells conversation unique ID’.

DO NOT bother to try and create this with Custom States. Use URL Parameters for the selected conversation.

You should be either using the bubble database for storing these or using the API call responses, not both, and which you choose is dependent on the use case of the chat function. If it is chatbot for support, you can just use the API response and perhaps if your use case requires, save to DB at end. If this is chat between people to return to, then store in DB first as soon as AI response is provided, and if saved properly it will immediately appear in the RG for messages after saving to the DB.

There are other more efficient ways to do this, but they are more advanced.

@nemanja.bogdanovic167
i can help you.
pls check DM


@nemanja.bogdanovic167 done pls check