Skip to content
Docs

Files

A file store is where your workspace keeps files: invoices that arrived by email, drawings a client sent, spreadsheets a flow produced. Flows write into it and read out of it, and you can browse, upload, download and share its contents from Data → Files.

It is the one store that holds documents rather than data. Rows go in a table, a single value goes in key-value, text searched by meaning goes in a knowledge base, and a PDF goes here.

From Files, create a store and give it a name. The name matters more than it looks: flows address a file as Store name/path/to/file.pdf, so a short name is worth having.

The File stores list with each store's files, size, versions stored, storage and retention, including the Mail attachments and Chat attachments stores
The File stores list with each store's files, size, versions stored, storage and retention, including the Mail attachments and Chat attachments stores

A store has four settings you can change later.

Setting What it does
Storage Whether files live on Publicus storage or in a bucket of your own.
Keep files for (days) Files untouched for this long are removed. Leave it empty to keep them indefinitely.
Versions to keep 1 keeps only the current file. Higher keeps that many previous versions, which costs storage, so it is off by default.
Largest single file (bytes) Refuses anything bigger, rather than accepting it and failing later.
The Create file store form: Name, Description, Storage set to Publicus storage, Keep files for, Versions to keep 1, Largest single file, and Keep searchable in under Search
The Create file store form: Name, Description, Storage set to Publicus storage, Keep files for, Versions to keep 1, Largest single file, and Keep searchable in under Search

Some stores are created and owned by Publicus for a specific purpose. Those are browsable and downloadable like any other, but their settings are locked, and neither the store nor the files in it can be deleted. Each appears the first time something needs it.

Store Holds Contents kept for
Mail attachments Files that arrived by email. 30 days by default.
Chat attachments Files sent to a chat channel, such as a photo on WhatsApp. 30 days by default.
Document renders Pages of PDFs rendered as pictures for an AI model. 30 days by default, then made again when needed.

The one setting you can change on Mail attachments and Chat attachments is Keep searchable in.

When Read an Image or an Agent looks at a page of a PDF, the page, or the part of it asked for, is rendered as a picture once and kept here, so the next run that asks for the same page does not render it again. A render can be made again from its PDF at any time, so its 30 days are a cache rather than a promise: an expired render is made again the next time it is needed, and the renders of a file go when the file goes. The overlay and crops that Compare PDF revisions stores here are the exception: they stay for their 30 days even after the file is deleted.

Two things about a file are deliberately separate.

The path is where the file lives in the store, for example invoices/2026/08/inv-1042.pdf. It is unique within the store, and it is what you address the file by. Renaming a file changes the path and nothing else, so you can reorganise a store freely.

The filename is the name a person sees when they download it. It never has to be unique, and a file that arrives from a sender keeps the name that sender gave it.

Writing to a path that is already in use produces a new version of the same file rather than a second file. How many previous versions survive is the store’s Versions to keep setting.

Every node that writes a file has a Delete after (days) setting, so a file can be given its own lifetime whatever the store’s settings say. The Files screen shows the date in its Deletes on column, and the file is removed the night after.

A store's files with their path, size, Read status, versions, last update and Deletes on date, with Download and a ⋮ menu on each row, under Triggers, Store settings and Upload a file
A store's files with their path, size, Read status, versions, last update and Deletes on date, with Download and a ⋮ menu on each row, under Triggers, Store settings and Upload a file

What an empty setting means depends on what the node writes:

  • A file a flow generates, with Create a File, Create a PDF or Write a Table to a File, is deleted after 90 days. A nightly export written to a dated path otherwise piles up, and every file counts toward storage. Set 0 to keep it until someone deletes it.
  • A file a flow files, with Store a File or an HTTP node that saves its response as a file, is kept. Those are usually records, such as invoices and drawings. Set a number of days to have them removed.

Each write sets the lifetime again. A file a flow rewrites at the same path on every run never reaches its date, and uploading a new version yourself from the Files screen keeps the file, whatever the flow had set. Files written before this setting existed have no date.

