Gemini AI と Blotato を使って WordPress 記事を自動のにソーシャルメディアに投稿する

中級

これはSocial Media, Multimodal AI分野の自動化ワークフローで、11個のノードを含みます。主にIf, Code, SplitOut, Wordpress, Agentなどのノードを使用。 Gemini AI と Blotato を使って WordPress 記事を自動のにソーシャルメディアに投稿する

前提条件
  • Google Gemini API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc"
  },
  "nodes": [
    {
      "id": "38f0d320-171c-4acb-aa3c-67d604d946a5",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -128
      ],
      "parameters": {
        "width": 400,
        "height": 804,
        "content": "## WordPress to Blotato Social Publisher\n\n**Author: David Olusola**\n\n**What it does:**\n- Monitors for new WordPress posts every 30 minutes\n- AI creates platform-specific social media content\n- Posts to Twitter, LinkedIn, and Facebook automatically\n- Tracks posted content to avoid duplicates\n\n**Setup Required:**\n1. Configure WordPress credentials\n2. Set up social media API credentials (Twitter, LinkedIn, Facebook)\n3. Set up Google Gemini API credentials for AI\n4. Adjust posting schedule if needed\n\n**Features:**\n- Platform-optimized content (hashtags, length, tone)\n- Automatic link shortening\n- Image attachment support\n- Duplicate prevention\n- Custom posting schedules per platform with Blotato API\n\n**Customization:**\n- Change monitoring frequency\n- Adjust AI prompts for different tones\n- Add/remove social platforms\n- Customize hashtag strategies\n\n**Need Help?**\nFor [n8n coaching or one-on-one consultation](mailto:david@daexai.com)"
      },
      "typeVersion": 1
    },
    {
      "id": "af350bce-1317-456c-95c1-5a8556bc1e27",
      "name": "30分ごと",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        224,
        128
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "5f5c3758-f17e-4218-a9a7-41c1ba68c5c9",
      "name": "新規投稿を確認",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        448,
        128
      ],
      "parameters": {
        "options": {},
        "operation": "getAll"
      },
      "typeVersion": 1
    },
    {
      "id": "411cf856-72ff-474f-a928-f8ceb1b998ab",
      "name": "新規投稿をフィルタリング",
      "type": "n8n-nodes-base.if",
      "position": [
        672,
        128
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 1,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "new-post-check",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{$json.length}}",
              "rightValue": 0
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "7715a9a5-5f1c-44dd-834e-b225e72852b3",
      "name": "AIソーシャルコンテンツクリエーター",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1120,
        128
      ],
      "parameters": {
        "options": {
          "systemMessage": "You are a social media manager. Based on the provided blog post, create platform-specific social media posts. Return ONLY valid JSON in this format: {\"twitter\": \"Tweet content with hashtags (280 chars max)\", \"linkedin\": \"Professional LinkedIn post with insights\", \"facebook\": \"Engaging Facebook post with call-to-action\"}. Make each post engaging and platform-appropriate."
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "119c13cf-458f-479e-9537-bb6631f8d6e0",
      "name": "ソーシャルコンテンツを解析",
      "type": "n8n-nodes-base.code",
      "position": [
        1472,
        128
      ],
      "parameters": {
        "jsCode": "const items = $input.all();\n\nreturn items.map(item => {\n  // Parse AI output for social media content\n  let aiOutput = item.json.output;\n  \n  // Remove markdown code blocks if present\n  aiOutput = aiOutput.replace(/```json\\s*/, '').replace(/```\\s*$/, '');\n  \n  let socialContent;\n  try {\n    socialContent = JSON.parse(aiOutput.trim());\n  } catch (e) {\n    // Fallback if parsing fails\n    socialContent = {\n      twitter: `New post: ${item.json.title.rendered} ${item.json.link}`,\n      linkedin: `Check out our latest post: ${item.json.title.rendered} ${item.json.link}`,\n      facebook: `We just published: ${item.json.title.rendered} ${item.json.link}`\n    };\n  }\n  \n  return {\n    json: {\n      postTitle: item.json.title.rendered,\n      postUrl: item.json.link,\n      postId: item.json.id,\n      twitter: socialContent.twitter,\n      linkedin: socialContent.linkedin,\n      facebook: socialContent.facebook,\n      featuredImage: item.json.featured_media || null\n    }\n  };\n});"
      },
      "typeVersion": 2
    },
    {
      "id": "78c4e8d5-d5f3-4a84-b815-215b0a3872ef",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1192,
        352
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "wNw45YZvXXpeocJ2",
          "name": "TST API"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "204300e5-0706-4da8-8aa3-02592993ae8b",
      "name": "Create post Facebook",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1696,
        304
      ],
      "parameters": {
        "options": {},
        "platform": "facebook",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "facebookPageId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "postContentText": "={{$json.facebook}}"
      },
      "typeVersion": 2
    },
    {
      "id": "7269a022-6da1-419d-b578-2ebd86ab3c38",
      "name": "Create post LinkedIn",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1728,
        112
      ],
      "parameters": {
        "options": {},
        "platform": "linkedin",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "postContentText": "={{$json.linkedin}}"
      },
      "typeVersion": 2
    },
    {
      "id": "1c7a8945-942f-44e2-b8e0-e724a666a6e8",
      "name": "Create post twitter",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1696,
        -80
      ],
      "parameters": {
        "options": {},
        "platform": "linkedin",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "postContentText": "={{$json.twitter}}"
      },
      "typeVersion": 2
    },
    {
      "id": "fdac53ac-9cb4-42f2-a94e-830c4bd1b7d9",
      "name": "分割",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        896,
        96
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "fdac53ac-9cb4-42f2-a94e-830c4bd1b7d9": {
      "main": [
        [
          {
            "node": "7715a9a5-5f1c-44dd-834e-b225e72852b3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5f5c3758-f17e-4218-a9a7-41c1ba68c5c9": {
      "main": [
        [
          {
            "node": "411cf856-72ff-474f-a928-f8ceb1b998ab",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "af350bce-1317-456c-95c1-5a8556bc1e27": {
      "main": [
        [
          {
            "node": "5f5c3758-f17e-4218-a9a7-41c1ba68c5c9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "411cf856-72ff-474f-a928-f8ceb1b998ab": {
      "main": [
        [
          {
            "node": "fdac53ac-9cb4-42f2-a94e-830c4bd1b7d9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "119c13cf-458f-479e-9537-bb6631f8d6e0": {
      "main": [
        [
          {
            "node": "204300e5-0706-4da8-8aa3-02592993ae8b",
            "type": "main",
            "index": 0
          },
          {
            "node": "7269a022-6da1-419d-b578-2ebd86ab3c38",
            "type": "main",
            "index": 0
          },
          {
            "node": "1c7a8945-942f-44e2-b8e0-e724a666a6e8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "78c4e8d5-d5f3-4a84-b815-215b0a3872ef": {
      "ai_languageModel": [
        [
          {
            "node": "7715a9a5-5f1c-44dd-834e-b225e72852b3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "7715a9a5-5f1c-44dd-834e-b225e72852b3": {
      "main": [
        [
          {
            "node": "119c13cf-458f-479e-9537-bb6631f8d6e0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - ソーシャルメディア, マルチモーダルAI

有料ですか?

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

関連ワークフロー

Geminiを使ってWordPressからAI駆動型の週次メールニュースを生成
Geminiを使ってWordPressからAI駆動の週次メールニュースレターへ生成する
If
Code
Email Send
+
If
Code
Email Send
8 ノードDavid Olusola
ソーシャルメディア
Gemini AIでGitHubの人気リポジトリから週次のチュートリアルを自動生成し、WordPressに投稿
Gemini AI を使って GitHub 人気リポジトリから週次チュートリアルを自動生成し WordPress に投稿
Code
Split Out
Email Send
+
Code
Split Out
Email Send
9 ノードDavid Olusola
コンテンツ作成
NewsAPIとGoogle Geminiを使用してテクノロジーニュースブログ記事を自動生成し、WordPressに公開
NewsAPIとGoogle Geminiを使用して自動のにテクノロジーニュースブログ記事を生成し、WordPressに投稿
Code
Wordpress
Http Request
+
Code
Wordpress
Http Request
9 ノードDavid Olusola
コンテンツ作成
ArunavaのマルチエージェントインタリジャエントReddit自動化
AIによるブランドメンションとBaserowを使用してRedditの投稿に自動のにコメントを投稿
If
Set
Code
+
If
Set
Code
35 ノードArunava
ソーシャルメディア
RSS から LinkedIn への自動投稿機能
RSS + Gemini AI + Templated.ioを使用してLinkedInの企業ページに自動のに企画立案し公開
If
Code
Linked In
+
If
Code
Linked In
19 ノードShrishti S Nagar
ソーシャルメディア
コンテンツジェネレーター v3
AI驱动ブログ自動化:使用GPT-4生成并公開SEO記事至WordPressとTwitter
If
Set
Code
+
If
Set
Code
144 ノードJay Emp0
コンテンツ作成
ワークフロー情報
難易度
中級
ノード数11
カテゴリー2
ノードタイプ9
難易度説明

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

作成者
David Olusola

David Olusola

@dae221

I help ambitious businesses eliminate operational bottlenecks and scale faster with AI automation. My clients typically see 40-60% efficiency gains within 90 days. Currently accepting 3 new projects this quarter - david@daexai.com

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34