Following this walkthrough will use about 120K tokens, which is just under a Bolt free plan’s daily allowance of 150K.
What you’ll need
- A Chrome or Chromium browser (Opera, Brave, Edge, Vivaldi, etc.)
- 10–15 minutes
Part 1: Build your app with your first prompt
You’re about to see Bolt in action for the first time. Follow these steps you’ll have a working app in just a few minutes!- Open Bolt.new in a new tab.
- In the chatbox, paste this :
Build a pet name picker app with dropdowns that allow people to choose animal types (e.g. dog, cat, bird, lizard, etc.) and name categories (e.g. cute, celebrity-puns, movie-inspired, etc.) Allow them to save favorites.
- Click the blue and white arrow to submit.
- Sign in or sign up (Google, GitHub, or email:no credit card required). You won’t see this step if you’re already logged in.
- Wait a couple of minutes while Bolt creates your app.
- Try it out in the Preview window. Pick an animal, pick a category, and get names. (The celebrity puns are our favorite.)
Congrats! You just built your first Bolt web app!
Understanding tokens
Bolt uses large language model (LLM) technology to process your prompts and build your site. You don’t need to know the technical details, but it’s helpful to know that LLMs work on a token system, and Bolt’s free and paid plans are based on them. Think of tokens as a measurement of Bolt’s efforts. Bolt “uses” tokens when it:- reads
- thinks
- builds
Part 2: Turn on token display in chat
Turn on the option to display token usage in chat to help you understand how many tokens your prompts are using.- Click your profile icon in the top right of your screen, then click Settings.
- Click General under the Personal Settings menu.
- Toggle on Display token usage in chat.
- Look above your chatbox to view your remaining tokens. If you know what you started with, you can calculate how many tokens your initial app build required.
In our example, we started with 150K tokens and had 92K remaining after the initial build, meaning we used 58K to build the first version of our Pet Name Picker app.
Part 3: Use Discussion mode to brainstorm and get advice
Now that you’ve built your first web app, let’s try Bolt’s Discussion mode to get ideas for improving it. Discussion mode is great when you’re unsure or shaping a prompt. It works like Build mode but uses about 90% fewer tokens, so it’s the best place to start when you have questions. In the example below, we’ll use Discussion mode to brainstorm a new color scheme for your app.-
In the bottom-left corner of the chatbox, click the plus icon, then click Discussion Mode.
When you’re in Discussion mode, Discussion Mode is highlighted blue in the menu.
-
Ask Bolt for three color scheme ideas that would work well with your app using the following prompt:
I want to change the color scheme to a dark mode theme. Provide three suggested color schemes that would work well with this site.
- Click the blue and white arrow to submit.
-
Copy the name of the color scheme you think you’d like best. In our example, we copied
Deep Night Sky (Blue/Purple Focus)
.
Note that using Discussion mode for this question only used around 1K tokens.
Part 4: Apply your color change
Now that you know what color scheme you’d like to switch to, it’s time to make the change. While we do it, we’ll keep an eye on our token situation.- In the bottom-left corner of the chatbox, click the plus icon, then click Discussion Mode again to switch back to Build mode.
- Enter a prompt in the chatbox that instructs Bolt to change the color scheme you picked in the previous section. For example:
Change the color scheme to Deep Night Sky (Blue/Purple Focus).
- Click the blue arrow icon to submit your prompt.
- Wait for Bolt to finish making changes and your Preview screen to update with your new colors.
- Check your token balance above the chatbox to understand how many tokens you used to make that change.
Part 5: Use version history to restore an automatic backup
No matter how experienced a builder you are, things don’t always go to plan. At some point, you’re going to make changes to your site that you’d like to reverse. In that situation, the easiest fix is to restore to a previous version of your build. To show you how this works, you can restore the site back to the original color scheme by following the steps below:- In the top left of your screen, click the project title, then click Version history.
- Click the bottom option, which opens its preview mode.
- Click Restore this version in the top-right of your screen.
- Click Restore version to confirm.
Did you notice your token remaining balance didn’t change? Restoring your site to a previous version doesn’t use tokens!
Part 6: Publish your project
Follow the steps below to publish your app using Bolt’s built-in hosting:- Click Publish in the top-right corner of your screen.
- Click the second Publish button that appears.
- Wait about a minute for Bolt to deploy your site.
- Click the link that appears in the chat window to open your site in a new browser tab.
Awesome! You just published your Bolt web app!