---
title: Collections
summary: >-
  Tables for records you sort, filter and chart, such as bills or books, that your agents and workflows can fill and query.
group: Workspace
order: 3
---

Collections are the tables in your workspace, called **Tables** in the app. For example, a
workflow can add emailed bills to an **Invoices** table, and your agent can tell you what you owe
this month.

## How tables fit in your workspace

Use a table for records you want to sort, filter, count or chart, such as bills, books or meter
readings.

- A workflow can add and update rows each time it runs, for example when an email arrives.
- Agents can query your rows to answer questions, and add rows, columns and tables when you ask.
- [Data Views](/docs/data-views) and charts on your [pages](/docs/pages) read one table each.
- A Resource column links a row to a document in your [Library](/docs/documents), a workflow,
  another table or a memory.

Prose goes in a document, which a row can link with a Resource column. Things to do are
[Tasks](/docs/tasks); to track more about them, add columns to the **Tasks** table. A thought you
haven't decided about yet goes in the [Inbox](/docs/inbox).

## Ways to create a table and fill it

- In the app, open **Tables** in the sidebar and select **Create Table**. Inside a table, add rows
  with **Add row** and edit any cell by clicking it.
- Ask an agent: "Create a table to track my reading list with title, author and status." Then "Add
  Piranesi by Susanna Clarke to my reading list."
- From a workflow, a [Table](/docs/nodes/table) node inserts, updates or upserts rows each time
  the workflow runs. A workflow can start from a [Gmail Trigger](/docs/nodes/gmail_trigger), a
  [Telegram Message](/docs/nodes/telegram_message_trigger), a
  [Webhook Trigger](/docs/nodes/webhook_trigger), an [RSS feed](/docs/nodes/generic_rss_ingest) or
  a [Cron Trigger](/docs/nodes/cron_trigger) schedule.
- From another AI app such as Claude or your editor: once you turn on the [MCP](/docs/mcp), it can
  list, read, create and fill tables.
- On a page, a card or checklist Data View has an **Add to** line at the bottom (for example
  **Add to Groceries**) that adds what you type as a row.
- From a file: in a table, open the **⋮** menu and select **Import…** to bring in a CSV or JSON
  file.

### Rows written by workflows

To write a new field from a workflow, add the column to the table first. Filters typed into the
[Table](/docs/nodes/table) node are fixed values; to filter by something an earlier step found,
pass it in as dynamic filters.

To start a workflow when a feature's data changes, use that feature's trigger, such as
[Task Event Trigger](/docs/nodes/task_event_trigger),
[Calendar Block Trigger](/docs/nodes/calendar_block_trigger),
[GTD On Capture Item Created](/docs/nodes/gtd_on_capture_item_created) or
[On Timer Event](/docs/nodes/timer_event_trigger).

### Rows from a file

The table keeps the rows that fit, and the result says how many were added, how many failed and
why.

- A CSV file needs a header row whose names match the table's columns. Create any missing columns
  before you import.
- A JSON file holds a list of objects, or `{ "rows": [...] }`. Imported into a table with no
  columns and no rows, it creates the columns from the data. Afterwards, change any column that
  should be a Select, Resource or Integer to that kind.

## Your features' tables

Tasks, Calendar, Inbox, Agents and three plugins keep their main records in these tables.

| Feature | Tables |
|---|---|
| [Tasks](/docs/tasks) | **Tasks**, **Projects**, **Labels** |
| [Calendar](/docs/calendar) | **Calendar Blocks** |
| [Inbox](/docs/inbox) | **GTD Captures** |
| [Agents](/docs/agents) | **Agents**, **Agent Sessions**, **Agent Transcript** |
| Daily Notes ([plugin](/docs/plugins)) | **Daily Notes** |
| Timers ([plugin](/docs/plugins)) | **Timers**, **Timer Sessions** |
| Objectives ([plugin](/docs/plugins)) | **Objectives** |

Open any of them under **Tables** to query it, chart it or show it in a Data View. Search
**Agent Transcript**, or chart who did what.

You can add your own columns to a feature's table. Keep them optional.

Complete tasks on the [Tasks](/docs/tasks) page or with the task tools. Add and change calendar
blocks and captures on their own pages, or with their own agent tools and workflow nodes.

## Columns and kinds

Each column has a name, a kind and an optional description.

