---
title: Documents
summary: Notes, plans and research you and your agents write and edit.
group: Workspace
order: 2
---

Documents are the notes, plans and research you keep in Verdalia, and your agents can read and act
on them. For example, you jot down Tuesday's meeting notes, and later your agent says: "You
mentioned asking Sam about the contract, so I've added it as a task for Friday." You write documents
on the **Library** page; agents write them while you talk, workflows write them, and other AI apps
such as Claude Code write them over MCP.

## How documents fit in your workspace

Your agents file a note's follow-ups as [tasks](/docs/tasks), and turn notes into
[calendar](/docs/calendar) blocks and [table](/docs/collections) rows. They also write documents
from the rest of your workspace, such as a weekly review of your tasks and calendar.

A workflow can read a document into an agent's [memory](/docs/agents), or turn an RSS feed, a
YouTube channel or a batch of news into a summary document.

## Ways to create a document

- On the **Library** page, select **New Document** (Ctrl/Cmd+N), or **From Template** to start from
  one of your templates. Right-click a folder to create the document inside it. Type the name in
  the title at the top; it is also the document's name on the Library page.
- Ask an agent: "Write a one-page plan for my week and save it in my Library." or "Keep notes from
  this call in Clients/Nordlys." The agent creates the document with
  [Create Library Item](/docs/tools/library_create).
- In a workflow, add the [Library](/docs/nodes/library) node with **Create Text Document** after a
  trigger, such as a schedule, a new email or a Discord message. The step writes Markdown or blocks
  into a new document in the folder you give it.
- Once you turn on [MCP](/docs/mcp), Claude Code, Cursor or any other MCP client can list, search,
  read, create and edit your documents.
- The [Daily Notes](/docs/plugins) plugin creates the note for a day, week, month, quarter or year,
  optionally from a template. Open one with **Daily note**, **Weekly note** and the other commands
  in the command palette (Ctrl/Cmd+P), or with **Create** on the **Focus** page when today has no
  note yet.

There is no import from another notes app.

### Documents your workflows write

The Library node's **Update Document** replaces a document's whole body, or renames it. To add to a
document, give an [AI Agent](/docs/nodes/ai_agent) step the
[Library Tools](/docs/nodes/library_tools) node, so it can append blocks.

Creating or changing a document doesn't start a workflow. To act on new notes, run a workflow on a
schedule that lists recent documents with [List Library](/docs/nodes/library_list).

## Files beside your documents

The Library also holds files: the images, PDFs, audio, video and anything else you upload, and the
files that come from:

- a file you attach in an agent session;
- an image or file sent to your bot through the [Discord Gateway](/docs/plugins) plugin;
- a file a workflow saves with [Download Attachment](/docs/nodes/download_attachment),
  [Telegram Download](/docs/nodes/telegram_download) or [Upload Media](/docs/nodes/upload_media).

These files appear in **Other**, which lists everything not in a folder. Your agents can look at an
image or read a PDF with [View Library File](/docs/tools/library_view), and file it with
[Move Library Item](/docs/tools/library_move).

A file from Upload Media expires after 24 hours unless the step sets another time.

### Files agents view in a conversation

Ask an agent to read an invoice attached to an email or check a PDF on your computer. It can open
the file through the relevant [connection](/docs/connections), [app](/docs/mcp) or [Relay](/docs/relay)
without a workflow or a public link. Viewing creates no Library item. Verdalia keeps newly
opened PDFs and images in the conversation privately for 7 days. Relay screenshots and
zoomed crops expire after 1 hour.

### Downloads saved straight into the Library

A download step set to save into the Library writes what it downloads into a Library item within
its own step, and outputs the item's object descriptor instead of the file. The step's **Name**
names the item; left empty, the item takes the name the download comes with. **Folder** is a
`/`-separated path of folder slugs or ids from the root, chosen with the folder picker, and every
folder must already exist; choose **Other** to put the item in **Other**.

A saved download can be up to 2 GiB, within your plan's storage. It is checked against the size and
checksum its source states. When a save fails, is cancelled or times out while the file is still
arriving, or its source stops sending for 60 seconds, nothing is left behind: no item, no partial
file, and no storage counted. A save cancelled after the file has arrived still finishes as an item.

## Working on a document together

