Learn Bubble with 500+ tutorials, courses & AI Assistant ✨

Limited time launch offer get $80 off today

0 days 0 hours 0 minutes 0 seconds
SAVE $80 NOW
Planet No Code logo
Bubble.io CoachingFounder MentoringSponsorships
LoginLearn Bubble.io

How to build a chat app with Bubble.io Part 3

In this Bubble tutorial we explain how to build a chat app with Bubble between your Bubble app users. This third video in a 3 part series completes this mini series demonstrating how to build your own chat app by showing the workflows required to send messages between users in Bubble.

Join now $19/monthLearn more
Get 500+ tutorials, a No-Code AI Assistant, 4 premium courses, and everything you need to build faster!
How to build a chat app with Bubble.io Part 3
Explore these topics...
Design
Buttons
Workflow
Popup
Database
Search box

With just this tutorial learn...

Create a chat app in minutes: Learn how to build a fully functional chat app with Bubble's no-code platform.

Master Bubble workflows: Discover the power of workflows to create dynamic conversations and real-time messaging.

Unlock the secrets of privacy rules and UI design for a seamless chat experience.

With membership you'll...

Learn how to build a ChatGPT Clone, Custom CRM for your business & SaaS Marketing website with Webflow & AI.

Unlock 500+ Bubble tutorial videos with AI powered Q&A.

Debug your Bubble app instantly with our custom trained No Code AI Assistant.

Join now $19/month
Risk-free! 14-day money-back guarantee. Cancel anytime.

Creating a New Conversation

Welcome to part three of this miniseries looking at how to create a chat app with Bubble. This video is only going to make sense if you check out the last two videos, each lesson 10 minutes, but that's where I show how to structure the database, the importance of working privacy rules and getting this really simple UI with both a conversation and a messages column.

Testing the Workflow

So we finished the last video looking at the workflow required. Let's just check back in with that. So create a new message where I give it content, participants, that's important for privacy and conversation that's important for grouping them together. I think we need to test it and then work through the elements that don't work quite so well in it.

Creating a New Chat

So I'm going to just run as one of my demo users. I'm going to get a mainly blank page. So first thing I need to do is a way of creating a new conversation between two users. So let's have a button at the top of my conversation panel. I'll label that new. I'm getting a little bit padding beneath it. Okay and then I need a pop-up and I'm going to make this a search box.

Setting Up the Search Function

Okay and the search is going to search for users who to create a new chat with and then this needs a button. Okay so do a search for dynamic choices and define the options as user and then I want to search by first name. If we have a look at my database I'm going to be trying to search for Nigel and creating a new conversation with Nigel. So then I don't want it to be empty. Cool that's good.

Configuring Privacy Settings

Let's check my privacy settings for users because I want to be able to search for Nigel. So I need to say that everyone can do a search for users by first name. I think that will work.

Creating the Conversation Workflow

Okay start conversation. So first up let's we need to create a new conversation and the participants are going to be... okay I need to add both myself and Nigel. So I'm not working with a list so I think I'll just have to do it in two steps of the workflow. So participants add search box values. That would be the Nigel value and I don't have another field for conversation.

Adding Participants to the Conversation

Okay so then I just... let's add another step just because I don't have a list ready. I am making a list on the fly so it's not create a new thing. It is make changes to a thing. Step two and then participants add myself current user. So I add in the other user I add in myself and then I need to hide my pop-up. I need to show my pop-up.

Testing the Chat Functionality

Let's test it. So I'm signed in as Matt, myself, everything's empty. Create new. Nigel. Okay start conversation. Okay there is my conversation with Nigel. Let's create a message. Okay and it comes through. I'm just going to give all of these things some borders because otherwise it is not very easy to see what's going on. Okay my conversations and my message to Nigel.

Adding Another Test User

Let's create another test user. Let's go with Charlotte. Okay because then we can check to see whether my workflows around changing conversations works. So let's create a new conversation with Charlotte. Okay and if I click on Charlotte it goes empty and I can say hi Charlotte. Okay and then there's my message and if I click on Nigel it goes back to Nigel's conversation.

Testing with Multiple Users

So let's test this also as another user. So this time I'm going to sign in as Charlotte. Now Charlotte should see that Matt has initiated the conversation and that the message is hi Charlotte. So I will send one back saying hi Matt and then if I sign in as my Matt demo and then go on to Charlotte I get my next message hi Matt.

Improving Conversation Ordering

