ティチーラのウェブサイトにニュースリリースを公開する

中級

これはMarketing分野の自動化ワークフローで、9個のノードを含みます。主にSet, Code, Wordpress, HttpRequest, RssFeedReadTriggerなどのノードを使用。 RSS から特集画像付きのリリースを WordPress へ自動公開

前提条件
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "88x49jmELpXBXgy8",
  "meta": {
    "instanceId": "ca7e4439d37f2d7ddaa363ea2b029357e1ee59824d58b9533ac05bf57f803d9d",
    "templateCredsSetupCompleted": true
  },
  "name": "PR news post to Techeela Website",
  "tags": [],
  "nodes": [
    {
      "id": "c762fb88-f496-4ff6-80fc-3da2047096d6",
      "name": "RSSフィードトリガー",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "feedUrl": "",
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "572e403a-ee70-46ee-ac24-45faf8fe1d98",
      "name": "Wordpress",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        440,
        0
      ],
      "parameters": {
        "title": "={{ $json.title }}",
        "additionalFields": {
          "format": "standard",
          "status": "draft",
          "content": "={{ $json.content }}",
          "authorId": 3,
          "categories": [
            1057
          ],
          "postTemplate": {
            "values": {}
          }
        }
      },
      "credentials": {
        "wordpressApi": {
          "id": "",
          "name": ""
        }
      },
      "typeVersion": 1
    },
    {
      "id": "2ff6ba75-5c55-4203-a670-f6688acf8520",
      "name": "コード",
      "type": "n8n-nodes-base.code",
      "position": [
        220,
        0
      ],
      "parameters": {
        "jsCode": "const items = $input.all();\nconst updatedItems = items.map((item) => {\n  const content = item?.json?.content;\n  const srcMatch = content.match(/src=\"(.*?)\"/);\n  item.json.imageSrc = srcMatch ? srcMatch[1] : \"\";\n  return item;\n});\nreturn updatedItems;\n"
      },
      "typeVersion": 2
    },
    {
      "id": "1c0c60e0-0f1f-4f64-9186-5640599f62a7",
      "name": "Wordpressへの画像アップロード",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        0
      ],
      "parameters": {
        "url": "https://xyz.com/wp-json/wp/v2/media",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "binaryData",
        "sendHeaders": true,
        "authentication": "predefinedCredentialType",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Disposition",
              "value": "=attachment; filename=\"cover-image-{{ $('Wordpress').item.json.id }}.jpeg\""
            }
          ]
        },
        "inputDataFieldName": "data",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "",
          "name": "Wordpress Account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "38326346-0f38-4491-b786-ee1e06b65f96",
      "name": "Wordpress投稿の画像設定",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1240,
        0
      ],
      "parameters": {
        "url": "=https://xyz.com/wp-json/wp/v2/posts/{{ $('Wordpress').item.json.id }}",
        "method": "POST",
        "options": {},
        "sendQuery": true,
        "authentication": "predefinedCredentialType",
        "queryParameters": {
          "parameters": [
            {
              "name": "featured_media",
              "value": "={{ $json.id }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "",
          "name": "Wordpress Account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "45505c71-ff36-4f4c-be2c-bf705ae0a902",
      "name": "画像取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        0
      ],
      "parameters": {
        "url": "={{ $json['image-url'] }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "6f1ff8bc-622d-49bb-a172-bf23b6e1baa3",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -80
      ],
      "parameters": {
        "width": 1240,
        "height": 280,
        "content": "## Set Image and Content In Techeela Wordpress Post"
      },
      "typeVersion": 1
    },
    {
      "id": "8272d49e-cf24-43a0-b948-db29adf5a95f",
      "name": "画像URL設定",
      "type": "n8n-nodes-base.set",
      "position": [
        640,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "1f0541df-05ab-4e3d-a5d8-3904579fc8a9",
              "name": "image-url",
              "type": "string",
              "value": "={{ $('Code').item.json.imageSrc }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "f6685e58-6c23-495d-9b75-a8066eab8829",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -80
      ],
      "parameters": {
        "color": 4,
        "width": 280,
        "height": 280,
        "content": "## Feed from PR Newswire\n"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "71481a3f-f3d0-45aa-b039-5f2cdb2e5267",
  "connections": {
    "2ff6ba75-5c55-4203-a670-f6688acf8520": {
      "main": [
        [
          {
            "node": "572e403a-ee70-46ee-ac24-45faf8fe1d98",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "45505c71-ff36-4f4c-be2c-bf705ae0a902": {
      "main": [
        [
          {
            "node": "1c0c60e0-0f1f-4f64-9186-5640599f62a7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "572e403a-ee70-46ee-ac24-45faf8fe1d98": {
      "main": [
        [
          {
            "node": "8272d49e-cf24-43a0-b948-db29adf5a95f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8272d49e-cf24-43a0-b948-db29adf5a95f": {
      "main": [
        [
          {
            "node": "45505c71-ff36-4f4c-be2c-bf705ae0a902",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c762fb88-f496-4ff6-80fc-3da2047096d6": {
      "main": [
        [
          {
            "node": "2ff6ba75-5c55-4203-a670-f6688acf8520",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1c0c60e0-0f1f-4f64-9186-5640599f62a7": {
      "main": [
        [
          {
            "node": "38326346-0f38-4491-b786-ee1e06b65f96",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - マーケティング

有料ですか?

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

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

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

作成者
Digvijay Dubey

Digvijay Dubey

@digvijay

Results-driven developer with expertise in automation, system integration, and CRM solutions. Skilled in building efficient workflows with n8n, integrating platforms like WordPress, Zoho CRM, and APIs to streamline business processes. Passionate about solving real-world problems with clean, scalable, and automated solutions.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34