WordPress記事をCSVにエクスポートしてGoogle Driveにアップロード

中級

これはMarketing分野の自動化ワークフローで、7個のノードを含みます。主にSet, Wordpress, GoogleDrive, ConvertToFile, ManualTriggerなどのノードを使用。 WordPress の投稿を CSV にエクスポートし、Google ドライブにアップロードする

前提条件
  • Google Drive API認証情報

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "e122e4b90b0dc212c47b42e306cb84c993d082784105d7fe578eca9a9d068de0",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "c3f63a01-1450-4f97-ab2d-16414613f50c",
      "name": "「Test workflow」クリック時",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        400,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bc725e33-353d-4b3d-b65f-eb295053e5cc",
      "name": "Wordpress 投稿を取得",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        640,
        320
      ],
      "parameters": {
        "options": {
          "status": "publish"
        },
        "operation": "getAll",
        "returnAll": true
      },
      "credentials": {
        "wordpressApi": {
          "id": "xIzhb0T5dm53dkod",
          "name": "Wordpress account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "07ed3f2a-c2b6-4e3c-80d7-425adc6ad36d",
      "name": "フィールド調整",
      "type": "n8n-nodes-base.set",
      "position": [
        860,
        320
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "39ade710-ebe5-4c4d-9bc8-5ad86a3c76b5",
              "name": "id",
              "type": "number",
              "value": "={{ $json.id }}"
            },
            {
              "id": "2714c21d-5ad3-408b-b91d-aa4513f384f3",
              "name": "title",
              "type": "string",
              "value": "={{ $json.title.rendered }}"
            },
            {
              "id": "71194450-c5c6-4bf0-8a33-5aa88d02ddf4",
              "name": "link",
              "type": "string",
              "value": "={{ $json.link }}"
            },
            {
              "id": "69b5c680-965e-4078-809d-74b10da1a29f",
              "name": "content",
              "type": "string",
              "value": "={{ $json.content.rendered }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "234d6755-e862-4277-b0b7-1ac65cd87c12",
      "name": "CSV ファイルに変換",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1080,
        320
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "49901cd8-5ef5-41b5-87c3-a5979cf11644",
      "name": "Google Driveにアップロード",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1300,
        320
      ],
      "parameters": {
        "name": "Wordpress-Posts.csv",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultUrl": "https://drive.google.com/drive",
          "cachedResultName": "/ (Root folder)"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "1",
          "name": "Google Account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "a36bccd7-9298-4c96-8f4e-83b9096e53dd",
      "name": "付箋メモ",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        160
      ],
      "parameters": {
        "height": 140,
        "content": "### Adjust fields\nYou can add more fields to the CSV file by editing this node"
      },
      "typeVersion": 1
    },
    {
      "id": "5d86d3be-dd69-454a-b739-17ded5636ee1",
      "name": "付箋メモ1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        220
      ],
      "parameters": {
        "height": 260,
        "content": "### Export WordPress Posts to CSV and Upload to Google Drive\n\nSteps:\n- Set your WordPress credentials in the \"Get WordPress Posts\" node\n- Set your Google Drive access in the Drive node\n- Click Test workflow"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "07ed3f2a-c2b6-4e3c-80d7-425adc6ad36d": {
      "main": [
        [
          {
            "node": "234d6755-e862-4277-b0b7-1ac65cd87c12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "234d6755-e862-4277-b0b7-1ac65cd87c12": {
      "main": [
        [
          {
            "node": "49901cd8-5ef5-41b5-87c3-a5979cf11644",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bc725e33-353d-4b3d-b65f-eb295053e5cc": {
      "main": [
        [
          {
            "node": "07ed3f2a-c2b6-4e3c-80d7-425adc6ad36d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c3f63a01-1450-4f97-ab2d-16414613f50c": {
      "main": [
        [
          {
            "node": "bc725e33-353d-4b3d-b65f-eb295053e5cc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - マーケティング

有料ですか?

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

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

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Codez

Codez

@codez

Building automations and AI agents for businesses

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34