docs/ai_builder/files.md
Select the attachment control to upload a file as context for the Reflex Build agent. You can also drag a file directly into the chat.
This page covers documents and structured data. See Images for image attachments.
Reflex Build supports common:
.pdf, .doc, .docx, .odt, and .rtf..xls, .xlsx, .ods, .csv, and .tsv..ppt, .pptx, and .odp..txt, .md, .markdown, .json, .xml, .yaml, and .yml.General file uploads support files up to 50 MB each. You can attach up to 20 files in one message.
Tell the agent how to use the attachment:
Use the attached CSV as sample data. Build an import preview that maps the
columns, flags malformed dates, and lets the user exclude invalid rows.
An attachment is prompt context. If the app must serve or retain the file at runtime, ask the agent to add the appropriate app asset, upload workflow, database record, or external storage integration.
Do not attach secrets, credentials, or private production exports unless they are specifically approved for use in Reflex Build. Use Secrets or an integration form for credentials.