| Kind | Holds |
|---|---|
| **Text** | A short piece of text: a name, a title, a code. |
| **Long text** | Several paragraphs, edited in a larger box. |
| **Block document** | Rich content with headings, lists and checklists, inside the row. |
| **Select** | One of a fixed set of options, each with an optional colour: a named colour or a hex code. |
| **Integer** | A whole number. |
| **Decimal** | A number with decimals, such as an amount. |
| **Boolean** | Yes or no. |
| **Date** | A day, with no time and no timezone. |
| **Date and time** | A moment, shown in your timezone. |
| **Resource** | A link to a document, workflow, table or memory. |
| **List** | Several values of one kind, such as a list of Resources. |
| **Object** | A small set of named fields, such as an address. |
| **Tool group** | A configured group of agent tools. |
| **JSON** | Any JSON value, unchecked, such as the raw data a workflow received. |

Agents read each column's description, so put units and formats there: "Amount in euros,
including VAT."

An indexed column is faster to filter by exact values ("is", "is one of"), and a number or date
column is also faster to filter by range and to sort. Text columns sort and filter by range at the
same speed either way. An index costs some storage and a little time on each write. Every column is
indexed unless you turn **Indexed** off in the column editor; a column that holds JSON, a list or an
object is always indexed. Indexes are built in the background shortly after you save.

## Row IDs

Every row has an id. When you create a table, **Row ID format** decides how new ids are made:

- **Unique code** (the default): a generated code, unless the writer supplies its own. Supply your
  own id for rows that mirror something elsewhere, such as a Discord message, a Notion page or a
  Telegram chat. A workflow can then upsert by that id to avoid duplicates.
- **Counting number**: 1, 2, 3 and so on.

The format can't be changed after the table is created.

## Checked writes and broken rows

Every write is checked against the table's columns. A value outside a Select's options, a fraction
in an Integer column or a field the table doesn't have is refused with the reason.

A row can still stop fitting, for example after you change a column's kind. It shows in place as
**Broken row**, with the column and the reason. Select **Repair** to fix the row as JSON and
**Save row**, or delete it.

## Create a table

To create a table, open **Tables** and select **Create Table**.

1. Enter a **Name**, such as "Reading list". The handle, which workflows and views use, is made
   from the name (`reading-list`); or type your own under **Handle (optional)**.
2. Add a **Description (optional)**.
3. Choose the **Row ID format**.
4. Add columns: a name, a kind, **Required** if every row needs it, and a description. Select
   columns get their **Options**.
5. Select **Create Table**.

## Change a column

To add a column, select **+** at the end of the column headers. To rename a column, change its
kind or make it required, right-click its header and select **Edit column…**. A column can be made
required once every row has a value in it.

To delete a column, select **Delete column…**, or **Delete column and its data…** when it still
holds data.

## Point a feature at a different table

To point a feature at another table, open **Settings**, then **Tasks**, **Calendar**, **Inbox** or
**Agents**, and pick the table in that feature's table field. For Daily Notes and Timers, the same
field is under **Settings** → **Plugins**. The table you pick needs the columns the feature uses.

## Control what AI tools can reach

Each table has two switches, both on by default. To change them, open the table's **⋮** menu,
select **Settings…**, and under **AI access** set:

- **AI tools can read**: off hides the table from agents, from other AI apps over MCP, from the
  scripts agents run, and from table tools in workflows.
- **AI tools can write**: off lets AI tools read and link to the table but not change it.

Then select **Save AI access**. The [Table](/docs/nodes/table) and
[JavaScript](/docs/nodes/js_script) workflow nodes run with the access of whoever saved the
workflow, so the switches don't apply to them.

## Rename, export or delete a table

To rename a table or change its description, ask an agent: "Rename the reading-list table to Books
and describe it as everything I've read since 2024."

To export a table, open its **⋮** menu and select **Export as CSV** or **Export as JSON**.

To delete a table and all its rows, open **⋮** → **Settings…** and select **Delete Table** under
**Danger Zone**. This can't be undone. Deleting is refused while a widget on a page, a workflow
node or a feature setting still uses the table; remove or repoint that use first.

## Agent tools and workflow nodes

### Agent tools

Agents find these in the **Workspace** tool group. Deleting a row or a table asks you first.

- [List tables](/docs/tools/list_tables): lists the tables an agent can read, with column and row
  counts.
- [Get table](/docs/tools/get_table): reads a table's columns, their kinds and their descriptions.
- [Query table](/docs/tools/query_table): searches, filters and sorts rows.
- [Get table row](/docs/tools/get_table_row): reads one full row.
- [Create table](/docs/tools/create_table): creates a table, with its columns.
- [Update table](/docs/tools/update_table): renames a table or changes its description.
- [Modify table schema](/docs/tools/modify_table_schema): adds, removes, renames and changes
  columns.
