AIを使ってNASAの毎日の宇宙写真をLinkedInに自動投稿してタグ付け
上級
これはSocial Media, Multimodal AI分野の自動化ワークフローで、18個のノードを含みます。主にIf, Set, Nasa, Merge, LinkedInなどのノードを使用。 AI翻訳とタグ付けを使ってNASAの「今日の天文写真」をLinkedInに自動投稿
前提条件
- •LinkedIn API認証情報
- •Telegram Bot Token
- •Google Gemini API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "jm3oNfFXDKTuW4Ez",
"meta": {
"instanceId": "943057ae9865dd2906869d78fba63cb807e3403d288699c0026d3aaf59867c7a",
"templateCredsSetupCompleted": true
},
"tags": [
{
"id": "xwCyk14uVKcJT0wM",
"name": "Template",
"createdAt": "2025-08-07T23:39:28.237Z",
"updatedAt": "2025-08-07T23:39:28.237Z"
}
],
"nodes": [
{
"id": "3d74dd76-1b29-429f-9c5b-1a989b4a7e61",
"name": "投稿テキスト生成",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
112,
544
],
"parameters": {
"text": "=Translate this text to {{ $('Settings').item.json.translate_to_language }} language:\n\n\"{{ $('Get APOD').item.json.explanation }}\"",
"batching": {},
"messages": {
"messageValues": [
{
"message": "=You are a translation specialist.\n\nTranslate the text you receive from English to especified language.\n\nReturn only the translation without explanations, notes, or additional comments.\n\nDo not invent words or terms, just translate the text."
}
]
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "a6254b24-8925-4cce-a1a1-6539e8c6eab5",
"name": "ハッシュタグ生成",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
448,
544
],
"parameters": {
"text": "=Generate hashtags for this text in {{ $('Settings').item.json.translate_to_language }}:\n\n\"{{ $json.text }}\"",
"batching": {},
"messages": {
"messageValues": [
{
"message": "=You are a digital marketing expert specializing in science communication on LinkedIn. Generate strategic hashtags for astronomy, science, and technology posts to maximize reach and engagement.\n\n## 🔴 CRITICAL INSTRUCTION\nGenerate ONLY a list of relevant hashtags. No comments, explanations, or additional text. Return hashtags only.\n\n## Mission\nAnalyze NASA APOD translated content and generate strategic hashtags combining:\n✅ **Fixed hashtags**: #NASA #Astronomy #APOD #n8n #Automation \n✅ **Content-specific**: Based on objects, phenomena, events \n✅ **Reach hashtags**: For visibility \n✅ **Portuguese/English mix**: For national and international audience \n✅ **Total**: 10-15 hashtags \n\n**Remember:** Return only hashtags separated by spaces. Nothing else."
}
]
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "32d439dc-f50c-4657-8e55-6ece267709cf",
"name": "APOD取得",
"type": "n8n-nodes-base.nasa",
"position": [
-128,
432
],
"parameters": {
"additionalFields": {
"date": "={{ $today }}"
},
"binaryPropertyName": "apod_image"
},
"credentials": {
"nasaApi": {
"id": "SloEIkG3CWBxt7xV",
"name": "NASA DEMO_KEY"
}
},
"typeVersion": 1
},
{
"id": "7f3ed5ff-9be0-4a4f-af28-ff2acbc5b1f1",
"name": "最終投稿テキスト作成",
"type": "n8n-nodes-base.set",
"position": [
784,
544
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "09a3a9ae-ffaa-4ce5-ae61-6cf4fd4d0e9b",
"name": "final_text",
"type": "string",
"value": "=NASA APOD (Astronomy Picture The Of Day) 📅{{ $today.format('dd/MM/yyyy') }}\n{{ $('Get APOD').item.json.media_type == 'image' ? '' : '\\nNo image available today! Check out the full NASA APOD post here:\\nhttps://apod.nasa.gov/apod/ap' + $today.format('yyMMdd') + '.html\\n' }}\n{{ $('Generate Post Text').item.json.text }}\n\n{{ $('Generate Hashtags').item.json.text }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "aefded44-d806-430f-a01b-88667d32bcc2",
"name": "バイナリ保存",
"type": "n8n-nodes-base.merge",
"position": [
1008,
448
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineAll"
},
"typeVersion": 3.2
},
{
"id": "0fada130-2363-45ea-88ee-e20532e5f069",
"name": "設定",
"type": "n8n-nodes-base.set",
"position": [
-384,
432
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "2769a95d-f433-4090-83dc-b76f75ee6428",
"name": "linkedin_post_base_url",
"type": "string",
"value": "https://linkedin.com/feed/update/"
},
{
"id": "9df5f752-23fb-4873-9793-fcf0e11e83e8",
"name": "telegram_chat_id",
"type": "string",
"value": "your_telegram_chat_id"
},
{
"id": "7d55202f-9919-45f3-9f1e-f1785b161269",
"name": "translate_to_language",
"type": "string",
"value": "Brazilian Portuguese"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "febd56fc-a13c-486f-a029-a9fcd8de161e",
"name": "通知 On Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
1936,
464
],
"webhookId": "54c2ed2f-d07c-45b8-941a-9d3a489980be",
"parameters": {
"text": "=🚀 APOD publicado com sucesso!\n\n📅 Data: {{ $today.format('dd/MM/yyyy') }}\n📝 Título: {{ $('Get APOD').item.json.title }}\n🔗 Link da Publicação: {{ $('Settings').item.json.linkedin_post_base_url }}{{ $('Publish On LinkedIn').item.json.urn }}\n\n✅ Workflow executado às {{ $now.format('HH:mm') }}",
"chatId": "={{ $('Settings').item.json.telegram_chat_id }}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "g96RKSo0I2Vcf1oP",
"name": "Telegram N8N VIKTHYR Bot"
}
},
"typeVersion": 1.2
},
{
"id": "38db3609-abbe-460a-8583-df3cd00a9573",
"name": "Cron",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-608,
432
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 12,
"triggerAtMinute": 11
}
]
}
},
"typeVersion": 1.2
},
{
"id": "b2ce3599-a75a-4d04-8788-2513bb692ffc",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1328,
80
],
"parameters": {
"width": 660,
"height": 740,
"content": "# 🚀 NASA APOD to LinkedIn Automation\n\n**What it does:**\nThis workflow automatically fetches NASA's Astronomy Picture of the Day (APOD), translates the description to selected language using AI, generates strategic hashtags, and publishes it to LinkedIn with image attachment. You'll get a Telegram notification when it's done!\n\n**Perfect for:**\n- Content creators wanting consistent scientific content\n- Astronomy enthusiasts\n- Anyone interested in automated social media posting\n- Portuguese-speaking audiences who want NASA content in their language\n\n**How it works:**\n1. Runs on schedule (configurable time)\n2. Fetches latest NASA APOD via official API (with image)\n3. Translates English description to another language using Google Gemini AI\n4. Generates strategic hashtags mixing Portuguese/English\n5. Composes final LinkedIn post with image\n6. Publishes automatically to your LinkedIn profile\n7. Sends success notification via Telegram\n\n**Setup time:** ~15 minutes\n**Cost:** Completely FREE (uses free APIs and free AI model)\n**Requirements:** LinkedIn account, Telegram bot, OpenRouter API key\n\n**Features:**\n✅ Handles both images and videos from NASA\n✅ Smart hashtag generation with AI\n✅ Bilingual approach for maximum reach\n✅ Error handling and notifications\n✅ Easy customization through Settings nodes"
},
"typeVersion": 1
},
{
"id": "99cd5cd9-2070-40a7-95bd-96c22bec6bd0",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
240
],
"parameters": {
"color": 7,
"width": 220,
"height": 340,
"content": "⚙️ Configuration Hub\n\nCentralized settings for easy customization."
},
"typeVersion": 1
},
{
"id": "3275e445-a7ba-4a60-abac-ee9752a4d015",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-48,
704
],
"parameters": {
"color": 7,
"width": 620,
"height": 280,
"content": "🧠 AI Model Configuration\n\nShared LLM model for both translation and hashtag generation\n- Provider: Google AI\n- Model: Gemini 2.5 Flash (fast & efficient!)\n- Connected to both LangChain nodes\n\nSetup required:\n- Google AI Studio account (free)\n- API key configured in credentials \n- Generous free tier with excellent performance"
},
"typeVersion": 1
},
{
"id": "d3fbc568-c4e2-4260-b16e-2ecfda0a5579",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1392,
48
],
"parameters": {
"color": 7,
"width": 380,
"height": 688,
"content": "📲 LinkedIn Publisher\n\nAutomatically posts to your LinkedIn profile with image\n- Post type: IMAGE with text\n- Binary property: apod_image (from NASA)\n- Returns post URN for link generation\n- Person ID: Configured for your LinkedIn profile\n\nSetup required:\n- LinkedIn OAuth2 app creation\n- Proper credentials configuration\n- Profile permissions for posting"
},
"typeVersion": 1
},
{
"id": "71e193e5-89db-45bb-840b-db88306217bd",
"name": "付箋5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1792,
144
],
"parameters": {
"color": 7,
"width": 380,
"height": 480,
"content": "💬 Success Notification\n\nSends confirmation message with post details:\n- Publication date and NASA APOD title\n- Direct link to the LinkedIn post\n- Execution timestamp for tracking\n\nMessage format includes:\n🚀 Success confirmation\n📅 Date and title\n🔗 Clickable LinkedIn link\n✅ Execution time\n\nSetup: Configure your Telegram bot and get chat ID from @userinfobot"
},
"typeVersion": 1
},
{
"id": "5d034a0b-9d8f-463f-8f5c-2aaa98a0a2c1",
"name": "付箋6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-208,
240
],
"parameters": {
"color": 7,
"width": 260,
"height": 340,
"content": "🛰️ NASA APOD API\n\nFetches today's Astronomy Picture of the Day\n\nYou can use \"DEMO_KEY\" on credential API KEY for free (with rate limits)"
},
"typeVersion": 1
},
{
"id": "1fc81b76-5bb7-4ab8-926b-a99413a60273",
"name": "Google Gemini 2.5 Flash",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
416,
800
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "ewxdtWuCEXcMZn91",
"name": "Google Gemini VIKTHYR"
}
},
"typeVersion": 1
},
{
"id": "6f552983-356b-4221-a916-fa5675cd344a",
"name": "画像投稿 On LinkedIn",
"type": "n8n-nodes-base.linkedIn",
"position": [
1536,
368
],
"parameters": {
"text": "={{ $json.final_text }}",
"person": "l-ubY6OyMM",
"additionalFields": {},
"binaryPropertyName": "=apod_image",
"shareMediaCategory": "IMAGE"
},
"credentials": {
"linkedInOAuth2Api": {
"id": "9QsT5EqWHVIxL6fc",
"name": "LinkedIn VIKTHYR"
}
},
"typeVersion": 1
},
{
"id": "2b2cf1b4-0913-4a10-aaea-70f4b1db620d",
"name": "画像ですか?",
"type": "n8n-nodes-base.if",
"position": [
1200,
448
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "3b18c772-2efa-43f4-99f2-988cc3670b5c",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.media_type }}",
"rightValue": "image"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "cc219a02-47e5-4e9d-bf5f-4f73121f2603",
"name": "投稿 On LinkedIn",
"type": "n8n-nodes-base.linkedIn",
"position": [
1536,
560
],
"parameters": {
"text": "={{ $json.final_text }}",
"person": "l-ubY6OyMM",
"additionalFields": {}
},
"credentials": {
"linkedInOAuth2Api": {
"id": "9QsT5EqWHVIxL6fc",
"name": "LinkedIn VIKTHYR"
}
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "b2bfd80e-f472-43cd-a914-2d64626c92a8",
"connections": {
"38db3609-abbe-460a-8583-df3cd00a9573": {
"main": [
[
{
"node": "0fada130-2363-45ea-88ee-e20532e5f069",
"type": "main",
"index": 0
}
]
]
},
"32d439dc-f50c-4657-8e55-6ece267709cf": {
"main": [
[
{
"node": "3d74dd76-1b29-429f-9c5b-1a989b4a7e61",
"type": "main",
"index": 0
},
{
"node": "aefded44-d806-430f-a01b-88667d32bcc2",
"type": "main",
"index": 0
}
]
]
},
"0fada130-2363-45ea-88ee-e20532e5f069": {
"main": [
[
{
"node": "32d439dc-f50c-4657-8e55-6ece267709cf",
"type": "main",
"index": 0
}
]
]
},
"2b2cf1b4-0913-4a10-aaea-70f4b1db620d": {
"main": [
[
{
"node": "6f552983-356b-4221-a916-fa5675cd344a",
"type": "main",
"index": 0
}
],
[
{
"node": "cc219a02-47e5-4e9d-bf5f-4f73121f2603",
"type": "main",
"index": 0
}
]
]
},
"aefded44-d806-430f-a01b-88667d32bcc2": {
"main": [
[
{
"node": "2b2cf1b4-0913-4a10-aaea-70f4b1db620d",
"type": "main",
"index": 0
}
]
]
},
"a6254b24-8925-4cce-a1a1-6539e8c6eab5": {
"main": [
[
{
"node": "7f3ed5ff-9be0-4a4f-af28-ff2acbc5b1f1",
"type": "main",
"index": 0
}
]
]
},
"3d74dd76-1b29-429f-9c5b-1a989b4a7e61": {
"main": [
[
{
"node": "a6254b24-8925-4cce-a1a1-6539e8c6eab5",
"type": "main",
"index": 0
}
]
]
},
"cc219a02-47e5-4e9d-bf5f-4f73121f2603": {
"main": [
[
{
"node": "febd56fc-a13c-486f-a029-a9fcd8de161e",
"type": "main",
"index": 0
}
]
]
},
"7f3ed5ff-9be0-4a4f-af28-ff2acbc5b1f1": {
"main": [
[
{
"node": "aefded44-d806-430f-a01b-88667d32bcc2",
"type": "main",
"index": 1
}
]
]
},
"1fc81b76-5bb7-4ab8-926b-a99413a60273": {
"ai_languageModel": [
[
{
"node": "a6254b24-8925-4cce-a1a1-6539e8c6eab5",
"type": "ai_languageModel",
"index": 0
},
{
"node": "3d74dd76-1b29-429f-9c5b-1a989b4a7e61",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"6f552983-356b-4221-a916-fa5675cd344a": {
"main": [
[
{
"node": "febd56fc-a13c-486f-a029-a9fcd8de161e",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
上級 - ソーシャルメディア, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
URLベースでAI、Telegram、マルチプラットフォームで自動のにソーシャルメディア投稿を生成
URLを基にAI、Telegram、複数のプラットフォームで自動のにソーシャルメディア投稿を作成
If
Set
Code
+
If
Set
Code
42 ノードKarol
コンテンツ作成
LinkedInおよびXウイルスのなコンテンツ自動エンジン
AIを使ってLinkedInとXにウイルスのなコンテンツを自動生成して公開する
If
Set
Wait
+
If
Set
Wait
156 ノードDiptamoy Barman
コンテンツ作成
LinkedIn オートメーション
Gemini AI と承認ワークフローを使用して Telegram メッセージをプロフェッショナル LinkedIn 投稿に変換する
If
Set
Code
+
If
Set
Code
54 ノードSateesh
コンテンツ作成
Reddit の絵文字を自動のに Google Drive にダウンロードし、重複検出と Telegram メッセージで通知
Reddit からのスタンプを自動のに Google Drive にダウンロードし、重複検出と Telegram アラートを含める
If
Set
Code
+
If
Set
Code
20 ノードVitorio Magalhães
ファイル管理
✨🩷ソーシャルメディアコンテンツ自動投稿工場 + システムプロンプト組み合わせ
GPT-4oを使用して6つのプラットフォーム向けにプラットフォーム最適化されたソーシャルメディアコンテンツを生成
If
Set
Code
+
If
Set
Code
100 ノードLuan Correia
ソーシャルメディア
Groq、Gemini、Slack承認システムを使用してRSSからMediumへの公開を自動化
Groq、Gemini、Slack承認システムを用いたRSSからMediumへの自動公開プロセス
If
Set
Code
+
If
Set
Code
41 ノードObisDev
コンテンツ作成
ワークフロー情報
難易度
上級
ノード数18
カテゴリー2
ノードタイプ10
作成者
Vitorio Magalhães
@vikthyrBrazilian Full Stack Developer passionate about making automation accessible to everyone. I create free n8n workflows that solve real problems - from NASA space content to marketing automation. Proving that powerful automation doesn't need to be expensive or complicated. Teaching through templates, one node at a time.
外部リンク
n8n.ioで表示 →
このワークフローを共有