Learn how to build a real-time chat in Bubble with clear steps, tips, and tools to create a smooth, scalable messaging experience.

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.
The simplest valid way to build chat in Bubble is to create a Conversation data type that stores the list of Users, and a Message data type that stores the text, sender, and the conversation it belongs to. Then on the page, you display a repeating group of Messages filtered by the selected Conversation, and you create new Messages through a workflow when the user sends text. This structure works for 1‑to‑1 and group chat, supports privacy rules, and scales much better than trying to store messages inside a list field.
You need two main data types:
This keeps Messages as separate things so Bubble can load them progressively, which is important for chat performance.
When the user clicks Send:
On Message and Conversation, create a rule:
This ensures only participants can load each other’s messages.
Use the repeating group property Scroll to bottom (with a workflow action Scroll to entry: last item) after a message is created so the user always sees the newest messages.
// Example workflow comment (not code executed in Bubble):
// After creating a Message → Scroll to repeating group's last item
Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.
Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!
Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.
Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.
Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.
Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.
Fix broken workflows | Optimize logic | Boost performance | Scale with confidence