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.
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
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.Navigating inside an attached folder
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?”
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.”
Next up: Learn how files get organized in the first place in Files. Walk through a full example in Analyze an uploaded file.
