OpenAI、SerpAPI、LangChainを使ったニュース検索の自動化とTelegramブロードキャスト

上級

これはSocial Media, AI RAG分野の自動化ワークフローで、23個のノードを含みます。主にIf, Set, Wait, Gmail, Telegramなどのノードを使用。 OpenAI、SerpAPI、LangChainを使用したニュース検索の自動化とTelegramブロードキャス

前提条件
  • Googleアカウント + Gmail API認証情報
  • Telegram Bot Token
  • ターゲットAPIの認証情報が必要な場合あり
  • Google Gemini API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "cb9a1e5321767b6316634728341237e564b2587ab15b74ca0a89eb02a53484d6",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "92486939-007d-4b63-afa4-28d41ea13d0a",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -1616,
        48
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5cbd0652-b8cc-443e-be65-e4894c754901",
      "name": "付箋6",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -544,
        -48
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "27ae28d4-0e81-4b75-91cf-a61acda04f3c",
      "name": "付箋7",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        -16,
        16
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0d30a571-f837-4a11-b982-a79bfa02190c",
      "name": "付箋9",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        672,
        -96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d4c9cb50-340f-4af8-81e7-14f120fe30fb",
      "name": "AI エージェント Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        256,
        560
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "a554dc14-985a-4950-bc8e-0846cd4b59be",
      "name": "シンプルメモリ",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        32,
        576
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "0e868d12-6376-4f71-b02b-02f77316ecc1",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        160,
        576
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "3615df01-5fdf-43d9-b928-c628f0d1897e",
      "name": "AI エージェント",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        144,
        352
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "05045f1a-d47a-4d22-8eb6-4b134867373d",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -160,
        272
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "c5572771-95ed-4e9f-a05e-264c223bf03f",
      "name": "Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -384,
        272
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f77a68f0-08c6-4bb7-a049-77ff07187cef",
      "name": "Google Gemini チャットモデル",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        32,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b2c21b16-3823-4c9a-91d6-d624bf9033b5",
      "name": "Get a document in Google ドキュメント",
      "type": "n8n-nodes-base.googleDocsTool",
      "position": [
        192,
        704
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "426ff7a3-6cdf-4fa4-93cb-a2bb34c24a74",
      "name": "SerpAPI 検索",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        304,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1061b014-e9af-4620-a4b0-a2507ff16326",
      "name": "HTTP リクエスト",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        400,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a8af3086-c65c-41e7-bf0b-7f8d25f81ae7",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        544,
        352
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "2b22739b-a10c-426b-a66a-84439dcc2767",
      "name": "待機",
      "type": "n8n-nodes-base.wait",
      "position": [
        784,
        224
      ],
      "webhookId": "829ccbe5-ea02-4128-bc8c-43897bca1855",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "713ef0fa-1baf-4ed7-a219-153bd78edf8e",
      "name": "Do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        784,
        448
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "952f0f8e-b728-4a72-a85d-738fcdebaba4",
      "name": "Post on Channel",
      "type": "n8n-nodes-base.telegram",
      "position": [
        976,
        304
      ],
      "webhookId": "d60206f7-b55c-41d9-bb2f-04a43dd9dc93",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b15d087a-6f18-44da-9870-bbb42ecc91a7",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -384,
        448
      ],
      "webhookId": "5c9d850c-c56c-44f6-a5b1-e25762ffae6d",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "8ebb13e7-2986-41c3-bce8-88b346eba209",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        -160,
        448
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a4330e71-af2d-41c1-8373-5a74976e6aac",
      "name": "Rapiwa",
      "type": "n8n-nodes-rapiwa.rapiwa",
      "position": [
        1184,
        384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5f729de2-dc9c-482b-8ea4-435ba312d835",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1184,
        224
      ],
      "webhookId": "4f107f5a-dbe9-4c51-a387-3ad32bcb40b2",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "a6b4a5df-9438-4701-88b9-22ccc69c4b2a",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        976,
        144
      ],
      "webhookId": "4f94ade8-7625-4680-bacd-4264d539a4cf",
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "pinData": {},
  "connections": {
    "a8af3086-c65c-41e7-bf0b-7f8d25f81ae7": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "713ef0fa-1baf-4ed7-a219-153bd78edf8e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "952f0f8e-b728-4a72-a85d-738fcdebaba4",
            "type": "main",
            "index": 0
          },
          {
            "node": "a6b4a5df-9438-4701-88b9-22ccc69c4b2a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0e868d12-6376-4f71-b02b-02f77316ecc1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Tool",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "a8af3086-c65c-41e7-bf0b-7f8d25f81ae7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c5572771-95ed-4e9f-a05e-264c223bf03f": {
      "main": [
        [
          {
            "node": "05045f1a-d47a-4d22-8eb6-4b134867373d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "713ef0fa-1baf-4ed7-a219-153bd78edf8e": {
      "main": [
        []
      ]
    },
    "05045f1a-d47a-4d22-8eb6-4b134867373d": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8ebb13e7-2986-41c3-bce8-88b346eba209": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Tool",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "952f0f8e-b728-4a72-a85d-738fcdebaba4": {
      "main": [
        [
          {
            "node": "a4330e71-af2d-41c1-8373-5a74976e6aac",
            "type": "main",
            "index": 0
          },
          {
            "node": "5f729de2-dc9c-482b-8ea4-435ba312d835",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b15d087a-6f18-44da-9870-bbb42ecc91a7": {
      "main": [
        [
          {
            "node": "8ebb13e7-2986-41c3-bce8-88b346eba209",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get a document in Google Docs": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Tool",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

上級 - ソーシャルメディア, AI RAG検索拡張

有料ですか?

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

関連ワークフロー

AI 検索と SerpAPI を使ってニュースを自動のにソーシャルメディアに投稿する
AI 検索と SerpAPI を使ってニュースを Telegram、Facebook、Twitter、WordPress に自動投稿する
If
Set
Wait
+
If
Set
Wait
20 ノードDevCode Journey
ソーシャルメディア
n8nノードの探索(可視化リファレンスライブラリ内)
n8nノードを可視化リファレンスライブラリで探索
If
Ftp
Set
+
If
Ftp
Set
113 ノードI versus AI
その他
Facebookページコメント管理ボット:返信、削除、利用制限、通知
AI駆動のFacebookコメント管理:自動返信、削除、利用制限、通知
If
Set
Code
+
If
Set
Code
59 ノードSpaGreen Creative
ソーシャルメディア
✨🩷ソーシャルメディアコンテンツ自動投稿工場 + システムプロンプト組み合わせ
GPT-4oを使用して6つのプラットフォーム向けにプラットフォーム最適化されたソーシャルメディアコンテンツを生成
If
Set
Code
+
If
Set
Code
100 ノードLuan Correia
ソーシャルメディア
完全な B2B セールスフロー:Apollo リード生成、Mailgun 外信、および AI 返信管理
完全なB2Bセールスフロー:Apolloリード生成、Mailgunアウト Reach、AI返信管理
If
Set
Code
+
If
Set
Code
116 ノードPaul
コンテンツ作成
AI駆動型動画制作&Instagram/TikTok/YouTubeへの自動アップロード
クラウドドライブからAI駆動の動画作成およびInstagram、TikTok、YouTubeへのアップロード
If
Set
Code
+
If
Set
Code
53 ノードDevCode Journey
コンテンツ作成
ワークフロー情報
難易度
上級
ノード数23
カテゴリー2
ノードタイプ18
難易度説明

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

作成者
DevCode Journey

DevCode Journey

@devcodejourney

I build intelligent systems that automate tasks, streamline workflows, and enhance user experiences using tools like n8n, AI chatbots, and modern automation platforms. With a passion for solving real-world problems through smart technology, I create custom solutions that help individuals and businesses save time, scale faster, and work smarter. Whether it's integrating APIs, building no-code/low-code automations, or developing conversational AI, I'm always exploring the edge of what's possible.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34