Kaizen

Kaizen Timelines

Create, fetch, and update custom timelines to filter and organize todos

Timelines let you define custom views over your todos (e.g. "Work focus", "Weekend tasks") with filters such as base timeline, tags, creators, buckets, date range, status, and sort. Use Create Timeline to define a new timeline, Get Timelines to list or fetch one, and Update Timeline to change name, description, color, visibility, or filters. The Kaizen Todos block can then use a timeline ID to fetch todos for that view.

Block Types

Block TypePurpose
kaizen_create_timelineCreate a custom timeline with name, description, color, visibility, and filters.
kaizen_get_timelinesFetch the user's custom timelines (list all or one by id/shareId).
kaizen_update_timelineUpdate an existing custom timeline (name, description, color, visibility, or filters).

Built-in presets (Home, Following, Personal) are not returned by Get Timelines and cannot be updated.


Create Timeline (kaizen_create_timeline)

Creates a custom timeline. Use the output timelineId in Kaizen Todos or Update Timeline.

Input Fields

FieldTypeDescription
namestringTimeline name (required).
descriptionstringOptional description (max 500 chars).
colorstringColor for the timeline (preset hex).
isPublicbooleanMake timeline public (shareable link).
baseTimelinestringStarting source: home, following, personal, all. Default: home.
includedTags / excludedTagsarrayTag IDs to include or exclude.
includedCreatorIds / excludedCreatorIdsarrayCreator user IDs to include or exclude.
includedBucketIds / excludedBucketIdsarrayBucket IDs to include or exclude.
includedTodoIds / excludedTodoIdsarrayTodo IDs to include or exclude.
dateFilter, startDate, endDatestringDate range filter.
status, visibility, prioritystringStatus, visibility, priority filters.
sortBy, sortOrderstringSort (e.g. createdAt, asc/desc).

Outputs

OutputTypeDescription
successbooleanWhether the create succeeded.
timelineIdstringID of the created timeline. Use in Kaizen Todos: <block_id.timelineId>.
timelineobjectThe created timeline object.

Get Timelines (kaizen_get_timelines)

Fetches custom timelines. Omit timelineId to list all; set it to fetch one by ID or share ID.

Input Fields

FieldTypeDescription
timelineIdstringOptional. Omit for all custom timelines; set to timeline ID or share ID to fetch one.

Outputs

OutputTypeDescription
timelinesarrayArray of timeline objects (all or single when timelineId was set).
timelineIdsarrayArray of timeline IDs. Use with Update Timeline or Kaizen Todos.
countnumberNumber of timelines returned.
timelineobjectWhen fetching one: the full timeline object.
timelineIdstringWhen fetching one: its ID.
shareIdstringWhen fetching one public timeline: its share ID.
filterSummarystringWhen fetching one: human-readable filter summary.
creatorobjectWhen fetching one: creator info if available.
includedTodoIds / excludedTodoIdsarrayWhen fetching one: todo IDs to include/exclude from timeline filters.

Update Timeline (kaizen_update_timeline)

Updates an existing custom timeline. Only custom timelines can be updated; built-in ones cannot.

Input Fields

FieldTypeDescription
timelineIdstringCustom timeline to update (from Create/Get or selector).
namestringNew name (1–255 chars). Leave empty to keep current.
descriptionstringNew description. Leave empty to keep current.
colorstringNew color. Leave empty to keep current.
isPublicbooleanUpdate visibility. Leave empty to keep current.
Filter fieldsvariousSame as Create Timeline. Leave all filter fields empty/default to keep current filters; setting any filter replaces the entire filter set.

Outputs

OutputTypeDescription
successbooleanWhether the update succeeded.
timelineobjectThe updated timeline object.

When updating a timeline, leave filter fields empty if you do not want to change filters. Setting any filter field replaces all filters on the timeline.


When to Use Each Block

  • Create Timeline — When you need a new named view (e.g. "Work focus") with specific filters. Use the output timelineId in Kaizen Todos to fetch todos for that timeline.
  • Get Timelines — To list all custom timelines (e.g. for a condition or loop) or to fetch one by ID/share ID and use its filterSummary, includedTodoIds, or excludedTodoIds downstream.
  • Update Timeline — To rename a timeline, change its description/color/visibility, or replace its filters. Chain after Get Timelines or Create Timeline using <block_id.timelineId>.

Referencing Outputs

Use timeline IDs from Create or Get in the Kaizen Todos block:

# After Create Timeline
- type: kaizen_todos
  inputs:
    timelineId: "<create_timeline_1.timelineId>"

# After Get Timelines (one timeline)
- type: kaizen_update_timeline
  inputs:
    timelineId: "<get_timelines_1.timelineId>"
    name: "Updated name"
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started