{
  "id": "tagindexrefresh1",
  "name": "Obsidian Tag Index Refresher",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 3 * * *"
            }
          ]
        },
        "timezone": "Asia/Seoul"
      },
      "id": "trigger-id",
      "name": "Daily at 03:00 AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "command": "/Users/gim-ughyeon/.openclaw/.venv/bin/python3 /Users/gim-ughyeon/.openclaw/workspace/skills/obsidian_tag_manager/tag_refresher.py"
      },
      "id": "execute-id",
      "name": "Execute Tag Refresher",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.changed }}",
              "value2": true
            }
          ]
        }
      },
      "id": "if-changed-id",
      "name": "Check if Changed",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        650,
        280
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://discord.com/api/webhooks/1489962294073884774/MINxdbBefxlXMvmPIsgzGhwszAAMLpNk3VsuG20u6VUYquYBFDpKr8Z6rgJ0JfBZYAj0",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"content\": \"\ud83d\udd04 **[ObsidianTagManager]** \ud0dc\uadf8 \ubaa9\ub85d\uc774 \uc5c5\ub370\uc774\ud2b8\ub418\uc5c8\uc2b5\ub2c8\ub2e4.\\n- \ucd94\uac00\ub41c \ud0dc\uadf8: {{ $node[\\\"Execute Tag Refresher\\\"].json.added.join(', ') || '\uc5c6\uc74c' }}\\n- \uc0ad\uc81c\ub41c \ud0dc\uadf8: {{ $node[\\\"Execute Tag Refresher\\\"].json.removed.join(', ') || '\uc5c6\uc74c' }}\"\n}",
        "options": {}
      },
      "id": "discord-notify-id",
      "name": "Discord Notification (Change)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        850,
        260
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://discord.com/api/webhooks/1489962294073884774/MINxdbBefxlXMvmPIsgzGhwszAAMLpNk3VsuG20u6VUYquYBFDpKr8Z6rgJ0JfBZYAj0",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"content\": \"\ud83d\udea8 **[ObsidianTagManager]** \uc778\ub371\uc2a4 \uac31\uc2e0 \uc6cc\ud06c\ud50c\ub85c\uc6b0 \uc2e4\ud589 \uc911 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.\\n- \uc5d0\ub7ec \uba54\uc2dc\uc9c0: {{ $json.error || '\uc54c \uc218 \uc5c6\ub294 \uc624\ub958' }}\"\n}",
        "options": {}
      },
      "id": "discord-error-id",
      "name": "Discord Notification (Error)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        650,
        450
      ]
    }
  ],
  "connections": {
    "Daily at 03:00 AM": {
      "main": [
        [
          {
            "node": "Execute Tag Refresher",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Tag Refresher": {
      "main": [
        [
          {
            "node": "Check if Changed",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Discord Notification (Error)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Changed": {
      "main": [
        [
          {
            "node": "Discord Notification (Change)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": true
}