If an agent, a workflow or another tab changes the document while you have edits that aren't saved
yet, the editor stops and shows **Changed elsewhere**. **Reload** discards your edits and shows the
latest version. **Copy my version** saves your edits as a new document named "<name> (my version)"
beside the original.

To see earlier versions, select **Versions** in the editor toolbar, where you can preview one and
**Restore** it. The restored content becomes a new version, and the one you restored over stays in
the list.

## Links between documents

To link to a document or file, type `@` at the start of a line or after a space, or press
Ctrl/Cmd+K, and pick it. To link to a folder, pick its main note. Pasting the address of a
document or file in your workspace offers **Convert to link chip**. Agents can write the same
links.

With **Embed documents** turned on, each document also appears on the **Knowledge Graph** page
placed by meaning, next to your agents' memories, and every link between two documents shows there
as a **References** edge.

## Keeping your Library organized

Your Library works best as one connected set of notes rather than a pile of documents. A new
Library starts with two notes that show how:

- **Welcome to your Library** says how to use it.
- **Map** lists your folders and what goes in each, and the subjects that have an overview note
  linking to their parts. Your agents read it before they file anything, and add a line when they
  add a folder or split a note. It is an ordinary document: change it however you like.

Your agents keep the Library this way unless you tell them otherwise. When you mention something
worth keeping, they write it down in the folder it belongs to and tell you where. When a note gets
long, they split it into linked notes and keep the first as the overview. If you would rather they
ask first, tell your agent; it notes that in its instructions.

At the foot of every document, **Linked from** lists the documents that link to it, so a part
always shows the overview it belongs to.

## Pages drawn from HTML

A code block in HTML draws as a page inside the document, such as a diagram, a chart, a timeline or
a styled table. To add one, put the caret in a code block and choose **HTML** in the language menu
on the editor toolbar, or ask an agent: "Add a timeline of the launch to this document as a
diagram."

The page shows in the block whether you are editing or reading; select **Source** above it to see
and edit the HTML in its place, and **Source** again to go back to the page. A new HTML block, or
one you just switched to HTML, shows its source while you write it. The page redraws when you stop
typing.

### What a page can hold

A page is HTML with inline `<style>` and inline `<svg>`. It can use:

- inline styles;
- inline SVG;
- images written into the page as `data:` URLs;
- links to `#` anchors in the same page.

Scripts and event handlers such as `onclick` don't run, forms don't submit, and nothing loads from
the network: no stylesheets, fonts or images from an address, and no links to other pages. A block
over 256 KB shows its source instead of a page.

### Page size

The page is as wide as the document, about 640 to 1650 pixels depending on your editor width, and
narrower on small screens. Lay it out 600 pixels wide, which is full size at every document width;
a drawing that needs more room can be up to 760 pixels wide and shrinks in a narrower document. The
page sits on the document's dark background with light text unless it sets its own colours.

A page is 1152 pixels tall. To give it another height, add a `page-height` meta tag to it, in
whole pixels from 120 to 4,000; a height outside that range is held to the nearest end. `100vh` is
the page's height, and anything taller than the page scrolls inside it. This page is 640 pixels
tall, with a drawing that fills it:

```html
<meta name="page-height" content="640">
<svg viewBox="0 0 600 640" width="600" height="640" style="display:block;width:100%;max-width:600px;height:auto">...</svg>
```

The same block in an agent's reply in a session draws as a page 512 pixels tall.

In the blocks agents and other AI apps write, a page is a `code_block` whose `language` is `html`.
They find the JSON of every kind of block in the built-in `library-documents` skill, read with
[Load skill](/docs/tools/load_skill).

## AI access

To set what AI can do with a document, right-click it on the Library page and select **AI Access**:

- **AI tools can read**, on by default. Turned off, the document disappears from what your agents
  and other AI apps see when they list or search the Library, and they can't open it.
- **AI tools can write**, on by default. Turned off, agents and other AI apps can read the document
  but can't change, rename, move or trash it.

Workflows read a document whatever its AI access. A workflow's **Update Document** step is refused
when writing is off.

## Templates

A template is any document directly inside a top-level folder named exactly `Templates`. **From
Template** lists them, and the new document starts as a copy. These placeholders are filled in when
the copy is made:

- `{{ title }}`: the new document's name.
- `{{ date }}`: today's date, as `YYYY-MM-DD`. A Daily Notes note renders its own period date
  instead. Give a format to change it, such as
  `{{ date:DD.MM.YYYY }}`.
