Google Trendsに基づいてGemini AIにより自動生成されてツイート単位で公開されます

上級

これはAI, Marketing分野の自動化ワークフローで、21個のノードを含みます。主にCode, Wait, Twitter, Aggregate, GoogleBigQueryなどのノードを使用、AI技術を活用したスマート自動化を実現。 Gemini AIを使ってGoogleトレンドに基づいて自動のにツイートしまとめを生成して投稿する

前提条件
  • Twitter API認証情報
  • OpenAI API Key
  • Google Gemini API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "32d80f55a35a7b57f8e47a2ac19558d9f5bcec983a5519d9c29ba713ff4f12c7",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "e10711db-583a-4a73-adea-8aeef68a8456",
      "name": "X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        2240,
        520
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2efd476e-bea4-4828-bc8c-c1491a408646",
      "name": "シンプルメモリ",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        420,
        840
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "7933cf3b-7319-4d55-919b-a9852cc2855b",
      "name": "Google Gemini チャットモデル",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        200,
        860
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0f981a60-1f9b-4e36-b113-950a6177e1ba",
      "name": "自動修正出力パーサー",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        600,
        640
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2c0e008a-e481-47d1-b07f-ded9cffa61f1",
      "name": "構造化出力パーサー",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        800,
        880
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "fa0194e7-77d7-48be-aef5-2f8325acf278",
      "name": "集計",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -280,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1ed80dbc-d7ec-45ec-97ec-cd281ac409dc",
      "name": "OpenAI チャットモデル",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        600,
        860
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f7c657aa-7c9e-4a74-aa39-135bcea2348b",
      "name": "Trend Selector",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        400,
        380
      ],
      "parameters": {},
      "typeVersion": 1.9,
      "alwaysOutputData": false
    },
    {
      "id": "21ee7af9-5a90-4ef1-99f5-41d175847143",
      "name": "Tweet Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1240,
        380
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "4a9a81fb-1233-4c62-87f0-acea3ee1437a",
      "name": "Google Gemini チャットモデル1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1140,
        740
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2a5789a8-b5a8-46b1-8665-ad22473b803d",
      "name": "コード",
      "type": "n8n-nodes-base.code",
      "position": [
        1620,
        500
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "98356e89-3436-47c9-b604-e9775dc53c29",
      "name": "ループ処理",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1980,
        500
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "6a6f6a88-0f73-458d-bce2-881f3f5902f6",
      "name": "待機",
      "type": "n8n-nodes-base.wait",
      "position": [
        2560,
        520
      ],
      "webhookId": "9e86e524-612d-4734-a087-4090e0ceb19d",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "288e8945-82b7-4f7e-9bb8-cda7235bac62",
      "name": "Google Trends AUS",
      "type": "n8n-nodes-base.googleBigQuery",
      "position": [
        -300,
        460
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "2045aa98-f272-451a-95bb-79a169e5b5fc",
      "name": "スケジュールトリガー",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1060,
        780
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "2e9e885e-91ae-4d44-8d1c-1f30560451ec",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1500,
        600
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c72f2bd8-2307-4e3d-bfd2-655c07816c9f",
      "name": "付箋11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1500,
        60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6ccbc315-5c53-4fea-b2d7-30fc99fd606e",
      "name": "付箋12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6a089814-9049-45a6-a9d8-e51f0fe0b77c",
      "name": "付箋13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d486f77b-989e-4aca-9655-92342333e46f",
      "name": "付箋14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1000,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e8a61916-59fe-4aaa-b39d-99fa682e3064",
      "name": "付箋15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1860,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "e10711db-583a-4a73-adea-8aeef68a8456": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "f7c657aa-7c9e-4a74-aa39-135bcea2348b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "f7c657aa-7c9e-4a74-aa39-135bcea2348b",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "f7c657aa-7c9e-4a74-aa39-135bcea2348b": {
      "main": [
        [
          {
            "node": "21ee7af9-5a90-4ef1-99f5-41d175847143",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "e10711db-583a-4a73-adea-8aeef68a8456",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "21ee7af9-5a90-4ef1-99f5-41d175847143": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "288e8945-82b7-4f7e-9bb8-cda7235bac62",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "288e8945-82b7-4f7e-9bb8-cda7235bac62": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "f7c657aa-7c9e-4a74-aa39-135bcea2348b",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "f7c657aa-7c9e-4a74-aa39-135bcea2348b",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "21ee7af9-5a90-4ef1-99f5-41d175847143",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

上級 - 人工知能, マーケティング

有料ですか?

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

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

上級者向け、16ノード以上の複雑なワークフロー

作成者
Amjid Ali

Amjid Ali

@amjid

I'm Amjid Ali, a CIO and automation expert with 25+ years in IT and digital transformation. I specialize in building AI-powered, low-code workflows using n8n to automate ERP, finance, reporting, and customer support processes. As the founder of SyncBricks, author of "Mastering n8n," and creator of online courses, I share practical automation solutions to help businesses scale efficiently and innovate with confidence.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34