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

Bubble & ChatGPT - Chatbot opening message

In this Bubble.io tutorial we demonstrate how to create a Pie Chart in Bubble using ApexCharts by Thimo.

Join now $19/monthLearn more
Get 500+ tutorials, a No-Code AI Assistant, 4 premium courses, and everything you need to build faster!
Bubble & ChatGPT - Chatbot opening message
Explore these topics...
Workflow
Database
Design
Plugins

With just this tutorial learn...

Unlock ChatGPT's full potential: Learn how to insert an opening message without affecting the AI conversation!

Master Bubble workflows: Discover the secret to adding a welcome message to your ChatGPT clone without sending it to OpenAI.

Elevate your chat bot UX: Create a seamless user experience with custom events and custom states in your Bubble app.

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.

Adding an Opening Message to Your Chatbot

We've received this question multiple times since releasing our Bubble and ChatGPT videos. And that is on the topic of how can I insert an opening question or an opening statement into the chat conversation without that actually being part of what's sent to ChatGPT. For example, a welcome message from the AI bot I'm creating asking the user to ask it a question. Now, we've received this question multiple times in the comments and via email. So please do leave a comment, like and subscribe. We read through every comment and we reply it to them in as much detail as we can. But let's move on. How do we add in an opening message into our chatbot?

Reviewing the Existing Chatbot Setup

So I'm gonna go back and just examine what I did to create this chatbot, which is we have a send button, which creates a message. This is the message that the user inputs. We create both a JSON version and a text human readable version. We reset our multi-site input. We send all of our messages so that we have that historical conversational awareness. And then we create a new message. And this is the response that OpenAI gives us. I've also got a simple way of navigating through conversations that's done by clicking here and displaying my conversation data into a group. I also have a mechanism in place so that when the page loads, if the conversation count is zero, it creates a new conversation. And if the conversation count is not zero, then the conversation shown is the repeating groups first item, so the first conversation in the repeating group.

Creating a Custom Event for the Opening Message

So when the page loads, let's say I'm on this one here. When the page loads, we go back to what is the capital of France. And it's important to explain that because of what I'm gonna demonstrate next, which is how we insert that opening message. So I'm gonna create a custom event because I want this to happen on two occasions, both page loads and conversations empty and when a new conversation is created. So I'm gonna say this is gonna be, I call it send first message from bot to user. And this is going to be create a new thing, create a message.

Setting Up the Custom Event

I'm gonna check in here how I'm, okay, so my message has a field called conversation. So I need to pass in conversation into my custom event here. Spell that correctly. So we create a new message and don't actually need to fill in the JSON because we're not gonna send this open to OpenAI. This is purely a UI message for our users. It's not ever gonna be sent to OpenAI. And so we can say that the conversation is the conversation we feed into the custom event. And then the text is going to be, hello, my name is Frank. I'm a chatbot. I'm gonna also add a field in here, which is going to be, do I do it in the negative or the positive? I'll do it in the positive just so it's clear. I'll say send to OpenAI. And this is going to be a yes/no field. And I'm gonna say no to this because I don't want this message to be sent to OpenAI because I'm pretending that it is being sent by the chatbot.

Updating the Workflow

So yeah, that's good. I then need to update here where I send my messages to OpenAI. It looks like I missed this off the original video. I need to set the conversation to be parent group's conversation. Otherwise it's sending all the messages. Whoops. But I need to add another constraint here, which is to only send the messages where it sends OpenAI equals yes. And then I need to add in that here. Tend to OpenAI equals yes because that's all the messages my user inputs. And then so that OpenAI is aware of what it said, this also needs to be yes.

Testing the Implementation

Right, to demonstrate this, I'm gonna clear out all of the conversations I've got. And clear out all the messages. Okay, let's see how this goes. So I'll just refresh that again. On page load. Ah, I've not triggered the workflow. I've not triggered my custom event. So my custom event is triggered here. And the conversation is the result of step one. Remember, this is what happens if the page loads and I have no conversations accessible to this user. So it creates a new conversation and then it's going to run the sends first message from bot to user. I also need to add that into new conversations clicked. Trigger a custom event. Again, results of step one. Right, let's try that.

Debugging the Implementation

Okay, I'm going to debug that. I do like making these videos nice and rough. So on page load, we find that conversations is zero. And so we display, conversation count is zero. Why is count not zero? Count is one. I think. Ah, okay, I've got an issue here, which is that my conversations, my conversation label is my messages first text. So I'm going to say here that the, when current search for current messages, first item is is empty. Text is, I'll just call this conversation placeholder. Gonna check that it's all empty. Yeah, right, let's load it again.

Finalizing the Implementation

Okay, there we go. So it has added in that, hello, my name is Frank, I'm a chatbot. And now I'm going to reply back saying, what is the capital of the USA? So what should be happening is from OpenAI's perspective, our conversation is only this long. It's not including the hello, my name is Frank, I'm a chatbot. So I'm gonna start a new conversation. And there you go, we start off once more with, hello, my name is Frank, I'm a chatbot. Now to correct what I've done down this left hand side by way of prompting and guiding my users into what the chat was actually about, I'm gonna change this to item two is empty. And I'm gonna change this to item two's text.

Conclusion and Additional Resources

Okay, so there we go. We now have it showing the second message in the conversation from the Bubble's app perspective, which is here, but this is from OpenAI's perspective, the first message and the second message and so on. So I hope that goes to show some way of expanding upon the previous tutorial for a Bubble integration in with OpenAI's ChatGPT, GPT 3.5 Turbo. And this is just one way of going about it. And I wanted to go for a way which had the opening message still actually becomes part of the repeating group that shows all the messages. So that's not a reasoning behind it. If you're unsure of anything uncovered here, do check the previous video where we go through basically building this whole app out in under 30 minutes. Yeah, if you have any questions, leave them in the comments. If you need one-to-one help, you can put Bubble coaching through our website. If you like our videos, you can go to our website where we've got videos that are exclusive to members. You can't find them on YouTube, but they will teach you how to build a Bubble app and many things about Bubble.

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