Nodes pass files around as references, never as bytes. A reference is one of an object id, a version id, a Store name/path string, or an inbound email attachment id — see File Details for what each one resolves to.

The rule worth knowing up front: pass a version id when one step hands a file to another. An object id means “whatever is current when you read it”, and a run that waits for an approval may read it days later.

Node What it does
Store a File Write text, or copy a file that already exists, into a store.
File Details Look one up: name, type, size, and whether its contents are still there.
List Files Everything in a store, or everything under a path prefix.
Delete a File Remove one.
Read a File as Data Read a CSV, spreadsheet, XML file or SQLite database into rows the flow can address.
Create a File Build a CSV, Excel or XML file from flow data.
Create a PDF Lay out HTML, convert a document, or merge PDFs.
Load a File into a Table A CSV or spreadsheet straight into a table, at bulk sizes.
Write a Table to a File A table out to a CSV or Excel file, correctly typed.
Read a File as Text A document’s text, for an agent or a knowledge base.
Read an Image What a picture, or a page of a PDF, shows, by asking an AI model.

You can also upload a file from the Files screen. It goes through the same path a flow does, so an uploaded file and a written one are the same thing.

The Upload a file to this store dialog with a File drop zone and an optional Path, which defaults to the file name
The Upload a file to this store dialog with a File drop zone and an optional Path, which defaults to the file name

When Files Change is a trigger that starts a flow when files of a store are added, rewritten or deleted, wherever they came from: the Files screen, a portal upload, an email’s attachments or another flow. The run gets each file as a reference the file nodes read, so “a file landed in Invoices, so read it and book it” is one trigger and one node. The store’s Triggers button shows which flows it starts, and for each recent change the runs it started or why it started none.

A file store's Triggers dialog: the live flow File new delivery notes, started when files are added under 2026/, and a recent change of 1 file added that started it
A file store's Triggers dialog: the live flow File new delivery notes, started when files are added under 2026/, and a recent change of 1 file added that started it

Reading a stored file keeps what was read on the file: its text, its pages, a part of a page, a page rendered as a picture. The next flow or agent that reads the same file gets the kept reading instead of reading it again, and you can see afterwards what was read from a file and by what. This holds in every store, Mail attachments and Chat attachments included, since an agent reading what arrived by mail is where most reading happens.

The Read column on a store’s page says, per file, what has been read from its current version: not read, the kinds of reading in green (for example text · pages · title block), the same with · 1 failed in gray when some reading failed, or failed in red. The column can be hidden from the table’s column menu.

Readings, in the menu (⋮) at the end of a file’s row, opens a panel that goes version by version, newest first:

  • Each reading: what it was (text, pages, words, a region, a render), the reader that made it, when, and how long it took. A text reading shows its first 2,000 characters, with page breaks marked. A pages reading lists each page’s paper size, orientation, rotation and whether it looks scanned. A render shows a thumbnail. A reading that failed shows why.
  • What models said about the file: answers and summaries a flow or agent kept on it, with the question, the model, whether it was legible, and the run that asked.
  • Used by: the last 25 reads, each with the flow and node or the person that read it, as what, and a link to the run.
The Readings panel for a PDF: its text and region readings, what models said about it, and the runs and nodes that read it
The Readings panel for a PDF: its text and region readings, what models said about it, and the runs and nodes that read it

Opening the panel is not recorded as a read. A failed reading is kept when the fault is in the file, such as a damaged PDF, so it is not attempted again on every run; a reading that failed because a format could not be read on this deployment is tried again next time.

A store can keep a knowledge base in step with its files, with no flow: a file added or replaced is indexed into the knowledge base, and a file deleted, or whose contents expired, is taken out. Flows and agents then find a file by what it says, with Knowledge Base Query or an agent’s knowledge base search, and each result leads back to the file.

