> ## 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.

# From an attachment

> Upload images, PDFs, spreadsheets, or CSVs and Rocket.new builds a working app from your real content.

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 />

<Info>
  **Give Rocket something to work with.** Have a screenshot of an app you like? A product catalog in a spreadsheet? A blog post in Markdown? Upload it and Rocket analyzes the content, then generates an app that uses it.

  Pair it with a description for even better results.
</Info>

<Divider />

## Supported attachments

<Tabs>
  <Tab title="Images">
    | Image type            | How Rocket uses it                              | Best for                                                  |
    | :-------------------- | :---------------------------------------------- | :-------------------------------------------------------- |
    | **UI screenshots**    | Analyzes layout, colors, and component patterns | Building something that looks like an app you saw         |
    | **Design references** | Matches the visual style and design language    | Building from Dribbble, Behance, or Pinterest inspiration |
    | **Mockups**           | Follows the full visual design closely          | Turning static designs into working code                  |

    **Supported formats:** `.png`, `.jpg`, `.jpeg`
  </Tab>

  <Tab title="Files">
    | File type       | How Rocket uses it                          | Best for                                                    |
    | :-------------- | :------------------------------------------ | :---------------------------------------------------------- |
    | **PDF**         | Extracts text, tables, and structure        | Building from briefs, specs, or reports                     |
    | **Excel / CSV** | Reads rows, columns, and data relationships | Building data-driven pages, dashboards, or product listings |
    | **Markdown**    | Parses headings, lists, and content blocks  | Building content pages, blogs, or documentation sites       |

    **Supported file types:** `.pdf`, `.xlsx`, `.csv`, `.md`
  </Tab>
</Tabs>

<Note>
  **Max file size:** 5 MB per attachment. You can attach up to 5 files at a time.
</Note>

<Divider />

## What you can build

<AccordionGroup>
  <Accordion title="Recreate an app you like" icon="copy">
    Screenshot an app and tell Rocket to build something similar with your own content and branding.

    **Try this prompt:**

    ```plaintext wrap theme={null}
    Build an app like this screenshot but for a pet care business. Keep the layout and navigation style but use my brand colors (teal and white).
    ```
  </Accordion>

  <Accordion title="Match a design from Dribbble or Behance" icon="paintbrush">
    Found a design you love? Upload it and Rocket analyzes the UI and builds a matching app.

    **Try this prompt:**

    ```plaintext wrap theme={null}
    Build a landing page that matches this design style. Use the same card layout, gradient backgrounds, and typography hierarchy.
    ```
  </Accordion>

  <Accordion title="Turn a mockup into a working app" icon="window-maximize">
    Upload a static mockup and Rocket generates a fully functional app that matches the design.

    **Try this prompt:**

    ```plaintext wrap theme={null}
    Build this dashboard design as a working web app. Make the charts interactive, the sidebar navigation functional, and add a date range filter.
    ```
  </Accordion>

  <Accordion title="Build from a spreadsheet or CSV" icon="table">
    Upload a product catalog, pricing list, or dataset and Rocket builds pages from the real data.

    **Try this prompt:**

    ```plaintext wrap theme={null}
    Build a product listing page using the data in this spreadsheet. Show each product with its name, price, and description in a card grid.
    ```
  </Accordion>

  <Accordion title="Build from a PDF or document" icon="file-pdf">
    Upload a brief, spec, or report and Rocket extracts the content to build from.

    **Try this prompt:**

    ```plaintext wrap theme={null}
    Build a landing page for this product using the content from this PDF. Pull the headline, features, and pricing from the document.
    ```
  </Accordion>

  <Accordion title="Build from a Markdown file" icon="file-lines">
    Upload a blog post, documentation page, or content outline and Rocket turns it into a styled page.

    **Try this prompt:**

    ```plaintext wrap theme={null}
    Turn this Markdown file into a blog post page with a header image, reading time estimate, and author byline.
    ```
  </Accordion>
</AccordionGroup>

<Divider />

## Detailed walkthrough

