{
  "spec_version": "1",
  "id": "daily-commit-summary",
  "name": "Daily Commit Summary to Discord",
  "created_at": "2026-05-28T00:00:00Z",
  "updated_at": "2026-05-28T00:00:00Z",
  "enabled": false,
  "flow": {
    "nodes": [
      {
        "id": "entry",
        "node_type": "entry",
        "data": {
          "schedule_type": "hours",
          "interval": 24,
          "persona": "discord-reporter-agent"
        },
        "position": [0.0, 0.0]
      },
      {
        "id": "summarize-commits",
        "node_type": "prompt",
        "data": {
          "prompt": "Fetch the last 24 hours of commits from the GitHub repository OWNER/REPO using web_fetch.\n\nUse this URL (no auth needed for public repos):\nhttps://api.github.com/repos/OWNER/REPO/commits?since=YESTERDAY_ISO8601\n\nReplace OWNER/REPO with the actual repo and YESTERDAY_ISO8601 with the ISO 8601 timestamp for exactly 24 hours ago.\n\nThen post a summary to Discord channel CHANNEL_ID using discord_send_message.\n\nFormat the summary like this:\n**Daily Commit Summary — OWNER/REPO**\n_Last 24 hours (DATE to DATE)_\n\n• `abc1234` — Commit message here (author)\n• `def5678` — Another commit message (author)\n\n**Total: N commits**\n\nIf there are no commits, post: **Daily Commit Summary — OWNER/REPO** — No commits in the last 24 hours.\n\nIMPORTANT: Replace OWNER/REPO and CHANNEL_ID with the actual values before using this flow."
        },
        "position": [250.0, 0.0]
      }
    ],
    "edges": [
      {
        "id": "edge-entry-to-summary",
        "source": "entry",
        "target": "summarize-commits"
      }
    ]
  }
}
