Processes
Repeatable step-by-step workflows: templates, runs, steps and schedules.
Use this for routines with several steps in order: onboarding a client, a monthly close, publishing a post. For a single task that repeats, use set_task_recurrence instead (tasks guide).
Templates
list_processeslists templates with their steps and active schedules.create_processcreates one: anameand 1 to 50steps. Each step has atitleand can setestimated_minutes,priority,organization_id,project_id,due_offset_days,due_from(step_startorprocess_start) andacceptance_criteria.- Add
schedule.cron_expression(5-field cron, in the user's zone unlesstimezoneis given) to run it on its own, for example0 9 1 * *for the 1st of each month at 09:00. - Nothing runs until
start_processor the schedule fires.
There is no tool to edit or archive a template. Ask the user to change it in the app.
Runs
start_processwithprocess_idstarts a run and creates the first step's task. The planner schedules it like any task.- Completing that task advances the run: either
complete_process_stepwith therun_id, orupdate_taskwithstatus: done. The next step's task is created then. skip_process_stepcancels the active step's task and moves on.cancel_process_runstops the run and cancels its open tasks.
Read progress with list_process_runs (filter by status: running, completed, cancelled) and get_process_run, which includes each step's task.
Pitfalls
complete_process_stepfails while the step's task has unchecked acceptance criteria. The tools cannot check them off: ask the user to check them in the app, or skip the step if they agree.- Steps run one at a time. Do not create the later steps' tasks yourself.
- Give each step an estimate, or the planner books it at 30 minutes.