Attach files to a prompt (original) (raw)

Before you start

Who can use this feature

When you're creating prototypes, web apps, and interactive UI using Figma Make, you can attach files to your prompts to guide the AI toward better results. You can attach designs, images, video, audio, text files, and PDFs.

Note: You can attach up to 10 files per prompt. The total number of attachments you can have in your file depends on your plan:

Attach a design

When you attach a design to a prompt, the AI model used in Figma Make interprets the design and translates the layers and content into functional code. The result will match the form of the design, including text and images, as closely as possible, while also respecting your instructions and other attachments. If the design you try to attach is too large for the prompt, it will be attached as an image instead.

There are two ways to attach Figma designs to a prompt:

In the prompt box, click Add context, then Attach a design, and paste the link of the design you want to attach.

Copy and paste designs from your Figma Design files into the prompt box.

Note: When you use a Community design for prompts in Figma Make, a reminder appears above the prompt box that lists the designs. Additionally, Figma Make creates an Attributions.md file that includes a list of all assets that require attribution. The file is packaged with your functional prototype or web app to ensure proper attribution to original creators.

Attach images, video, audio, text files, or PDFs

You can attach different file types to provide additional context, data, or reference material to Figma Make.

To attach a file:

  1. In the prompt box, click Add context, then Upload from computer.
  2. Select the file from your system's file browser.

Tip: You can also drag and drop files directly into the prompt box.

Caution: Attaching a file can increase the number of AI credits used in a prompt.

Image files

You can attach images to provide visual reference or to embed directly in your output.

Supported formats:

Images work in two ways in Figma Make:

Image file size limits depend on your plan:

Video and audio files

You can attach video and audio files and instruct Figma Make to embed them directly in your output. Tell Figma Make explicitly what to do with the file—for example, "embed this video as a hero background" or "add this audio as background music"—to get the best results.

Note: Unlike images, Figma AI can't analyze video or audio content—it can't watch a video to use it as a style reference.

Supported formats:

Video and audio file size limits depend on your plan:

Text files

You can attach text files to provide context, data, or code to Figma Make. The AI can reference these files to better understand your requirements and generate more accurate results. Code files like .tsx and .js can be embedded directly in your project.

Supported text file types include:

Note: Text files have a maximum size limit of 1MB.

Common use cases

Use case Description
Import real data into a prototype Upload a .csv or .json file to generate dashboards, tables, or data-driven UI with realistic content.
Reuse existing components Attach a .tsx or .jsx file and ask Figma Make to extend, refactor, or adapt it for a new screen.
Prototype with real content Add product copy, FAQs, or marketing messaging in a .txt or .md file so layouts reflect real-world constraints.
Generate UI from API responses Paste a sample API response in a .json file and prompt Figma Make to build the interface around it.
Migrate static HTML into interactive UI Upload an .html and .css file and ask the model to convert it into a more modular, interactive experience.

PDFs

You can attach PDF files to provide additional context to Figma Make. For example, you might attach brand guidelines, product requirement documents (PRDs), or design specifications to help guide the AI's output.

PDFs are used as reference material. Figma Make can read and reference the content in your PDF but won't embed the PDF itself in the output.

Note: PDFs have a maximum file size limit of 5MB.

Best practices for working with attachments

When you're working with attachments, here are some best practices to follow.

General best practices

Single attachments

When you're working with individual attachments, here are some best practices to follow:

Multiple attachments

When you're working with multiple attachments, here are some best practices to follow:

Resolving issues

When you're trying to fix or work around issues you encounter, here are some best practices to follow: