> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rocket.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat with Rocket

> Build and iterate on your app through Rocket.new chat - describe changes in plain language and the AI writes production code.

export const LlmsDirective = () => <blockquote className="llms-directive">
    For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
    For a lightweight markdown version of this page, append .md to the URL.
  </blockquote>;

<LlmsDirective />

Chat is how you build with Rocket. Describe what you want in plain language and Rocket writes the code, updates the live preview, and suggests what to build next. You do not need to know how to code.

## What you can do in chat

* Add new pages, features, or components
* Change layouts, colors, typography, and spacing
* Fix bugs and errors
* Connect integrations like Supabase, Stripe, or Resend
* Ask Rocket to explain or refactor existing code

<Frame caption="Chat interface">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/q2IAjGMuqh78nicx/images/build-docs/editor/chat/web-browser/chat-view-light.webp?fit=max&auto=format&n=q2IAjGMuqh78nicx&q=85&s=3685abea67fb5ff7b21dfcb9c199d0af" alt="Rocket chat interface showing a message thread with live app preview." className="theme-image light-image" width="1440" height="812" data-path="images/build-docs/editor/chat/web-browser/chat-view-light.webp" />

  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/q2IAjGMuqh78nicx/images/build-docs/editor/chat/web-browser/chat-view-dark.webp?fit=max&auto=format&n=q2IAjGMuqh78nicx&q=85&s=d8ce05ebe40244bd40bcbbde4675345c" alt="Rocket chat interface showing a message thread with live app preview." className="theme-image dark-image" width="1440" height="812" data-path="images/build-docs/editor/chat/web-browser/chat-view-dark.webp" />
</Frame>

**Example messages:**

* "Add a pricing page with three tiers: Free, Pro, and Business"
* "Make the hero section taller with a gradient background from blue to purple"
* "Connect the contact form to send emails using Resend"
* "Fix the signup form - the submit button is not responding"
* "Add dark mode support across the whole app"

After each message, Rocket returns the updated code and a live preview. If it detects errors, it fixes them automatically.

<Note>
  For faster, targeted edits on the web, use [slash and @ commands](/build/editor/commands) directly from the chat input.
</Note>

<Divider />

## Attachments

Attach a file to give Rocket a visual reference or content to work with.

<Steps>
  <Step title="Open the attachment picker">
    Click the **+** button at the lower left of the chat input and select **Add files & photos**. You can also drag and drop or paste an image directly.

    <Frame caption="Attachment picker in chat">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/q2IAjGMuqh78nicx/images/build-docs/editor/chat/web-browser/chat-attachment-light.webp?fit=max&auto=format&n=q2IAjGMuqh78nicx&q=85&s=3ec01de18c900be16062950eade32ef8" alt="Chat input with the + button attachment picker open showing Add files & photos option." className="theme-image light-image" width="1440" height="812" data-path="images/build-docs/editor/chat/web-browser/chat-attachment-light.webp" />

      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/q2IAjGMuqh78nicx/images/build-docs/editor/chat/web-browser/chat-attachment-dark.webp?fit=max&auto=format&n=q2IAjGMuqh78nicx&q=85&s=d6d9bb8257f397c398f12f8b9bc11d4e" alt="Chat input with the + button attachment picker open showing Add files & photos option." className="theme-image dark-image" width="1440" height="812" data-path="images/build-docs/editor/chat/web-browser/chat-attachment-dark.webp" />
    </Frame>
  </Step>

  <Step title="Select your file">
    Choose a file from your device. Supported file types: images (`.png`, `.jpg`, `.jpeg`, `.ico`), PDFs, Excel (`.xlsx`), CSVs, and Markdown (`.md`).

    <Note>
      You can attach up to **5 files per message**. Each file must be under **5 MB**.
    </Note>
  </Step>

  <Step title="Add your instruction">
    Tell Rocket what to do with the attachment. Be specific about where and how to use it.
  </Step>
</Steps>

| Attachment        | What to say                                            |
| :---------------- | :----------------------------------------------------- |
| Design screenshot | "Match this layout for the landing page"               |
| Logo image        | "Replace the app logo with this file"                  |
| CSV data          | "Build a product catalog from this spreadsheet"        |
| PDF spec          | "Build the onboarding flow described in this document" |

<Divider />

## Continuing a conversation

Rocket remembers everything in the current task, so you can keep building without repeating context.

