Workflow Authoring
⚠️ Planned Feature: This feature is not yet implemented. The documentation below describes the intended design.
Create automated workflows that combine multiple operations.
Overview
Section titled “Overview”Workflows are sequences of steps that:
- Process notes automatically
- Chain agent operations
- React to file changes
- Schedule recurring tasks
Workflow Definition (YAML)
Section titled “Workflow Definition (YAML)”name: Daily Reviewdescription: Generate daily summary of changestrigger: 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}}"Triggers
Section titled “Triggers”| Type | Description |
|---|---|
schedule | Cron expression |
file_change | On note modification |
manual | Explicit invocation |
webhook | HTTP trigger |
Each step can:
- Call a tool with parameters
- Invoke an agent with a prompt
- Reference previous step results with
{{previous.*}}
Variables
Section titled “Variables”Use template variables in steps:
| Variable | Description |
|---|---|
{{date}} | Current date |
{{time}} | Current time |
{{previous.results}} | Output from previous step |
{{previous.response}} | Agent response from previous step |
Running Workflows
Section titled “Running Workflows”# Run a workflow manuallycru workflow run "daily-review"
# List available workflowscru workflow listSee Also
Section titled “See Also”- Index - Workflow system overview
- Markup - Planned prose syntax
- Sessions - Session tracking
- Creating Plugins - Plugin development
- Custom Tools - Creating tools
- Daily Summary - Example workflow script