> For the complete documentation index, see [llms.txt](https://docs.riff.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.riff.ai/reference/app-builder/preview.md).

# Preview

Preview shows your app inside the App builder as you build it. Use it to test your work in real time.

Preview is the default tab when you open an app in the App builder. It shows your app as you build it — you can interact with it exactly as your users will, and any change the Riff agent makes appears instantly without you needing to refresh.

## What you see

A full-height frame showing your app in its current state. While it connects you'll see the Riff loading screen briefly. Once ready, the app is fully interactive.

<div data-with-frame="true"><figure><img src="https://4203676568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmj3x7kCuQ8vAs0u0uIPo%2Fuploads%2FYwUZCqoTVqKVGJ1wb5Tu%2Fapp-builder.png?alt=media&amp;token=0b3195bf-9996-4fc4-8bd0-7e2f80fcc6f5" alt="The Preview tab showing your app as you build it, with the chat on the right"><figcaption></figcaption></figure></div>

## How to use it

**Test as a user would.** Click buttons, fill in forms, navigate between pages. If something looks wrong, you've caught it before your users see it.

**Changes appear immediately.** The Riff agent's edits hot-reload into Preview. You don't need to save or refresh — what you see is always current.

## Notes

Preview shows the version you're building, not the one your users see. Changes reach your users when you deploy. See [Deploy](https://docs.riff.ai/reference/app-builder/deploy.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.riff.ai/reference/app-builder/preview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