- `{{ time }}`: the current time, as `HH:mm`. Formats work the same way.

Formats use `YYYY`, `MM`, `DD`, `HH`, `mm` and `ss`. The Daily Notes plugin can use a template from
the same folder for each new note.

## Find a document

- On the **Library** page, browse documents and files as a tree of folders, or select **Gallery** to
  see everything at once. **Sort items** puts the tree in order of name, last change or creation,
  either way round, with folders first. Wherever a document or file is open, a line above it shows
  the folders it is in and when it was created and last changed, with **Copy link** to copy its
  address. The Gallery sorts by newest, oldest or name, and narrows to **Documents**, **Images**,
  **PDFs**, **Audio**, **Video** or **Other files**, or to **Unfiled only**.
- The **Search the Library…** box matches names and the text inside documents, including
  misspellings. Agents search the same way with [Search Library](/docs/tools/library_search).
- Press Ctrl/Cmd+O and type part of the name.
- Add the **Recent Documents** widget to a [board](/docs/pages).
- Ask an agent: "Find my notes about the venue and tell me what we decided." The agent searches,
  opens the document and answers from it.

## Share a document

To give a document or a file to someone outside your workspace, open it and turn on **Share**, then
select **Copy share link**. Anyone with the link sees a read-only page with the name and content,
and a **Download** button for a file. The link works until you turn **Share** off; turning it on
again makes a new link. Folders can't be shared. On the shared page, a code block in HTML draws as
the same page, with **Source** above it to read the HTML.

To export a document, select **Download as Markdown** in the editor toolbar.

## Delete and restore

Deleting a document, file or folder moves it to **Trash** for 30 days. To get something back,
select **Trash** at the bottom of the Library page, then **Restore** on its card. After 30 days it
is deleted for good.

## Agent tools and workflow nodes

### Agent tools

Agents have the Library tools and Execute Script in the **Workspace** tool group, on by default.
Other AI apps get those over [MCP](/docs/mcp) once you turn it on; **View Library File** and
**Trash Library Item** stay off for them until you switch them on in the MCP settings.

- [List Library](/docs/tools/library_list): lists one folder, the top level, or the unfiled items
  in **Other**.
- [Search Library](/docs/tools/library_search): finds documents and files by name and text.
- [Get Library Item](/docs/tools/library_get): reads a document's blocks, or a file's details.
- [View Library File](/docs/tools/library_view): looks at an image or a PDF, or reads another file
  as text.
- [Create Library Item](/docs/tools/library_create): creates a document or a folder.
- [Append Document Blocks](/docs/tools/library_blocks_append): adds blocks after a given block or
  at the end.
- [Update Document Block](/docs/tools/library_block_update): replaces one block.
- [Delete Document Block](/docs/tools/library_block_delete): removes one block.
- [Update Library Item](/docs/tools/library_update): renames an item or changes its icon and
  colour.
- [Move Library Item](/docs/tools/library_move): moves an item into a folder, or to **Other**.
- [Trash Library Item](/docs/tools/library_delete_trash): moves an item to Trash.
- [List Daily Notes](/docs/tools/daily_notes_list): finds daily and weekly notes, in the **Tasks &
  Calendar** group.
- [Create Daily Note](/docs/tools/daily_notes_create): creates the note for a period, or returns the
  one already there, in the **Tasks & Calendar** group.
- [Execute Script](/docs/tools/execute_script): runs a script that can list and read documents.

### Workflow nodes

- [Library](/docs/nodes/library): creates a document from Markdown or blocks, reads, updates or
  deletes one, and files an image.
- [Get Library Item](/docs/nodes/library_get): reads one document or file.
- [List Library](/docs/nodes/library_list): lists the whole Library, one folder or the unfiled
  items.
- [Library Tools](/docs/nodes/library_tools): gives an AI Agent step the Library tools, one switch
  each.
- [Daily Note](/docs/nodes/daily_note): creates, opens or lists the note for a period.
- [Download Attachment](/docs/nodes/download_attachment): downloads a file and keeps it in the
  Library.
- [Memory](/docs/nodes/memory): stores what a document says as memories linked back to it.

## Examples

### Turn meeting notes into tasks for the week

