GPT-5によるコメント生成によるWordPressブログの自動対話
中級
これはMultimodal AI分野の自動化ワークフローで、7個のノードを含みます。主にSet, HttpRequest, ManualTrigger, OpenAiなどのノードを使用。 GPT-5を使ってコメントを自動生成し、WordPressブログのやり取りを自動化
前提条件
- •ターゲットAPIの認証情報が必要な場合あり
- •OpenAI API Key
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "8e39b7468c6828f4a107b01649bad86d436b5b7484be7eb792fe15ba099d5821"
},
"nodes": [
{
"id": "37f90234-8233-495a-b9e5-394de7c76852",
"name": "ワークフロー実行時",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-16,
-272
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4d31b3f6-bc9c-467d-a797-682570710b9b",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
-400
],
"parameters": {
"color": 4,
"width": 1648,
"height": 320,
"content": "## Article AI Comment Generator\n\nThis workflow uses AI to generate relevant, natural-sounding comments for blog posts. It retrieves articles via the WordPress REST API, builds a prompt from the post content, and posts the AI-generated comment back to the site.\n\n\n"
},
"typeVersion": 1
},
{
"id": "fa18a2e9-b5ab-4d96-bd04-bd5914c69a8b",
"name": "WordPressから記事を取得",
"type": "n8n-nodes-base.httpRequest",
"maxTries": 5,
"position": [
208,
-272
],
"parameters": {
"url": "https://example.com/wp-json/wp/v2/posts?per_page=100&status=publish&_fields=id,title,excerpt,content,link,comment_status",
"options": {
"timeout": 60000,
"batching": {
"batch": {
"batchSize": 25
}
}
},
"authentication": "genericCredentialType",
"genericAuthType": "httpBasicAuth"
},
"credentials": {
"httpBasicAuth": {
"id": "a390F9PA3LRvL5DR",
"name": "YOUR_API_KEY"
}
},
"retryOnFail": true,
"typeVersion": 4.2,
"waitBetweenTries": 2000
},
{
"id": "93d2699f-0579-463c-a7d8-d35c89c058cf",
"name": "記事コメント用のプロンプトを構築",
"type": "n8n-nodes-base.set",
"position": [
464,
-272
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "3af62c72-bd9b-433a-943c-4caafe23bdd5",
"name": "prompt",
"type": "string",
"value": "=={{ `For the article “${$json.title?.rendered || ''}”, write a short, natural comment (1 sentence) that is relevant. \nSummary: ${(($json.excerpt?.rendered || $json.content?.rendered || '')\n .replace(/<[^>]+>/g,' ')\n .replace(/\\s+/g,' ')\n .trim()).slice(0,300)}` }}\nComment characteristics:\n- If possible, use the article's keyword in the comment\n- Some positive, some neutral\n- Conversational tone, not formal\n- Some short, some long\n"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "532d9763-aa7b-4903-9af4-be58fa4d2fd0",
"name": "記事コメントを生成 (AI)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
736,
-272
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-5",
"cachedResultName": "GPT-5"
},
"options": {},
"messages": {
"values": [
{
"content": "=={{$json.prompt}}\n"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "oETjE0hiLJ8SZxWX",
"name": "YOUR_API_KEY"
}
},
"retryOnFail": true,
"typeVersion": 1.8,
"waitBetweenTries": 2000
},
{
"id": "4128f339-860f-4920-ae79-beb6c9bf43d4",
"name": "AIの出力を抽出1",
"type": "n8n-nodes-base.set",
"position": [
1088,
-272
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "18fe84dc-59b3-440b-830d-da161cd5e3da",
"name": "comment",
"type": "string",
"value": "={{$json.message?.content || $json.choices?.[0]?.message?.content || $json.content}}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "12085249-1c90-41d9-af5c-0ff91f3aedbc",
"name": "記事にコメントを投稿",
"type": "n8n-nodes-base.httpRequest",
"maxTries": 5,
"position": [
1344,
-272
],
"parameters": {
"url": "https://example.com/wp-json/wp/v2/comments",
"method": "POST",
"options": {
"timeout": 60000
},
"sendBody": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "post",
"value": "={{ $('Fetch Articles from WordPress').item.json.id }}"
},
{
"name": "content",
"value": "={{ $('Generate Article Comment (AI)').item.json.message.content }}"
},
{
"name": "author_name",
"value": "={{ (() => {\n const first = ['John','Emily','Michael','Sophia','David','Olivia','Daniel','Ava','James','Isabella','Ethan','Mia','William','Charlotte','Benjamin','Amelia','Alexander','Harper','Lucas','Ella'];\n const last = ['Smith','Johnson','Williams','Brown','Jones','Garcia','Miller','Davis','Rodriguez','Martinez','Hernandez','Lopez','Gonzalez','Wilson','Anderson','Thomas','Taylor','Moore','Jackson','Martin'];\n return `${first[Math.floor(Math.random()*first.length)]} ${last[Math.floor(Math.random()*last.length)]}`;\n})() }}\n"
},
{
"name": "author_email",
"value": "={{ `guest+post${$items(\"Fetch Articles from WordPress\")[$itemIndex()].json.id}-${Date.now()%100000}@example.com`.toLowerCase() }}"
}
]
},
"genericAuthType": "httpBasicAuth"
},
"credentials": {
"httpBasicAuth": {
"id": "a390F9PA3LRvL5DR",
"name": "YOUR_API_KEY"
}
},
"retryOnFail": true,
"typeVersion": 4.2,
"waitBetweenTries": 2000
}
],
"pinData": {},
"connections": {
"4128f339-860f-4920-ae79-beb6c9bf43d4": {
"main": [
[
{
"node": "12085249-1c90-41d9-af5c-0ff91f3aedbc",
"type": "main",
"index": 0
}
]
]
},
"93d2699f-0579-463c-a7d8-d35c89c058cf": {
"main": [
[
{
"node": "532d9763-aa7b-4903-9af4-be58fa4d2fd0",
"type": "main",
"index": 0
}
]
]
},
"fa18a2e9-b5ab-4d96-bd04-bd5914c69a8b": {
"main": [
[
{
"node": "93d2699f-0579-463c-a7d8-d35c89c058cf",
"type": "main",
"index": 0
}
]
]
},
"532d9763-aa7b-4903-9af4-be58fa4d2fd0": {
"main": [
[
{
"node": "4128f339-860f-4920-ae79-beb6c9bf43d4",
"type": "main",
"index": 0
}
]
]
},
"37f90234-8233-495a-b9e5-394de7c76852": {
"main": [
[
{
"node": "fa18a2e9-b5ab-4d96-bd04-bd5914c69a8b",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
WordPress記事にGPT-4.1を使用してAI生成のタイトルと結論を追加
GPT-4.1を使用してWordPress記事にAIで生成された見出しと結論を追加
Set
Code
Http Request
+
Set
Code
Http Request
8 ノードAli Khosravani
コンテンツ作成
OpenAIでWordPressとWooCommerceのコンテンツ(コメント、フィード、更新)を自動化
OpenAIを使って、WordPressとWooCommerceのコンテンツ(コメント・フィードバック・更新)を自動化
Set
Code
Wordpress
+
Set
Code
Wordpress
38 ノードAli Khosravani
コンテンツ作成
WooCommerce へ OpenAI 使用で実在の製品レビューを生成
WooCommerce向けにOpenAIで本物の製品レビューを生成
Set
Http Request
Manual Trigger
+
Set
Http Request
Manual Trigger
7 ノードAli Khosravani
コンテンツ作成
AI駆動YouTube製品レビュー自動分析
ApifyとGPTを基盤としたAI駆動YouTube製品レビュー自動分析
Set
Code
Gmail
+
Set
Code
Gmail
25 ノードOriol Seguí
市場調査
AI驱动のメール分诊与自動回复系统,統合OpenAIエージェントとGmail
AI驱动のメール分诊与自動回复系统,統合OpenAIエージェントとGmail
If
Set
Gmail
+
If
Set
Gmail
68 ノードAbdullahi Ahmed
コンテンツ作成
WordPress - SEO記事の自動生成および公開
Gemini AIとOpenAI画像を使用してWordPressでSEO記事を自動生成
Set
Telegram
Wordpress
+
Set
Telegram
Wordpress
18 ノードAgent Circle
コンテンツ作成
ワークフロー情報
難易度
中級
ノード数7
カテゴリー1
ノードタイプ5
作成者
Ali Khosravani
@alikhosroAutomation & SEO Specialist with years of experience building smart workflows, AI-powered content solutions, and marketing automations. Skilled in n8n, WordPress, and API integrations to help businesses save time and grow faster.
外部リンク
n8n.ioで表示 →
このワークフローを共有