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

Explain like I am 5 AI text generator built with Bubble.io using OpenAI

In this Bubble.io tutorial we demonstrate how to use the OpenAI API with Bubble for no-code AI text generation to create a tool that takes text and then explains the content of the text in the language a 5 year old would understand. We show up to succesfully make an API request to OpenAI using the Bubble API Connector and show the returned text on a page using Custom States.

Join now $19/monthLearn more
Get 500+ tutorials, a No-Code AI Assistant, 4 premium courses, and everything you need to build faster!
Explain like I am 5 AI text generator built with Bubble.io using OpenAI
Explore these topics...
Plugins
API Connector
Design
Buttons
Database
Custom States
Workflow
Set state
OpenAI

With just this tutorial learn...

Unlock AI-powered text generation: Learn how to create an "Explain Like I'm 5" tool using OpenAI and Bubble!

Transform complex ideas into simple language: Discover the power of API connectors to build an AI-driven explanation generator.

Master the art of prompt engineering: Create engaging, child-friendly explanations with this step-by-step Bubble tutorial.

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.

Introducing OpenAI and GPT-3 in Bubble.io

With the ChatGPT API just around the corner, I wanted to demonstrate what we can do with what's existing, what's currently available with the OpenAI API using GPT-3. And so I wanted to show you how to create a very simple no-code tool in Bubble that allows you to input some, say, scientific text, unlike string theory, and then return the text as if it is explained to a five-year-old.

Setting Up the API Connector in Bubble

I've got this simple page created here, and I need to go into Plugins, and then the API connector, if I haven't got that already there, I can install it from Add Plugins, it's by Bubble. And then I add a new API, these are just other services that I've demonstrated in the past, so I can put OpenAI in here. And then let's go and have a look at the documentation.

Configuring the OpenAI API

I'm at beta.openai.com/example/default/summarize, and I have to change this C-A-U-R-L, or C-CURL request, into a format that Bubble accepts in the API connector. So I've got some header content here, so content type, and add it as shared headers. And that's application JSON. And then I've got to put the private key in the header, and that, I can see there, has got the label of Authorize, and then bearer, and then my API key.

Setting Up the API Call

So I go into my OpenAI account area, and I create a new secret key, and I will be deleting this as soon as I've recorded the video, so no one's getting any freebies. So I'm going to say, "Bearer," and then pasting my API key in there. Right, and then I start building up my call, so I'm going to say, "Generate text," and what else do I need in here? I can then copy and paste basically everything that's here, not including the quotes, because that's part of data. And I put, my call is a post, because I'm providing information, and then I paste it in here.

Configuring the API Request

So, prompt, I want to make this dynamic so that I can connect up to my multiline input. It's not private. I want to make my request an action so that I can run it in a workflow when a button is pushed. And now, oh, I've not got the URL, so here we go. I just copy this into post.

Testing the API Connection

And then, in order for Bubble to know that my API integration, my API connection works, I have to run it in the panel here before I can access it elsewhere in my app. So, I'm going to put in here, "explain to me like I am 5," and then we can get an idea of formatting. We can see here that new lines are communicated to the OpenAI API using /n. And then, I'm going to copy this piece of text from Wikipedia for string theory. Paste it after. Okay, and let's initialize the call and see what happens.

Analyzing the API Response

Okay, and you can see here that I get a response under choices, and I can view it here. There we go. It's explaining it in a way that, perhaps, again, this is a bit of a gimmick, but perhaps, using tiny particles and tiny rubber bands or strings, it sounds much more in the language that a 5-year-old might use. So, I can hit save, but how do I link this up to the bits of UI that I've got here?

Connecting the API to the User Interface

So, let's go to my button and let's clear out those from a different demo. Now, if I go to plugins, you can see I've got OpenAI generate text. That is a direct reference to the label I've applied here and the name that I've written up here. So, in here... Now, the secret to getting good results from GPT-3 is prompts. I mean, prompts are still very important with ChatGPT, but, yeah, you're not going to get anything if you just provide it... Oh, and anything that you're expecting to get if you just provide GPT-3 with the quote from Wikipedia.

Setting Up the Workflow

So, let me remove that, but I still want it to start with this prompt, "Explain to me like I am 5, then a 2 new lines, and now I can put in my multiline input A, and I need somewhere to save this." So, on this page, I've already set up a custom state on the page called "Response of type text". So, I can go into here and I can... "Element actions", "Set state", and go to my page, "Response", and then I have to save the result of the API call.

Handling the API Response

Where do I find it in here? So, I can check that by going back into plugin, and then going... I can either run the call again, but that will cost me tokens with OpenAI, so I can view the previous call and the results. And I can see that the bit that I want to display on the page is contained in "Choices", and then "Text". That's the value I want to show.

Displaying the Result

So, my workflow, I can get the result of step 1, "Choices". Now, "Choices" Bubble knows to interpret this as a list, because I can instruct OpenAI to return more than one variation, just in case it gives me a choice over which ones to work with. But in this instance, I just want one, so I go with first item, "Text". And then, I need a way of displaying this on the page, so I can go and add in a text label, and then refer to the custom state, "Call response", and then I can click "Preview".

Testing the Final Result

Okay, and then let's test it out. This time, I'm going to use "Quantum Mechanics", sticking with the physics theme, and I'll just take the first sentence, because that's going to prove whether it's working or not. Paste it in. Okay, now I've just noticed that I've kept the same button from a previous video, which was about creating an English to pirate translator, but you can see here, because the prompt is different, I have got some text back that follows the prompt that I gave it, which is "Explain like I'm 5". So it takes that, and OpenAI has generated this piece of text, AI generated text as a response to my prompt of, "Make this scientific language, and let's make it like I am 5", so I can understand it as a 5-year-old.

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