<Tabs>
  <Tab title="Web Browser">
    ### Before you begin

    <Info>
      **You will need:**

      * A [rocket.new](https://rocket.new) account, signed in.
      * An image (`.png`, `.jpg`, `.jpeg`) or file (`.pdf`, `.xlsx`, `.csv`, `.md`) under 5 MB.
    </Info>

    <Steps>
      <Step title="Go to Rocket">
        Visit **[rocket.new](https://rocket.new)** and sign in.

        <Frame caption="Rocket homepage">
          <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/Cw1M34iuTAasIUNm/images/build-docs/create/from-an-idea/web-browser/homepage-light.webp?fit=max&auto=format&n=Cw1M34iuTAasIUNm&q=85&s=8b7278202043606ad878e87d59a2ff12" alt="Rocket homepage with the input field and attachment button." className="theme-image light-image" width="2880" height="1624" data-path="images/build-docs/create/from-an-idea/web-browser/homepage-light.webp" />

          <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/Cw1M34iuTAasIUNm/images/build-docs/create/from-an-idea/web-browser/homepage-dark.webp?fit=max&auto=format&n=Cw1M34iuTAasIUNm&q=85&s=a8b6daaaa983912ca74cea0cc782b10b" alt="Rocket homepage with the input field and attachment button." className="theme-image dark-image" width="2880" height="1624" data-path="images/build-docs/create/from-an-idea/web-browser/homepage-dark.webp" />
        </Frame>
      </Step>

      <Step title="Attach a file">
        Click the **+** button at the lower left of the input box and select **Add files & photos**. You can also drag and drop or paste an image directly into the chat.

        <Frame caption="Attach a file">
          <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/from-an-attachment/web-browser/add-instructions-light.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=69dccce95503756870c21d64cc8f4068" alt="The + button and Add files and photos option in the Rocket input box." className="theme-image light-image" width="2880" height="1624" data-path="images/build-docs/create/from-an-attachment/web-browser/add-instructions-light.webp" />

          <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/from-an-attachment/web-browser/add-instructions-dark.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=34fc089e46b3de9187c6c737b21c4a34" alt="The + button and Add files and photos option in the Rocket input box." className="theme-image dark-image" width="2880" height="1624" data-path="images/build-docs/create/from-an-attachment/web-browser/add-instructions-dark.webp" />
        </Frame>
      </Step>

      <Step title="Add instructions">
        Describe what you want built alongside the attachment:

        * *"Build an app that looks like this screenshot"*
        * *"Create a product page using the data in this spreadsheet"*
        * *"Turn this Markdown file into a blog post with a clean layout"*
        * *"Use this PDF to build a landing page with the product features"*
      </Step>

      <Step title="Generate the app">
        Press Enter. Rocket analyzes the attachment and builds from your file and prompt.

        If your prompt is specific enough, it starts immediately. If it is too vague, prompt intelligence asks a short set of questions first, then starts.

        <Card horizontal title="Prompt intelligence" icon="brain" href="/getting-started/task/prompt-intelligence">
          How Rocket decides when to ask questions and what to do with your answers.
        </Card>
      </Step>
    </Steps>
  </Tab>

  <Tab title="Mobile App">
    ### Before you begin

    <Info>
      **You will need:**

      * The Rocket app (iPhone or iPad) installed and signed in.
      * An image (`.png`, `.jpg`, `.jpeg`) or file (`.pdf`, `.xlsx`, `.csv`, `.md`) under 5 MB.
    </Info>

    <Steps>
      <Step title="Attach a file">
        Tap the **<Icon icon="paperclip" />** icon at the bottom of the chat field. Choose **Take Photo**, **Choose from Library**, or **Browse** to upload an image or file.

        <Frame caption="Attach file on mobile">
          <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/from-an-attachment/mobile-app/attachment-image-in-rocket-app.gif?s=c7514dcf837681c06fccc4069eff1516" alt="Mobile attach button near the chat field for uploading an attachment from camera, photo library, or file browser." className="theme-mobile-image" width="344" height="720" data-path="images/build-docs/create/from-an-attachment/mobile-app/attachment-image-in-rocket-app.gif" />
        </Frame>
      </Step>

      <Step title="Add instructions">
        Describe what you want built alongside the attachment:

        * *"Build an app that looks like this screenshot"*
        * *"Create a product page using the data in this spreadsheet"*
        * *"Turn this Markdown file into a blog post with a clean layout"*
        * *"Use this PDF to build a landing page with the product features"*
      </Step>

      <Step title="Generate the app">
        Tap **Send**. Rocket analyzes the attachment and builds from your file and prompt.

        If your prompt is specific enough, it starts immediately. If it is too vague, prompt intelligence asks a short set of questions first, then starts.

        <Card horizontal title="Prompt intelligence" icon="brain" href="/getting-started/task/prompt-intelligence">
          How Rocket decides when to ask questions and what to do with your answers.
        </Card>
      </Step>
    </Steps>
  </Tab>
</Tabs>

<Divider />

## Prompt cookbook

Pair these prompts with your uploaded attachment:

| Goal                     | Prompt                                                                                                |
| :----------------------- | :---------------------------------------------------------------------------------------------------- |
| Exact recreation         | `Build an app that looks exactly like this image. Match the layout, colors, and components.`          |
| Style match, new content | `Use this design style but build a CRM dashboard for tracking sales leads and deals.`                 |
| Mockup to app            | `Turn this mockup into a fully functional web app with working navigation and interactive elements.`  |
| Data-driven page         | `Build a product listing page from this spreadsheet with name, price, and description for each item.` |
| Content page             | `Turn this Markdown file into a styled blog post with a header, reading time, and share buttons.`     |
| PDF to landing page      | `Build a landing page using the features and pricing from this PDF document.`                         |
| Different branding       | `Use this design layout but replace all content and branding for my company called "Flowboard."`      |
| Multiple screens         | `This image shows 3 screens of my app. Build all of them with navigation between each screen.`        |

<Divider />

## Tips for better results

* **Clear images produce better results.** High-contrast screenshots and crisp mockups outperform blurry or low-resolution images.
* **Add context in your prompt.** The attachment shows Rocket *what* to work with. Your prompt tells it *what to build* and *who it is for*.
* **Real content beats placeholders.** Upload your actual spreadsheet, document, or screenshot instead of describing the data in text.
* **Crop out noise from images.** Remove browser chrome, desktop wallpaper, or unrelated UI elements before uploading.

<Divider />

## What's next?

<CardGroup cols={2}>
  <Card title="Iterate with chat" icon="messages" href="/build/editor/chat">
    Refine your app using natural language. Change colors, add features, fix bugs.
  </Card>

  <Card title="Visual edit" icon="paintbrush" href="/build/editor/visual-edit">
    Click any element to change text, colors, layout, and spacing directly.
  </Card>

  <Card title="Connectors" icon="puzzle-piece" href="/build/connectors/overview">
    Add payments, databases, AI, email, and more with a single prompt.
  </Card>

  <Card title="Launch your app" icon="desktop" href="/build/launch-web/launch-your-site">
    Publish to the web with one click and connect a custom domain.
  </Card>
</CardGroup>
