# Kanban

Cards in columns, read from a database table or a spreadsheet, that people drag from stage to stage.

**What it is.** Cards in columns, read from a database table or a spreadsheet, that people drag from stage to stage, made by an AI agent such as Claude Code or Codex in Artifacts (tryartifacts.com), the office for AI agents. **Ask for it** in plain words: “Make an Artifacts Kanban board of the hiring pipeline from the candidates database, one column per stage.” It stays a live item at its own link in the space, and the space’s owner can [publish](/docs/publishing) it as a web page anyone can open. See one an agent made: [Deal pipeline](/p/northwind-pipeline), the CRM as a board, stage by stage.

> Agents read this guide with the `guide` tool, topic `kanban`, before they first make a Kanban board. It is shown here word for word, so people and their agents work from the same method.

| | |
| --- | --- |
| Guide topic | `kanban` |
| Tools | [4 tools](/docs/reference/kanban) |

A Kanban board is cards in columns, as on Trello, Jira or Linear: a hiring pipeline (Applied → Screen →
Interview → Offer → Hired), a sprint (To do → In progress → Review → Done), a sales pipeline (Lead →
Qualified → Proposal → Won), a content plan, support tickets. Each column is a stage; people drag a card to
the next column as the work moves, and see at a glance how much sits in each stage.

A board holds no cards of its own. Like a dashboard, which reads its numbers from the space's spreadsheets,
it reads its cards from where the data lives, every time it is opened:

- **A database table**: each record is a card.
- **A spreadsheet**: each row under a header row is a card.
- **Both, or several of each** (up to ten): one board over a table of tasks and a sheet of requests. Columns
  with the same name are one column.

Whatever is done on the board is done to that data: moving a card writes its new column into the record or
the row; a new card is a new record or row; renaming a column renames that value there; deleting a card
deletes its record or row. A change made in the table or the sheet (by a person, by you with the database or
sheet tools) shows on the board. The board keeps only its layout: the columns' order, empty columns, and the
cards' order in their columns.

The tools: `create_kanban`, `read_kanban` (the connections, then each column with its cards and their keys),
`update_kanban` (sources, rename_columns, columns, move_cards, add_cards, change_cards, delete_cards),
`render_kanban` (a screenshot and checks), and `comment` with `card`.

## A board, a database or a sheet?

The data goes in a database (records with typed fields, people, dates, a page of notes per record) or a sheet
(rows with numbers and formulas, or an export someone gave you). The board is how people move that data
through stages. Make the database or the sheet first, then the board on it.

Make a board when the work moves through stages and people ask "where is it?" and "what is stuck?". When
there are no stages (a contact list, an inventory), it is a table: leave it as the database or the sheet. When
the question is "when?" (launch dates, a schedule), it is a timeline.

## Connections

**A database table**: `{ "database": "<item id>", "table": "Candidates", "group": "Stage" }`. `group` is
the field whose value is the card's column:

- a **select** field (the usual one): its choices are the columns, in their order, empty ones included.
  Moving a card to a new name adds that choice;
- a **person** field: a column per person (who owns what). The columns are people of the space: a card moves
  only to a member, and a person's column keeps their name;
- a **text** field: a column per value the records have.

**A spreadsheet**: `{ "sheet": "<item id>", "tab": "Requests", "group": "Status", "key": "ID" }`. The first
row is the header row; `group`, `title`, `fields` and `key` name its columns.

- Leave out `range` and the board reads the tab's whole used range, so rows added later show. Give `range`
  ("B3:F200", or "Requests!B3:F200") when the block does not start at A1 or the tab holds other things; new
  cards fill the range's empty rows and stop at its last row.
- Give `key`, a column of unique ids, when rows get inserted, sorted or deleted. Without one a card is known
  by its row number, so a row inserted above it moves its place on the board and its comments to another card.
- Cells are read as the sheet shows them: a date cell shows as a date on the card.

## Order of work

1. **The data.** `create_database` with a select field for the stage and the fields a card shows (Owner as a
   person, Due as a date, Priority as a select), or `create_sheet` with a header row and a Status column. Give
   every record or row a stage.
2. **The connection(s)**, as above.
3. **What a card shows**: `title` (default the table's first field; the sheet's first column that is not
   `group` or `key`) and up to three `fields`.
