{
  "workflow_id": "whats_new_today",
  "description": "Lists the files that were created or changed today in one folder and writes the list to a note. Change the folder in the first step to the one you care about.",
  "tasks": [
    {
      "id": "list_todays_files",
      "trigger": "manual",
      "action_type": "file_op",
      "target": "{{desktop_dir}}",
      "payload": {
        "operation": "list",
        "filter": "today",
        "type": "file"
      },
      "output": {
        "store_as": "todays_files",
        "pass_to_next": true
      },
      "next": "write_note"
    },
    {
      "id": "write_note",
      "trigger": "after:list_todays_files",
      "action_type": "file_op",
      "target": "{{desktop_dir}}/new_files_today.md",
      "payload": {
        "operation": "write",
        "content": "# Files touched today ({{date}})\n\n{{todays_files}}\n"
      }
    }
  ]
}