- [Insert table row](/docs/tools/insert_table_row): adds one or many rows.
- [Upsert table row](/docs/tools/upsert_table_row): adds or replaces a row by id.
- [Delete table row](/docs/tools/delete_table_row): deletes one row.
- [Delete table](/docs/tools/delete_table): deletes a table and its rows.

To give an agent tools for one table only, add the **Table Rows** group to it and choose the
table. The agent gets tools named after that table, such as `reading_list_add`.

Other AI apps get the same tools from the **Tables** group in the MCP settings, with both delete
tools off by default.

### Workflow nodes

- [Table](/docs/nodes/table): inserts, gets, upserts, updates, queries and deletes rows in one
  table.
- [Table Tools](/docs/nodes/table_tools): gives an AI step in a workflow tools for one table, with
  removing rows off by default. These tools follow the table's AI access switches.
- [JavaScript](/docs/nodes/js_script): reads and writes your tables from a script.

## Examples

### Know what you owe this month

An **Invoices** table has Vendor (Text), Amount (Decimal), Due (Date), Status (Select: Paid,
Unpaid, Scheduled, Overdue) and Source (Resource, the original document). A
[Gmail Trigger](/docs/nodes/gmail_trigger) starts the workflow on new mail matching
`in:inbox has:attachment`, an [AI Agent](/docs/nodes/ai_agent) step reads the invoice's amount and
due date, and a [Table](/docs/nodes/table) step adds the row as Unpaid. When the amount is over
€1,000, an [If](/docs/nodes/if) step sends you a message with
[Telegram Send](/docs/nodes/telegram_send).

### Plan your afternoon by energy

Add an `energy` Select column (High, Low) to **Tasks**, with the description "How much focus this
task needs." A checklist Data View over **Tasks** shows open tasks with Low energy. Ask your agent
"Plan my afternoon: high-energy tasks first, low-energy ones after three", and it reads the energy
column with [Query table](/docs/tools/query_table) and blocks out the time on your
[calendar](/docs/calendar).

### See where your week went

A chart of **Timer Sessions** on a page shows session length by label for each day. Every Friday
at 17:00 a [Cron Trigger](/docs/nodes/cron_trigger) starts a workflow: a [Table](/docs/nodes/table)
step queries the week's sessions, a [JavaScript](/docs/nodes/js_script) step adds them up by
label, and another Table step upserts one row per label into a **Weekly time** table, with the week
as part of the row's id. A second chart, over **Weekly time**, compares one week with the next.

### Keep a reading list from Telegram

A **Reading list** table has Title (Text), Author (Text) and Status (Select: Want to read,
Reading, Finished). A [Telegram Message](/docs/nodes/telegram_message_trigger) trigger hands each
message to an [AI Agent](/docs/nodes/ai_agent) step with [Table Tools](/docs/nodes/table_tools)
over **Reading list**, and [Telegram Send](/docs/nodes/telegram_send) replies with what changed.
Send "Finished Piranesi, add Klara and the Sun" and it updates one row and adds another.

## Troubleshooting

### An agent says it can't find a table

The table's **AI tools can read** switch is off. To turn it on, open **⋮** → **Settings…**.

### A Data View or workflow stopped working after a rename

Renaming a column doesn't update the things that use it. Edit the Data View, the workflow's Table
node or the saved query and choose the new name.

### A new required column is refused

The table already has rows, and they would have no value. Add the column as optional, fill it in,
then make it required.

### An import reports failures

Each failed row comes with its reason. The usual causes are a CSV header that doesn't match a
column name, or a value outside a Select's options. Fix the file or the columns and import the
failed rows again.

## Related

- [Data Views](/docs/data-views): show a table on a page as a table, cards or a checklist, and
  chart it.
- [Workflows](/docs/workflows): bring data into tables from email, messages, feeds and schedules.
- [Agents](/docs/agents): the agents that query, fill and design your tables.
- [Tasks](/docs/tasks), [Calendar](/docs/calendar) and [Inbox](/docs/inbox): features whose data
  are tables you can extend.
- [MCP](/docs/mcp): reach your tables from other AI apps.
- Guides: [Tables](/guides/tables) on choosing column kinds,
  [Tables and documents](/guides/tables-and-documents) on keeping rows and notes together, and
  [Charts](/guides/charts).
