Skip to main content

Reuse anything from Files

You don’t have to re-upload a file every time you want to talk about it. If a file or folder is already in Files, or it’s an artifact Hazel made, just @-mention it from the composer.
1

Type @ in the composer

Start typing @ followed by a few letters of a file, folder, or artifact name. Names with spaces work too: the palette stays open while what you’ve typed still matches something.
2

Pick from the palette

A palette pops up with your top matches in two groups: My Files and your organization’s shared library, so you can attach anything a teammate shared too. Press Tab to jump between groups. Folders show a breadcrumb path, so you can tell apart two files or folders that share a name.
3

Send your message

The file or folder is tagged to your message as a chip. Hazel can now reference it in her answer.
You can tag one folder per message. Selecting a new folder swaps out the one you had tagged.
Don’t see what you’re looking for in the palette? Click Browse all at the bottom of the @ menu to open Attach from library, an explorable tree of both your files and your organization’s shared library. Pick a folder, files, or both in one go. The + button in the composer also has a Folders menu with both libraries. Only files that are ready to attach are listed; anything else is summed up as a count at the bottom (for example, “and 3 files more”). When you attach an artifact, Hazel opens the artifact itself, so you can ask what it covers or which query built it.

The attachments pill

Once you send a message with a file or folder attached, it shows up as a collapsible attachments pill above your message. Click it to expand and see everything you tagged.
  • Folder rows link straight to that folder’s page in Files
  • File rows deep-link to wherever that file lives
  • Artifact rows show the artifact’s type icon and link to the artifact
This keeps your thread readable: you get one tidy pill instead of a wall of file names, but everything’s still one click away.

Chat with a folder or file

Starting a conversation from inside Files is often faster than hunting for the right file in the composer. Use Chat with File or Chat with Folder in a row’s menu (the ⋯ button), or the Chat with Folder button on a folder page, to jump straight into a new chat with that item already tagged.
This is the fastest way to start analyzing something you just uploaded, like a vendor report or a competitor spreadsheet, without leaving Files to go find it in the composer.
A tagged folder isn’t a black box. Hazel can look inside it, so you can ask things like:
  • “What files are in this folder?”
  • “Summarize each file in here”
  • “Which of these has our Q3 numbers?”
Hazel reads the folder’s contents and works across everything inside it, the same way she would if you’d tagged each file individually.

Pasting large blocks of text

If you paste a large chunk of text into the composer, like a spreadsheet export, an email thread, or a long list, Hazel automatically turns it into a Pasted text chip instead of flooding the message box. Hover the chip to preview the content, or remove it if you pasted the wrong thing. This keeps long pastes readable and out of the way, while still sending the full text to Hazel for analysis.

What Hazel can do with your files

Once a file is attached, Hazel can actually work with it:

Code execution

Hazel can run code against attached files, including spreadsheets (.xlsx, .xls), JSON, XML, and Markdown.

Files plus your data

Hazel analyzes attached files alongside your connected data, so one answer can draw on both.

Upload formats and limits

You can attach up to 10 files to a single message. Supported formats and their size limits:

Joining a CSV against your warehouse data

An attached file doesn’t have to stand on its own. Ask Hazel to combine a tagged CSV with your connected data, and Hazel treats the file and your warehouse as two queryable tables in the same query. Excel files can be analyzed on their own but not joined with warehouse data, so export them to CSV first. For example:
“Join this file to our Shopify orders by discount code and show me revenue per creator for the last 30 days.”
Joins match on exact values. If a join comes back thinner than you expect, check for mismatched case or extra whitespace in the join-key column.

Next up: Learn how files get organized in the first place in Files. Walk through a full example in Analyze an uploaded file.