Start your meeting notes from a "Meeting" template in `Templates` with `{{ date }}` and a
"Follow-ups" heading. After the meeting, ask your agent: "Go through Tuesday's meeting notes, add the
follow-ups as tasks, and list them under Follow-ups in the note." It creates "Ask Sam about the
contract" for Friday with a reference to the note, and appends the list under the heading.

### Save agent research to a folder

Ask your agent: "Research standing desks under €600 and give me a shortlist. Save it in Research."
It hands the work to your Research Agent, which writes "Standing desks: shortlist" into the
`Research` folder and links it to earlier reports with `@` links. To show a friend, turn on
**Share** and send the link.

### Summarise every video you save

A [Cron Trigger](/docs/nodes/cron_trigger) starts the workflow at 07:00 each morning, and it adds
new videos from your feeds to a `media-watchlist` table. An AI step summarises each video, and the
[Library](/docs/nodes/library) node's **Create Text Document** writes the summary into
`YouTube Summaries`, with the row's **Resource** column pointing at it. See
[Tables and documents](/guides/tables-and-documents) for the full build.

### Write a weekly review from your daily notes

Every Sunday at 18:00, a [Cron Trigger](/docs/nodes/cron_trigger) starts a workflow in which
[Daily Note](/docs/nodes/daily_note) lists the last 7 daily notes and
[Get Library Item](/docs/nodes/library_get) reads each one. An [AI Agent](/docs/nodes/ai_agent)
step with [Library Tools](/docs/nodes/library_tools) summarises the week into this week's note,
where your morning brief can read it.

### Keep your planning rules read-only for agents

Write "How I like my week planned" or your bookkeeping steps as a document, right-click it, select
**AI Access** and turn off **AI tools can write**. Your agents work from it and can't change it. For
a private journal, turn off **AI tools can read** on each document.

## Settings

- **AI Access** (right-click a document or file on the Library page): **AI tools can read** and
  **AI tools can write**.
- **Share** (document toolbar or file header): off by default.
- **Change Icon** and **Change Color** (right-click an item): the icon and colour shown on the
  Library page and on a shared page.
- **Style** (editor toolbar): **Editor width**, from 80 to 180 characters.
- **Settings > Models > Document Embeddings**: **Embed documents**, off by default, and the
  connection and model that embed them. Existing documents are embedded the next time they are
  saved. While it is on, a failing embedding connection stops documents from saving; fix the
  connection or turn embedding off.
- **Ask before** (Agents settings): the first kind of call agents ask before making. **Send** by
  default, so an agent in a session asks before a destructive call such as moving anything to Trash.
- **MCP settings**: which Library tools other AI apps get.
- **Daily Notes** plugin settings: which periods get notes, where they are filed, and the template
  each one starts from.

## Troubleshooting

### "Changed elsewhere" appears while I'm writing

Select **Copy my version** to keep your edits as a separate document and merge them into the
original by hand, or **Reload** to drop them.

### An agent says it can't open or change a document

The document's AI access is off. Right-click it, select **AI Access**, and turn on **AI tools can
read**, or **AI tools can write** if the agent should edit it.

### A file can't be moved into a folder

The file is temporary, such as a file from Upload Media with a retention time. Temporary files
can't be filed. To keep files from a workflow, use Download Attachment or turn off retention
in the Upload Media step.

### A document won't save

A document can hold up to 5 MB. Move part of it into another document.

### From Template says there are no templates

Check that the folder is named exactly `Templates`, sits at the top level of the Library, and has
your templates directly inside it.

## Related

- [Tasks](/docs/tasks): things to complete, with scheduled and deadline dates.
- [Agents](/docs/agents): agent roles, their tools and their memory.
- [Workflows](/docs/workflows): write documents on a schedule or from incoming email and messages.
- [Tables](/docs/collections): records that point at their notes through a Resource column.
- [Plugins](/docs/plugins): Daily Notes, and the Discord Gateway that files attachments.
- [MCP](/docs/mcp): give Claude Code and other AI apps your documents.
- [Daily notes](/guides/daily-notes): set up daily and weekly notes and a weekly review.
- [Tables and documents](/guides/tables-and-documents): a media tracker with a note per row.
- [Giving your agent memory](/guides/giving-your-agent-memory): read documents into memory.
- [A personal operating system](/guides/personal-operating-system): how notes, tables and
  workflows fit together.