When you create the store, or later on its edit page, choose the knowledge base under Search in Keep searchable in, or create one there with the + button (New knowledge base), which embeds it with the workspace’s default embedding model. Until the workspace has a default, the field offers no + and links to the AI models page, where you choose one. Then narrow what goes in:

Setting What it does
Only files under A path prefix, such as drawings/. Empty for every file in the store.
Only these file types Empty for every type Read a File as Text reads.
What goes in The file’s text; its title, put at the start of every piece (the file name, which on a drawing usually carries its number, and a PDF’s own title); and the summaries, descriptions and answers flows and agents kept on the file. Answers are off by default, because an answer to one flow’s question is usually a fact for a table rather than something to find the file by. Read an Image keeps what it reads as answers, so tick them to index its readings.
The Search section of a store kept searchable in Carrier contracts archive, with Only files under, Only these file types, and What goes in with the file's text, title, summaries and descriptions ticked and answers left off
The Search section of a store kept searchable in Carrier contracts archive, with Only files under, Only these file types, and What goes in with the file's text, title, summaries and descriptions ticked and answers left off

Saving indexes the files already in the store in the background. Changing the knowledge base takes the files out of the old one, and clearing the setting takes them out altogether.

  • Indexing embeds the text with the knowledge base’s model, which uses AI credits. A file whose text has not changed is not embedded again.
  • The knowledge base must be one of this workspace’s own and have an embedding model.
  • Nothing is summarised for you. A summary goes in when a flow or agent keeps one on the file, for example an Agent with keepOnFile.
  • A file that would make more than 500 pieces in the knowledge base is left out rather than half indexed, since half a document in a knowledge base reads as all of it.
  • A file in Mail attachments stays findable for as long as its contents are kept, 30 days by default.
  • Exported with Include dependencies, a store arrives in the other workspace searchable in a copy of its knowledge base. Exported without, it arrives not searchable, its other search settings kept: point it at a knowledge base there. See Export and import.
  • Deleting the knowledge base turns the setting off on every store kept searchable in it.

Download, on the file’s row, streams the file to you on the page.

Share a link, in the row’s menu, mints a link anyone can open without signing in, which is what emailing a client a drawing actually needs. The link works for 60 minutes. It is signed over the version, so replacing the file afterwards does not silently change what the recipient receives. Deleting the file revokes the link.

The Share this file dialog with a signed link to DN-10482.pdf that expires in 60 minutes and a copy button
The Share this file dialog with a signed link to DN-10482.pdf that expires in 60 minutes and a copy button

Someone who opens a link that no longer leads to the file gets a short page saying so, rather than an error: that the link has expired, that the file has been removed, or that the link leads to no file. Each page asks them to contact whoever sent it. None of them names your workspace.

The page a recipient sees for an expired link: This link has expired, and a request to ask whoever sent it for a new one
The page a recipient sees for an expired link: This link has expired, and a request to ask whoever sent it for a new one

A flow makes the same kind of link with the Share a File node, for as many hours as it says: 24 when it says nothing, and at most a week. An agent that has the node as a tool asks a person before it shares, unless the workspace runs it on Autopilot, because a link cannot be taken back once it is sent. A link outlives a replaced file only as long as the store keeps old versions: with Versions to keep at one, the old version goes the night after the file is replaced, and the link then says the file is no longer available.

Set Storage to your own bucket and supply a bucket-credentials secret: the bucket name, an access key id and a secret access key, plus an endpoint for anything that is not AWS.

Changing this setting on a store that already holds files does not move them. Existing files stay readable where they are, and new ones are written to the new bucket.

A store set to your own bucket with no credential is refused rather than quietly falling back to Publicus storage.

Two meters apply to files.

  • Storage is billed per gigabyte per day, and counts every live version, not just the current one. Raising Versions to keep raises the bill.
  • Egress is billed per gigabyte downloaded, whether through the Files screen or a share link.

Files whose contents have been expired by a retention policy stop counting toward storage.

The Files list shows each store’s Size and Versions stored, counted the way storage is billed. Hover the size to see roughly what the store costs a day at that size.