Skip to content

Workflow Authoring

⚠️ Planned Feature: This feature is not yet implemented. The documentation below describes the intended design.

Create automated workflows that combine multiple operations.

Workflows are sequences of steps that:

  • Process notes automatically
  • Chain agent operations
  • React to file changes
  • Schedule recurring tasks
workflows/daily-review.yaml
name: Daily Review
description: Generate daily summary of changes
trigger:
schedule: "0 18 * * *" # 6 PM daily
steps:
- name: Find today's notes
tool: search
params:
query: "modified:today"
- name: Summarize
agent: Researcher
prompt: "Summarize these notes: {{previous.results}}"
- name: Create summary
tool: create_note
params:
title: "Daily Summary - {{date}}"
content: "{{previous.response}}"
TypeDescription
scheduleCron expression
file_changeOn note modification
manualExplicit invocation
webhookHTTP trigger

Each step can:

  • Call a tool with parameters
  • Invoke an agent with a prompt
  • Reference previous step results with {{previous.*}}

Use template variables in steps:

VariableDescription
{{date}}Current date
{{time}}Current time
{{previous.results}}Output from previous step
{{previous.response}}Agent response from previous step
Terminal window
# Run a workflow manually
cru workflow run "daily-review"
# List available workflows
cru workflow list