Okay so there's something that I want to improve here which is that Charlotte's conversation has received the message most recently but it's appearing behind below Nigel. So what can I do about that? So I could use database triggers but in order to use database triggers I need to be on a paid plan.

Adding a Last Updated Field

So the database trigger would mean that when a new message is created I update a field in conversation. I need to make that field regardless. So this can be last updated and it could be a date. Okay but I'm not going to use database triggers because this demo app is on a free plan and I don't get access to database triggers with a free plan.

Updating the Last Updated Field

So what I can do instead is that when I create a message I'm going to add in another thing, another workflow step of data make changes to thing. Parent groups conversation, date, last updated, current time of date and then if I go back to the conversation here I can say order by last updated descending order.

Testing the Updated Ordering

Okay none of my messages so far I've got a prompted that field to be created so let's just run it again. So let's go hi Charlotte okay and you'll see Charlotte has gone to the top there. Let's try and give it Nigel. What's the weather like? Very British and Nigel goes to the top.

Future Improvements

So there we have it this is very simple there are actually I could continue this series which I might well do in the future of other things to cover with when it comes to a chat app. For example what's going to happen when these chat bubbles reach all the way to the bottom I want to be able to scroll. There's also a common frustration in the Bubble community of chat apps you want the repeating group to be reversed because you want the bottom to load first and then to be able to scroll up into past posts.

Conclusion

Those are all topics for other videos. Another one being group messages but this is the bedrock the foundation for building a chat app in Bubble and in the future I might well come I may well come back to this and add to it in order to flesh out and make it work a lot better with some of those features I just mentioned.

Table of contents

Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Your No-Code Journey Starts Here

The best way to learn Bubble.io?

Build No Code Confidently

No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.

Find every solution in one place

No more searching across platforms for tutorials. Our bundle has everything you need, with 500+ videos covering every feature and technique.

Dive deep into every detail

Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.

Monthly
Yearly
Member
Accelerate your Bubble app to launch
$99 / month
$19/month/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now
Member
Accelerate your Bubble app to launch
$990 / year
$149/year/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now

Frequently Asked Questions

Find answers to common questions about our courses, tutorials & content.

Do I need any coding experience?

No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.

How does the AI No-Code Coach work?

Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.

How long can I access the content?

As long as you’re subscribed! With our monthly subscription, you get unlimited access to all 500+ videos, our growing course library, and the AI No-Code Coach.

What courses are included

Your subscription includes:

  • Bubble Beginner Essentials – Get up and running fast.
  • Build a ChatGPT Clone – Integrate AI into your no-code apps.
  • Build Your SaaS Website with AI – Learn to create a scalable startup site.
  • Develop a Custom CRM App in Bubble - Learn database relationships with a CRM.

Plus, new tutorials every week!

What if I get stuck on a lesson?

The AI No-Code Coach is your first stop for instant answers. If you need deeper help, you can book 1:1 Bubble coaching for expert guidance.

Do you offer a money-back guarantee?

Yes! If you don’t see real progress within 14 days, let us know, and we’ll issue a full refund—no questions asked.

Can I cancel anytime?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

What if I want more than just tutorials & courses?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

If you’re serious about building a successful SaaS startup, check out Mastery—our intensive mentorship program. Mastery goes beyond Bubble.io development and includes:

  1. 1:1 mentorship to fast-track your progress
  2. Marketing strategies tailored for no-code founders‍
  3. Product management insights to scale your startup‍
  4. Personalized support from experienced founders

‍

Still have questions?

Reach out to our dedicated team.

Contact
Services
Search Bubble TutorialsBubble.io CoursesBook Bubble.io CoachingApply for Mastery
Latest Bubble tutorials
Rerank Text By MEANING With Cohere In Bubble.io Step by Step!
Unlock RAG Providers for NO CODE AI App Development TODAY!
Better Tables with Built-in Search and Sort By in Bubble.io
Partnerships
Flusk.eu
VectorShift
Comnoco
Plumb
Toddle
Whereby
Get started with no code
AI Powered No Code AppsNo Code Web ScrapingBubble.io Plugin tutorialsBubble API Connector tutorialsStudent & Teacher DiscountBest tools for no coders
Follow us
Youtube
X
LinkedIn
Planet No Code logo
In partnership with
Queen Mary University of London Logo
© 2024 Planet No Code. All rights reserved.
Privacy PolicyTerms of ServiceCookies SettingsContact Us