Perplexity AIを使用したニュース検索とX(Twitter)への投稿
初級
これはAI, Marketing分野の自動化ワークフローで、5個のノードを含みます。主にSet, Twitter, HttpRequest, ScheduleTriggerなどのノードを使用、AI技術を活用したスマート自動化を実現。 Perplexity AIを使ってスクープニュースを自動のにX(Twitter)へ投稿
前提条件
- •Twitter API認証情報
- •ターゲットAPIの認証情報が必要な場合あり
使用ノード (5)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "v9K61fCQhrG6gt6Z",
"meta": {
"instanceId": "9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19",
"templateCredsSetupCompleted": true
},
"name": "Search news using Perplexity AI and post to X (Twitter)",
"tags": [],
"nodes": [
{
"id": "9b2fdc0f-8c71-4ea9-a9d0-df470f2778df",
"name": "スケジュールトリガー",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-560,
0
],
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 21,
"triggerAtMinute": "={{Math.floor(Math.random() * 60)}}\n"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "d549c019-1f3e-4758-a5ee-e4ac7e03cc2d",
"name": "検索クエリ",
"type": "n8n-nodes-base.set",
"position": [
-340,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "4cfbc312-5dcd-444d-ae08-0bab417c084c",
"name": "searchInput",
"type": "string",
"value": "What's the latest news in artificial intelligence?"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "87c28d43-6cd6-4292-a563-a9f22467e162",
"name": "Perplexity",
"type": "n8n-nodes-base.httpRequest",
"position": [
100,
0
],
"parameters": {
"url": "https://api.perplexity.ai/chat/completions",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"llama-3.1-sonar-small-128k-online\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a social media assistant summarizing tech news for Twitter/X. Only return one article. Your output must follow this exact format: a short, engaging headline (max 140 characters), followed by a single space, then the direct article link. Do not use markdown, hashtags, emojis, or line breaks. Keep the total output under 200 characters. Be precise, objective, and newsworthy.Example: Mastercard launches Agent Pay, allowing AI agents to make purchases for users. https://www.perplexity.ai/page/mastercard-unveils-agent-pay-e-qWXnaUEzQZWCqsxF4l43zA\"\n },\n {\n \"role\": \"user\",\n \"content\": \"{{ $('searchQuery').item.json.searchInput }}\"\n }\n ],\n \"temperature\": 0.3,\n \"top_p\": 0.9,\n \"return_citations\": true,\n \"search_domain_filter\": [\n \"perplexity.ai\"\n ],\n \"search_recency_filter\": \"day\",\n \"return_images\": true,\n \"return_related_questions\": false,\n \"max_tokens\": 80,\n \"stream\": false,\n \"presence_penalty\": 0,\n \"frequency_penalty\": 1\n}\n",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "=Bearer {{ $json.perplexityAPI }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "c1ed633d-d318-403c-9577-c3c63ac2e68e",
"name": "APIキー設定",
"type": "n8n-nodes-base.set",
"position": [
-120,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "4f9bd3a0-5587-410f-b145-a287f65f9576",
"name": "perplexityAPI",
"type": "string",
"value": "<yourPerplexityAPI>"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "e228e352-2ddd-4e2c-a434-993910ced7be",
"name": "Xへ投稿",
"type": "n8n-nodes-base.twitter",
"position": [
320,
0
],
"parameters": {
"text": "={{ $json.choices[0].message.content }}",
"additionalFields": {}
},
"credentials": {
"twitterOAuth2Api": {
"id": "NY8wGzcN4f9f1UN4",
"name": "X account 2 for images"
}
},
"typeVersion": 2
}
],
"active": true,
"pinData": {},
"settings": {
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": "qFOYM3IA9QZ7fMym",
"executionOrder": "v1"
},
"versionId": "74e316fe-561f-4c80-b446-bba795654cef",
"connections": {
"e228e352-2ddd-4e2c-a434-993910ced7be": {
"main": [
[]
]
},
"87c28d43-6cd6-4292-a563-a9f22467e162": {
"main": [
[
{
"node": "e228e352-2ddd-4e2c-a434-993910ced7be",
"type": "main",
"index": 0
}
]
]
},
"d549c019-1f3e-4758-a5ee-e4ac7e03cc2d": {
"main": [
[
{
"node": "c1ed633d-d318-403c-9577-c3c63ac2e68e",
"type": "main",
"index": 0
}
]
]
},
"c1ed633d-d318-403c-9577-c3c63ac2e68e": {
"main": [
[
{
"node": "87c28d43-6cd6-4292-a563-a9f22467e162",
"type": "main",
"index": 0
}
]
]
},
"9b2fdc0f-8c71-4ea9-a9d0-df470f2778df": {
"main": [
[
{
"node": "d549c019-1f3e-4758-a5ee-e4ac7e03cc2d",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
初級 - 人工知能, マーケティング
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
会議が予約されました - ニュースレターとCRMへの送信済み
Google Sheets、Beehiiv、Telegramを使ってCal.comのカンファレンス参加者管理を自動化
Set
Split Out
Telegram
+
Set
Split Out
Telegram
9 ノードAitor | 1node.ai
人工知能
GoogleトレンドとPerplexityを活用したソーシャルメディア投稿の自動生成
GoogleトレンドとPerplexity AIを基にしたAI駆動型のマルチソーシャルメディア投稿自動化ワークフロー
Set
Code
Wait
+
Set
Code
Wait
18 ノードGerald Denor
人工知能
Claude AI、DALL-E 画像、Google Sheets で LinkedIn 投稿を自動化して承認
Claude AI、DALL-E 画像、Google Sheets で LinkedIn 投稿を自動承認
Set
Code
Wait
+
Set
Code
Wait
28 ノードUsman Liaqat
人工知能
ブログ投稿自動化とSNSプロモーションエージェント
GPT-4、Perplexity、WordPressを使用したSEOブログ作成の自動化+ソーシャルメディア
Set
Code
Gmail
+
Set
Code
Gmail
79 ノードLukaszB
デザイン
自動ニュース要約AIエージェントv13
AIニュース制作チーム:24/7リポート自動化+Perplexity引用
Set
Code
Gmail
+
Set
Code
Gmail
37 ノードDerek Cheung
プロダクト
LinkedIn投稿生成と承認の自動化
OpenAI、Googleスプレッドシート、メール承認ワークフローを活用したAIによるLinkedIn投稿生成
If
Set
Gmail
+
If
Set
Gmail
18 ノードAryan Shinde
人工知能
ワークフロー情報
難易度
初級
ノード数5
カテゴリー2
ノードタイプ4
作成者
Aitor | 1node.ai
@aitoralonsoHi, I’m Aitor, cofounder of 1node.ai. We help businesses integrate full-scale AI solutions that save time, cut costs, and increase revenue. Guaranteed. Need help building smarter workflows? Visit 1node.ai and let's connect.
外部リンク
n8n.ioで表示 →
このワークフローを共有