Automatically improve your prompts

Bolt can help you write better prompts. Good prompting is the key to successful building with AI. This is available on both the Bolt homepage when creating a new project, and in existing projects.

  1. Write your prompt in the prompt box.
  2. Click Enhance prompt Star icon. Bolt generates a recommended prompt, which you can then edit.

Change the AI mode

When talking with the AI in your project, you can switch between two modes:

  • Build Mode: the AI takes your prompt and makes changes to your files immediately.
  • Discussion Mode: talk with the AI, without it making changes. This is useful if you want to discuss ideas, plan work, or troubleshoot, without using a large amount of tokens. Refer to Discussion mode for more information on this feature.

To switch between modes: in the Bolt prompt box in your project, click Toggle Chat icons used as button to toggle between build mode and discussion mode to toggle between Discussion Mode and Build Mode.

Upload files

You can give Bolt extra information by uploading files. You can do this when creating a new project on the Bolt homepage, or in an existing project in your chat.

For example, you can:

  • Add an image as an example of the look and feel you want.
  • Work on defining your product features with your team in a separate document, then upload it to Bolt.

Click Upload files Upload file icon, then select the files you want to upload.

Guide Bolt’s focus

You’ll get more accurate results if you’re explicit about what Bolt should and shouldn’t change. This is part of Prompting effectively.

Limit Bolt to specific files:

  1. Right-click the files you want to focus on in the Bolt Code editor.
  2. Select Target file.

Exclude specific files:

  1. Right-click the files you want to exclude in the Bolt Code editor.
  2. Select Lock file.

Focus on a code section:

  1. Highlight the code you want to discuss or change.
  2. Click the Ask Bolt button (if the button doesn’t appear immediately, try right-clicking). Bolt links the selection in the prompt box.
  3. Enter your question or request.