Kaizen

Next Up Advance

Advance a Next Up pack timeline's show slot along a TV show's episode order

The Next Up Advance block maintains a "Next Up" pack timeline: one slot per tracked TV show, always pointing at the next uncompleted episode in the show's deterministic (season, episode) order (from TMDB episode metadata). Only the acting show's slot changes — other shows' slots and any hand-added todos on the timeline are untouched, and todos are never deleted.

It is provisioned automatically by the Next Up pack install (one small workflow per trigger: completion advance, Skip button, Random button, Refresh). The pack keeps its configuration — tracked show buckets, skipped episodes — in the pack root workflow's variables.

Block Type

kaizen_next_up_advance

Input Fields

FieldDescription
ActionAdvance (default) — after a completion, move the show's slot to the next uncompleted episode after the completed one. Skip episode — permanently exclude the episode within the pack and move past it. Random episode — re-roll the slot from the show's uncompleted (and unskipped) episodes. Recompute all shows — point every tracked show's slot at its first uncompleted episode (install seed, Refresh, repairs).
TimelineThe Next Up pack's custom timeline.
Pack Root WorkflowThe workflow id whose variables hold the Next Up config. Set automatically at pack install.
TodoThe acted-on episode todo from the trigger (e.g. <menu_trigger.todoId> or the activity trigger's todoId). Required for advance/skip/random; ignored by recompute.

Outputs

OutputTypeDescription
actionstringThe action that ran
slotsjsonPer-show slot outcomes: bucketId, newSlot (todoId, seasonNumber, episodeNumber) or null, removedTodoIds, status (advanced / finished / unchanged)
newSlotTodoIdstringNew slot episode todo id (first slot; empty when the show is finished)
bucketIdstringShow bucket of the first slot outcome
summarystringHuman-readable outcome summary
successbooleanWhether the action succeeded

How slot advancement works

  1. The acted-on todo is resolved to its show and (season, episode) position via TMDB episode metadata; non-episode or untracked todos no-op cheaply.
  2. The successor is the first episode after that position that the acting user has not completed (anywhere in the app) and has not skipped within the pack. Specials (season 0) are excluded unless the pack opts in.
  3. The timeline row is locked and the show's slot is swapped: every shown todo belonging to that show's bucket leaves the timeline (into the capped history list) and the successor is appended. The swap is idempotent — double-fires change nothing.
  4. When no eligible episode remains, the slot empties and the outcome is finished.

Completion state is per-user: episodes live in catalog buckets owned by the TMDB account, so the block reads the acting user's own completion records, not the todo's global flag.

Example: the Next Up pack's workflows

  1. Kaizen Activity trigger (todo completed in a tracked show bucket) → Next Up Advance with Action = Advance. Deployed, so completions fire it automatically.
  2. Menu trigger (card button "Skip") → Next Up Advance with Action = Skip episode.
  3. Menu trigger (card button "Random") → Next Up Advance with Action = Random episode.
  4. API trigger (Refresh / install seed) → Next Up Advance with Action = Recompute all shows.
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