WPカテゴリールールチック

中級

これはContent Creation, Multimodal AI分野の自動化ワークフローで、7個のノードを含みます。主にAggregate, HttpRequest, ManualTrigger, ChainLlm, LmChatAzureOpenAiなどのノードを使用。 GPT-5 Mini(Azure OpenAI)を使って、WordPressカテゴリーマッピングを自動化

前提条件
  • ターゲットAPIの認証情報が必要な場合あり
  • OpenAI API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "BeW87UQSm16ZhE2D",
  "meta": {
    "instanceId": "c2650793f644091dc80fb900fe63448ad1f4b774008de9608064d67294f8307c"
  },
  "name": "WP Category Toolkit",
  "tags": [],
  "nodes": [
    {
      "id": "800015fb-a2ec-4838-b70f-465f9200fcd2",
      "name": "開始",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        384,
        160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3b66a7e3-6567-4a48-9e52-b72d3e568517",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "color": 5,
        "width": 1328,
        "height": 480,
        "content": "## WP Category toolkit"
      },
      "typeVersion": 1
    },
    {
      "id": "07e8b165-4124-4a09-b569-7090464b6f63",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        80
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 352,
        "content": "## Process:\n- change with your url\n- Input your WP credentials\n- Copy ``category json`` from **Body Post Wordpress**\n- Paste in system prompt on **Category Mapping**\n- Copy the result back to **Body Post Wordpress**"
      },
      "typeVersion": 1
    },
    {
      "id": "36eeebd5-4cc4-4d96-900d-70299c55010e",
      "name": "Get All Categories",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        576,
        160
      ],
      "parameters": {
        "url": "https://cartilo.my.id/wp-json/wp/v2/categories?per_page=100",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "gGfRrkCtaoISRmDr",
          "name": "WP - Cartilo (Dax AI)"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "51f177cd-1b53-4225-8c96-cc157e9d986b",
      "name": "集計 to Process",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        768,
        160
      ],
      "parameters": {
        "options": {},
        "aggregate": "aggregateAllItemData"
      },
      "typeVersion": 1
    },
    {
      "id": "d655510d-2e55-4994-9cc5-3d7f6b57f2a1",
      "name": "Category-Mapping",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        944,
        160
      ],
      "parameters": {
        "text": "={{JSON.stringify($json)}}",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "You are an expert programmer. \n\nchange this mapping:\n {{ $('Topic Chooser and Title Maker').item.json.output.category == \"Technology\" ? [3] :\n    $('Topic Chooser and Title Maker').item.json.output.category == \"Artificial Intelligence (AI)\" ? [4] :\n    $('Topic Chooser and Title Maker').item.json.output.category == \"Tech Fact\" ? [7] :\n    $('Topic Chooser and Title Maker').item.json.output.category == \"Tech History\" ? [8] :\n    $('Topic Chooser and Title Maker').item.json.output.category == \"Tech Tips\" ? [9] : [1] }}\n\nbased on user input.\nonly change category and the id. never add \"\\n\" in the output"
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "8e856d5b-0de8-44d3-a887-3b8188b80e65",
      "name": "Gpt-5-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        944,
        320
      ],
      "parameters": {
        "model": "gpt5mini",
        "options": {}
      },
      "credentials": {
        "azureOpenAiApi": {
          "id": "f2y13FBDaQZYGn8T",
          "name": "GPT5-mini"
        }
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b41ae1d6-00b2-442f-b7dc-b96e11163121",
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "36eeebd5-4cc4-4d96-900d-70299c55010e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8e856d5b-0de8-44d3-a887-3b8188b80e65": {
      "ai_languageModel": [
        [
          {
            "node": "d655510d-2e55-4994-9cc5-3d7f6b57f2a1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "36eeebd5-4cc4-4d96-900d-70299c55010e": {
      "main": [
        [
          {
            "node": "Aggregate to Process",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate to Process": {
      "main": [
        [
          {
            "node": "d655510d-2e55-4994-9cc5-3d7f6b57f2a1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - コンテンツ作成, マルチモーダルAI

有料ですか?

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

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

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

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34