4. **The columns**: the stages in the order work moves, left to right, with the empty ones too.
5. `create_kanban`, then `render_kanban`. Fix what the checks name. Give the person the URL.

## Columns

- **Stages, left to right**, in the order work moves: "Backlog, In progress, Review, Done", never alphabetical.
  A select field's choices are its columns' order; `columns` sets it (and reorders the choices to match).
- **Three to seven columns.** More and the board scrolls sideways past what anyone reads; fold rare stages
  into their neighbours. One column is not a board.
- **A finish column** ("Done", "Hired", "Won") so finished work leaves the active columns, and a "Won't do" or
  "Lost" column when work stops: moving a card there keeps it, where deleting it does not.
- **Short names**, the words the team says: "Review", not "Waiting for review by the design team".
- **Empty stages stay.** Give them in `columns` (`["To do", "In progress", "Review", "Done"]`) so people can
  drop cards there.
- **No value.** Records or rows with nothing in the group field sit in a first column of their own ("No
  status"). Give them a stage: `move_cards`, or fix the data.
- **Renaming** (`rename_columns: [{ "from": "Doing", "to": "In progress" }]`) renames the select's choice on
  the field and every record, the text field's values, or the sheet's cells.

## Cards

- **The title says what the work is**, read without opening it: "Fix login on Safari", "Ana Ruiz — Senior
  designer", "Acme renewal ($48k)". Not "Task 12", not a sentence of notes.
- **Up to three fields**, the ones people decide by: who owns it, when it is due, how big or urgent. More makes
  each card long and the board slow to scan; the rest is one click away (a database card opens its record with
  every field and its notes; a sheet card opens its row).
- **One card per piece of work.** Split work that moves at different speeds into cards.

## An example

```json
{
  "space_id": "<space>",
  "title": "Hiring — Senior designer",
  "description": "Candidates by stage. Move a card when the stage changes.",
  "sources": [
    { "id": "cand", "database": "<database id>", "table": "Candidates", "group": "Stage", "fields": ["Owner", "Next step"] },
    { "id": "req", "sheet": "<sheet id>", "tab": "Requests", "group": "Status", "key": "ID", "fields": ["Owner"] }
  ],
  "columns": ["Applied", "Screen", "Interview", "Offer", "Hired", "Rejected"]
}
```

Card keys are `<connection id>:<record id>`, or `<connection id>:<key value>` (`:r<row>` without a key) for a
sheet: `cand:rec_8fK2…`, `req:R-14`.

## Moving work

`read_kanban` first: it gives each card's key and where it sits now. Then `update_kanban`:

- `move_cards: [{ "card": "cand:rec_…", "column": "Interview" }]` — it writes the record's or row's group
  field; `before` (a card's key) places it above that card, otherwise it goes last in the column.
- `add_cards: [{ "column": "Applied", "title": "Dana Fox", "values": { "Owner": "Sam" }, "source": "cand" }]` —
  a record in the table, or a row under the sheet's last; `source` when the board has more than one.
- `change_cards: [{ "card": "...", "values": { "Due": "2026-11-20" } }]` — fields by name; null clears one.
- `delete_cards: ["..."]` deletes the record or the row for good: only when the person asked for it.

Or change the database or the sheet with their own tools (`update_records`, `sheet_write_range`): the board
reads them each time it is opened, and open boards update.

## Check it

`render_kanban` shows the board as people see it, with checks: cards with no value in the group field, cards
with no title, a single column, a connection that broke (its table, field or sheet column was removed or
renamed — reconnect it with `sources`). Look at the screenshot: every stage in order, titles that read on their
own, three fields or fewer.

## Comments

`comment` with `card` (its key) starts a thread on a card; people see it on the card and in the panel. A
sheet card's comments follow its row number unless the connection has a `key`.

## See it in use

- **Roles:** [AI for controllers and treasurers](/roles/controller), [AI for regulatory affairs managers](/roles/regulatory-affairs-manager), [AI for customer service representatives](/roles/customer-service-representative), [AI for editors](/roles/editor), [AI for logisticians](/roles/logistician), [AI for HR managers](/roles/hr-manager)
- **Articles:** [AI CRM: Run Your Sales Pipeline With an AI Agent](/blog/ai-crm-sales-pipeline), [What Is a Kanban Board? Columns, WIP Limits and an Example](/blog/kanban-board)
- **Examples:** [24 pages agents made for a sample company](/examples)
