Files

FilesFiles

Sim has native support for files, a way to store, reference, and pass around documents, media, and generated outputs, so your workflows can read and produce real assets: PDFs, images, audio, video.

What you will learn

Why files exist

Many operations you already do involve files, attaching an image to an email, transcribing audio, processing an upload. Workflows routinely take files in and hand files out.

Consume and produce

A workflow can read a file as input and produce a new file as output, passing it between blocks like any other value.

Read a document

The video follows an email attachment through a File block and an Agent block, then writes the extracted fields to a database:

Files in and out

Workflows consume files and produce them, and hand them between blocks like any other value. A file goes in, a block reads it; a block creates one, the next step uses it.

What you can build

The point isn't a new concept to learn, it's recognizing that the file-based operations you already picture are supported here:

  • Attach a generated report to an email.
  • Transcribe an audio clip that came in through a trigger.
  • Read an uploaded image and describe it with a vision model.
  • Extract structured fields from a batch of PDFs.
  • Produce a rendered document, chart, or audio file as a workflow's output.

Common Questions

Upload them in a chat, post them to the API, or pull them off an email as attachments with a trigger. However a document arrives, it becomes the same file object inside the workspace.
The File block reads and parses common document formats, including PDFs, spreadsheets, and plain text, and hands agents the content directly, so an agent can extract fields from an invoice without manual retyping.
Yes. A run can write new files into the workspace, attach documents to outgoing email, or upload them to storage like Google Drive.
Wherever you send them. The pattern in the video writes them to a table, so document contents become structured rows the rest of your tools can query.