<AccordionGroup>
  <Accordion title="Refine the last result">
    Ask Rocket to adjust, expand, or rework its previous output without starting over.

    * "Change the hero background to dark blue instead"
    * "Add a section for customer testimonials below the pricing table"
    * "Make the sidebar collapsible on mobile"
  </Accordion>

  <Accordion title="Change direction mid-task">
    Change course at any point. Rocket adapts while keeping what came before.

    * "Actually, use a single-column layout instead"
    * "Scrap the modal approach - use an inline form instead"
  </Accordion>

  <Accordion title="Reference earlier outputs">
    Point back to something Rocket built earlier in the same task.

    * "Apply the same color scheme you used on the dashboard to this page"
    * "Use the button style from the hero section throughout the app"
  </Accordion>
</AccordionGroup>

<Divider />

## Web vs mobile

<Tabs>
  <Tab title="Web Browser">
    The web browser provides the full experience:

    * [Slash and @ commands](/build/editor/commands) for targeted edits
    * [Visual edit mode](/build/editor/visual-edit) for direct manipulation
    * [Image generation](/build/editor/image-generation) for AI-generated images and SVGs
    * [Preview](/build/editor/preview) for testing on different screen sizes
    * [Version history](/build/editor/versions) with code diff, rollback, labels, and per-version launch
    * [Code tab](/build/editor/code) for browsing and editing files directly
    * Smart suggestions for next steps
    * Full project settings and integrations access
  </Tab>

  <Tab title="Mobile App">
    The mobile app supports core chat features:

    * Send messages and receive responses
    * Attach images and files
    * View generated files
    * Version history with code diff and rollback
    * Smart suggestions

    Smart suggestions work the same way on web and mobile. Rocket recommends what to build or fix next based on your current app state.

    <Frame caption="Chat on mobile">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/q2IAjGMuqh78nicx/images/build-docs/editor/chat/mobile-app/generated-file-preview-rocket-app.webp?fit=max&auto=format&n=q2IAjGMuqh78nicx&q=85&s=31e0375c41b3d47324220fa07df2bb85" alt="Rocket chat interface on mobile." className="theme-mobile-image" width="728" height="1512" data-path="images/build-docs/editor/chat/mobile-app/generated-file-preview-rocket-app.webp" />
    </Frame>

    <Note>
      Commands, visual edit, and advanced project settings are only available in the web browser.
    </Note>
  </Tab>
</Tabs>

<Divider />

## Tips

<AccordionGroup>
  <Accordion title="Be specific">
    Vague messages produce vague results. Name the element, its location, and what you want it to do.

    | Instead of            | Try                                                                                   |
    | :-------------------- | :------------------------------------------------------------------------------------ |
    | "Make it look better" | "Increase the hero section height to 80vh and add a gradient from #1e3a5f to #0f172a" |
    | "Fix the nav"         | "The mobile navigation menu is not closing when a link is tapped"                     |
  </Accordion>

  <Accordion title="One change per message">
    Break complex requests into individual messages. Rocket is more accurate when the scope is focused.
  </Accordion>

  <Accordion title="Name sections and quote text">
    Reference the exact section, component, or file. Quote any text you want changed.

    * "In the hero section, change 'Get started' to 'Launch now'"
    * "In the pricing table, swap the order of Pro and Business columns"
  </Accordion>

  <Accordion title="Use commands for precise edits">
    [Slash and @ commands](/build/editor/commands) are faster and use fewer credits than describing everything from scratch.
  </Accordion>

  <Accordion title="Attach visuals for layout work">
    Screenshots and mockups help Rocket match exactly what you have in mind, especially for layout and design changes.
  </Accordion>
</AccordionGroup>

<Divider />

## What's next?

<CardGroup cols={2}>
  <Card title="Commands" icon="slash" href="/build/editor/commands">
    Use slash and @ commands for precise, targeted edits.
  </Card>

  <Card title="Visual edit" icon="paintbrush" href="/build/editor/visual-edit">
    Click any element to change it directly without writing a prompt.
  </Card>

  <Card title="Generate images" icon="image" href="/build/editor/image-generation">
    Create AI-generated images and SVGs placed directly in your app.
  </Card>

  <Card title="Preview your app" icon="eye" href="/build/editor/preview">
    Test your app on different screen sizes before deploying.
  </Card>

  <Card title="Versions" icon="clock-rotate-left" href="/build/editor/versions">
    Compare, roll back, label, and launch specific versions.
  </Card>

  <Card title="Code tab" icon="code" href="/build/editor/code">
    Browse and edit your project files directly in the code view.
  </Card>

  <Card title="Environment variables" icon="key" href="/build/editor/env-variables">
    Store API keys and secrets your app needs at runtime.
  </Card>

  <Card title="APIs" icon="plug" href="/build/editor/apis">
    Import and attach APIs to your UI elements.
  </Card>
</CardGroup>
