9. 工賃台帳の自動生成と提供

上級

これはHR分野の自動化ワークフローで、18個のノードを含みます。主にSet, Code, Html, Gmail, Filterなどのノードを使用。 Gmail から Google Sheets によるパンフレット PDF の生成とメール送信

前提条件
  • Googleアカウント + Gmail API認証情報
  • Google Sheets API認証情報

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "a6j2K4btAzegz8SD",
  "meta": {
    "instanceId": "c2650793f644091dc80fb900fe63448ad1f4b774008de9608064d67294f8307c",
    "templateCredsSetupCompleted": true
  },
  "name": "Automate Generate and Deliver Payslip",
  "tags": [],
  "nodes": [
    {
      "id": "c4cfd869-eec5-49c9-b866-48fa3bd39119",
      "name": "手動トリガー",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2560,
        368
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e326b4a7-be63-4ad9-ac69-96068c8db253",
      "name": "会社設定",
      "type": "n8n-nodes-base.set",
      "position": [
        -2352,
        368
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a8a21d06-1edc-400f-9c26-7373fb8da0c1",
      "name": "給与データ取得",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -2128,
        368
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "da81de85-ad5b-499b-9334-c4368dcd8c28",
      "name": "給与明細行の反復処理",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1680,
        304
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "750961aa-cf88-4c19-b510-cfac9769be1f",
      "name": "給与明細データ準備",
      "type": "n8n-nodes-base.code",
      "position": [
        -1456,
        288
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2e0c5829-2360-43d4-a527-a2518d75ff22",
      "name": "メール未送信確認",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1904,
        368
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "4482e304-38a7-40e1-a826-9af818a95f67",
      "name": "給与明細HTML生成",
      "type": "n8n-nodes-base.html",
      "position": [
        -1232,
        288
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "53df5b3b-2bb1-4db0-a051-fd4325ded35b",
      "name": "給与明細PDF生成",
      "type": "n8n-nodes-puppeteer.puppeteer",
      "position": [
        -1008,
        288
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2df79e27-95c0-457e-bc29-e3e97ce20aca",
      "name": "PDFファイル作成",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -784,
        288
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5f081a5d-2db0-4336-a936-9982bd41f0e0",
      "name": "給与明細メール送信",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -560,
        288
      ],
      "webhookId": "e77852a1-96a4-4a96-848d-3cd545ab8583",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "42f8dc37-3f3f-4cf9-8adc-944164ed425d",
      "name": "シートでメール送信済みマーク",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -352,
        288
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "28642d8e-dcff-4bac-be8d-79f61e49310c",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cb040c93-1945-4be2-a9c3-13f38ae5d5dd",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2560,
        528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "db9843d7-7562-4554-a05c-595a4c8aeea7",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1408,
        528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "052fe0ea-ab42-4326-8f6a-c5ada8c5d292",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fdab71ad-e026-43e6-ade7-0ea39e2dffdd",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        528
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "79284cac-77fd-4bbc-9db8-390b26d9584f",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2560,
        896
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "175f2dfd-c839-48b9-8ce3-d4e705eade39",
      "name": "付箋6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3424,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "42dff9cd-0477-4e64-9a15-5ecbb257c8a1",
  "connections": {
    "c4cfd869-eec5-49c9-b866-48fa3bd39119": {
      "main": [
        [
          {
            "node": "e326b4a7-be63-4ad9-ac69-96068c8db253",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2df79e27-95c0-457e-bc29-e3e97ce20aca": {
      "main": [
        [
          {
            "node": "5f081a5d-2db0-4336-a936-9982bd41f0e0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a8a21d06-1edc-400f-9c26-7373fb8da0c1": {
      "main": [
        [
          {
            "node": "2e0c5829-2360-43d4-a527-a2518d75ff22",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5f081a5d-2db0-4336-a936-9982bd41f0e0": {
      "main": [
        [
          {
            "node": "42f8dc37-3f3f-4cf9-8adc-944164ed425d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2e0c5829-2360-43d4-a527-a2518d75ff22": {
      "main": [
        [
          {
            "node": "da81de85-ad5b-499b-9334-c4368dcd8c28",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "53df5b3b-2bb1-4db0-a051-fd4325ded35b": {
      "main": [
        [
          {
            "node": "2df79e27-95c0-457e-bc29-e3e97ce20aca",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "da81de85-ad5b-499b-9334-c4368dcd8c28": {
      "main": [
        [],
        [
          {
            "node": "750961aa-cf88-4c19-b510-cfac9769be1f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "750961aa-cf88-4c19-b510-cfac9769be1f": {
      "main": [
        [
          {
            "node": "4482e304-38a7-40e1-a826-9af818a95f67",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e326b4a7-be63-4ad9-ac69-96068c8db253": {
      "main": [
        [
          {
            "node": "a8a21d06-1edc-400f-9c26-7373fb8da0c1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4482e304-38a7-40e1-a826-9af818a95f67": {
      "main": [
        [
          {
            "node": "53df5b3b-2bb1-4db0-a051-fd4325ded35b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "42f8dc37-3f3f-4cf9-8adc-944164ed425d": {
      "main": [
        [
          {
            "node": "da81de85-ad5b-499b-9334-c4368dcd8c28",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - 人事

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数18
カテゴリー1
ノードタイプ11
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34