{
  "name": "\ud2f0\uc2a4\ud1a0\ub9ac \uc790\ub3d9 \ud3ec\uc2a4\ud305 \uc6cc\ud06c\ud50c\ub85c\uc6b0",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 9 * * *"
            }
          ]
        }
      },
      "id": "schedule-trigger",
      "name": "\ub9e4\uc77c \uc624\uc804 9\uc2dc \uc2e4\ud589",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "title",
              "name": "title",
              "value": "=\uc624\ub298\uc758 \uc790\ub3d9 \ud3ec\uc2a4\ud305 - {{ $now.format('yyyy-MM-dd') }}",
              "type": "string"
            },
            {
              "id": "contentHTML",
              "name": "contentHTML",
              "value": "=<h1>{{ $now.format('yyyy\ub144 MM\uc6d4 dd\uc77c') }} \uc790\ub3d9 \ud3ec\uc2a4\ud305</h1>\n<p>\uc774 \ud3ec\uc2a4\ud2b8\ub294 <strong>n8n</strong>\uacfc <strong>Puppeteer</strong>\ub97c \uc774\uc6a9\ud574 \uc790\ub3d9\uc73c\ub85c \uc791\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4.</p>\n<h2>\uc624\ub298\uc758 \ud560 \uc77c</h2>\n<ul>\n<li>n8n \uc6cc\ud06c\ud50c\ub85c\uc6b0 \uc810\uac80</li>\n<li>\uc790\ub3d9\ud654 \uc2dc\uc2a4\ud15c \ubaa8\ub2c8\ud130\ub9c1</li>\n<li>\uc0c8\ub85c\uc6b4 \uae30\ub2a5 \uac1c\ubc1c</li>\n</ul>\n<p>\uc790\ub3d9\ud654\uc758 \ud798\uc73c\ub85c \ub354 \ud6a8\uc728\uc801\uc778 \ube14\ub85c\uae45\uc744 \uacbd\ud5d8\ud574\ubcf4\uc138\uc694! \ud83d\ude80</p>",
              "type": "string"
            },
            {
              "id": "category",
              "name": "category",
              "value": "\uac1c\ubc1c",
              "type": "string"
            },
            {
              "id": "tags",
              "name": "tags",
              "value": "n8n,\uc790\ub3d9\ud654,\ud2f0\uc2a4\ud1a0\ub9ac,Puppeteer",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "content-setup",
      "name": "\ucf58\ud150\uce20 \uc124\uc815",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "command": "=node /path/to/tistory-poster.js \"{{ $json.title }}\" \"{{ $json.contentHTML }}\" \"{{ $json.category }}\" \"{{ $json.tags }}\"",
        "options": {}
      },
      "id": "execute-script",
      "name": "Puppeteer \uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        680,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "success-check",
              "leftValue": "={{ $json.exitCode }}",
              "rightValue": 0,
              "operator": {
                "type": "number",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "success-check",
      "name": "\uc131\uacf5 \uc5ec\ubd80 \ud655\uc778",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        900,
        300
      ]
    },
    {
      "parameters": {
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "slackApi",
        "channel": "#general",
        "text": "=\u2705 \ud2f0\uc2a4\ud1a0\ub9ac \ud3ec\uc2a4\ud305 \uc131\uacf5!\n\uc81c\ubaa9: {{ $node['\ucf58\ud150\uce20 \uc124\uc815'].json.title }}\n\uc2dc\uac04: {{ $now.format('yyyy-MM-dd HH:mm:ss') }}",
        "otherOptions": {}
      },
      "id": "success-notification",
      "name": "\uc131\uacf5 \uc54c\ub9bc (Slack)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.1,
      "position": [
        1120,
        200
      ]
    },
    {
      "parameters": {
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "slackApi",
        "channel": "#general",
        "text": "=\u274c \ud2f0\uc2a4\ud1a0\ub9ac \ud3ec\uc2a4\ud305 \uc2e4\ud328!\n\uc81c\ubaa9: {{ $node['\ucf58\ud150\uce20 \uc124\uc815'].json.title }}\n\uc624\ub958: {{ $node['Puppeteer \uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589'].json.stderr }}\n\uc2dc\uac04: {{ $now.format('yyyy-MM-dd HH:mm:ss') }}",
        "otherOptions": {}
      },
      "id": "error-notification",
      "name": "\uc2e4\ud328 \uc54c\ub9bc (Slack)",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.1,
      "position": [
        1120,
        400
      ]
    }
  ],
  "connections": {
    "\ub9e4\uc77c \uc624\uc804 9\uc2dc \uc2e4\ud589": {
      "main": [
        [
          {
            "node": "\ucf58\ud150\uce20 \uc124\uc815",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\ucf58\ud150\uce20 \uc124\uc815": {
      "main": [
        [
          {
            "node": "Puppeteer \uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Puppeteer \uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589": {
      "main": [
        [
          {
            "node": "\uc131\uacf5 \uc5ec\ubd80 \ud655\uc778",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\uc131\uacf5 \uc5ec\ubd80 \ud655\uc778": {
      "main": [
        [
          {
            "node": "\uc131\uacf5 \uc54c\ub9bc (Slack)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\uc2e4\ud328 \uc54c\ub9bc (Slack)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [],
  "triggerCount": 0,
  "updatedAt": "2024-01-01T00:00:00.000Z",
  "versionId": "1"
}