Telegramボットインターフェースを使ってGPTと画像を使用してウィルスのなLinkedInコンテンツを生成する
中級
これはContent Creation, Multimodal AI分野の自動化ワークフローで、15個のノードを含みます。主にSplitOut, Telegram, HttpRequest, Agent, TelegramTriggerなどのノードを使用。 GPTと画像を使ってTelegramボットインターフェースからウイルスのなLinkedInコンテンツを生成する
前提条件
- •Telegram Bot Token
- •ターゲットAPIの認証情報が必要な場合あり
- •OpenAI API Key
使用ノード (15)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "744512f77fc51097e8ca6be7a65f53ac98b545404aa0360c7832162d51cb4e02"
},
"nodes": [
{
"id": "e3517ee8-ff96-4a9c-8000-789edfde137f",
"name": "Telegram トリガー",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-816,
112
],
"webhookId": "e02b3b11-f6e1-4f34-9b8c-c5c14c1a5461",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "AarnxB8wJEK5UvZA",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "3493a02f-74b5-4f47-a65c-d29270527f2d",
"name": "分割出力",
"type": "n8n-nodes-base.splitOut",
"position": [
48,
-48
],
"parameters": {
"options": {},
"fieldToSplitOut": "result.data.results"
},
"typeVersion": 1
},
{
"id": "56bf0f72-13b6-4dbb-9076-21d2dcaf2147",
"name": "generate_img",
"type": "n8n-nodes-base.httpRequest",
"position": [
-192,
-48
],
"parameters": {
"url": "https://ai-text-to-image-generator-flux-free-api.p.rapidapi.com/aaaaaaaaaaaaaaaaaiimagegenerator/quick.php",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "prompt",
"value": "={{ $json.output.img_prompt }}"
},
{
"name": "style_id",
"value": "4"
},
{
"name": "size",
"value": "1-1"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-host",
"value": "ai-text-to-image-generator-flux-free-api.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "YOUR_RAPID_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "14334c13-43d4-457f-904e-127f3b0fff08",
"name": "download_img",
"type": "n8n-nodes-base.httpRequest",
"position": [
288,
-48
],
"parameters": {
"url": "={{ $json.thumb }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "4b98d03e-15fa-4cf9-8fba-d614059bb22c",
"name": "OpenAI チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-416,
720
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-5-nano",
"cachedResultName": "gpt-5-nano"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "RZp4ut0OPqv29RiA",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "92b864a4-898d-4780-bc89-b89438b6b7bb",
"name": "tavily",
"type": "@tavily/n8n-nodes-tavily.tavilyTool",
"position": [
-128,
640
],
"parameters": {
"query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
"options": {
"days": 3,
"topic": "general",
"max_results": 5,
"search_depth": "advanced"
}
},
"credentials": {
"tavilyApi": {
"id": "qLj9ixhXupU9fEMj",
"name": "Tavily account"
}
},
"typeVersion": 1
},
{
"id": "db0412c2-37c4-4256-9a42-580f089284b1",
"name": "expert_algo",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-576,
112
],
"parameters": {
"text": "={{ $json.message.text }}",
"options": {
"systemMessage": "=Tu es un expert en algorythme LinkedIn. Tu es capable d'analyser les meilleurs posts viraux, et comprendre pourquoi ils ont été viraux. \n\nTa mission est d'analyser tout les posts LinkedIn qui ont le plus d'impressions et de réactions en rapport avec la demande de l'utilisateur, et d'envoyer en output un framework pertinent pour créer un post viral destiné à être publier et un prompt pour générer une image pour le post !\n\nRègles :\n- Utilise ton outil de recherche \"tavily\" pour surveiller les posts LinkedIn viraux. \n- Ta réponse doit être bien structuré avec un framework exploitable.\n\nFormat de réponse : \n{\n \"framework\": \"Framework exploitable pour rédiger le post LinkedIn\",\n \"img_prompt\": \"Prompt exploitable pour générer l'image pous le post\"\n}"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.2
},
{
"id": "04e2ae49-6ee9-469f-8318-484a1b605460",
"name": "構造化出力パーサー",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-432,
208
],
"parameters": {
"jsonSchemaExample": "{\n \"framework\": \"string\",\n \"img_prompt\": \"string\"\n}"
},
"typeVersion": 1.3
},
{
"id": "63c2485f-0186-4126-a83e-27046efbb96d",
"name": "構造化出力パーサー1",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-48,
336
],
"parameters": {
"jsonSchemaExample": "{\n \"post_1\": \"string\",\n \"post_2\": \"string\",\n \"post_3\": \"string\"\n}"
},
"typeVersion": 1.3
},
{
"id": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
"name": "Community Manager",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
160,
240
],
"parameters": {
"text": "=Voici les 3 proposition de post : \n1 : \n{{ $json.output.post_1 }}\n2 : \n{{ $json.output.post_2 }}\n3 : \n{{ $json.output.post_3 }}",
"options": {
"systemMessage": "=Tu es un Community Manager sénior, ta mission est d'analyser les 3 propositions de posts LinkedIn que tu reçois en input, et de choisir celui qui te semble le plus viral et le transmet dans ton output. \n\nRègles :\n- Utilise ton outil tavily pour effectuer les recherches nécessaires pour savoir quelle proposition de post serai la plus virale.\n- Format de réponse : \n{\n \"post\": \"Post LinkedIn choisi\"\n}"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 2.2
},
{
"id": "a21e029e-b5b1-468b-937a-5952c0d405f3",
"name": "CM Junior",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
-192,
240
],
"parameters": {
"text": "=Voici le framework à utiliser :\n{{ $json.output.framework }}",
"batching": {},
"messages": {
"messageValues": [
{
"message": "=Tu es expert en rédaction de post LinkedIn viral, tu es community manager sénior et les algorithmes des réseaux sociaux n'ont plus aucun secret pour toi \n\nTa mission est de me proposer 3 posts LinkedIn viral grâce au framework que tu reçois en input. \n\nRègles : \n- Les posts LinkedIn doivent faire entre 500 et 900 caractères\n- Ton style de rédaction doit impérativement refléter le mien : ton amical et instructif. \n- Utilise impérativement le framework pour rédiger tes propositions de posts LinkedIn. \n\nFormat de réponse : \n\n{\n \"post_1\": \"Première proposition de post\",\n \"post_2\": \"Deuxième proposition de post\",\n \"post_3\": \"Troisième proposition de post\"\n}"
}
]
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.7
},
{
"id": "97507dd8-0812-4109-a669-11e59d88c438",
"name": "構造化出力パーサー2",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
304,
336
],
"parameters": {
"jsonSchemaExample": "{\n\t\"post\": \"string\"\n}"
},
"typeVersion": 1.3
},
{
"id": "23a40733-0b6c-4289-b44d-25431f6a0923",
"name": "Send a photo message",
"type": "n8n-nodes-base.telegram",
"position": [
496,
-48
],
"webhookId": "5c18ebd7-0e5d-4367-ba1f-6352371122b4",
"parameters": {
"chatId": "=YOUR_TELEGRAM_CHAT_ID",
"operation": "sendPhoto",
"binaryData": true,
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "AarnxB8wJEK5UvZA",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "e8740c71-f52e-428f-b327-a15aa9730db9",
"name": "Send a text message",
"type": "n8n-nodes-base.telegram",
"position": [
496,
240
],
"webhookId": "6eb32d3f-093b-4070-8695-45c97f7a8edd",
"parameters": {
"text": "={{ $json.output.post }}",
"chatId": "=YOUR_TELEGRAM_CHAT_ID",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "AarnxB8wJEK5UvZA",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "da682c59-f46b-408c-afd5-430a91a41feb",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1360,
-288
],
"parameters": {
"width": 2240,
"height": 1200,
"content": "## LinkedIn Viral Content Generator & Image Poster (Telegram Bot) \n\n### Description: \n\nThis workflow helps you generate a viral LinkedIn post + AI image PROMPTED by user request on Telegram. \nIt uses AI to analyze trending LinkedIn content, builds an effective framework for virality, creates post variations, selects the best one, generates an image, and sends both back on Telegram.\n\n\n---\n\n## Requirements / Setup \n\n### Description: \n\n- Configure your OpenAI credentials \n- Set your Telegram credentials and chat ID \n- Obtain your RAPIDAPI key for the free AI image generator \n- (Optionally: Set up Tavily credentials if needed for research tools)\n\n\n---\n\n## Personalization \n\n### Description:\n \n\n- All authentication values must be inserted via Credentials panel, not hard-coded in nodes \n- Edit any placeholders (e.g., chat ID, keys) before activating your workflow\n\n\n---\n\n\n## Test Before Publish \n\n### Description: \n\n\n- Run the workflow with your own values to ensure everything works \n- Make sure NO sensitive/personal data remains before sharing \n- You can add example outputs in note (markdown supports code formatting)\n"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"92b864a4-898d-4780-bc89-b89438b6b7bb": {
"ai_tool": [
[
{
"node": "db0412c2-37c4-4256-9a42-580f089284b1",
"type": "ai_tool",
"index": 0
},
{
"node": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
"type": "ai_tool",
"index": 0
}
]
]
},
"a21e029e-b5b1-468b-937a-5952c0d405f3": {
"main": [
[
{
"node": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "14334c13-43d4-457f-904e-127f3b0fff08",
"type": "main",
"index": 0
}
]
]
},
"db0412c2-37c4-4256-9a42-580f089284b1": {
"main": [
[
{
"node": "a21e029e-b5b1-468b-937a-5952c0d405f3",
"type": "main",
"index": 0
},
{
"node": "56bf0f72-13b6-4dbb-9076-21d2dcaf2147",
"type": "main",
"index": 0
}
]
]
},
"14334c13-43d4-457f-904e-127f3b0fff08": {
"main": [
[
{
"node": "23a40733-0b6c-4289-b44d-25431f6a0923",
"type": "main",
"index": 0
}
]
]
},
"56bf0f72-13b6-4dbb-9076-21d2dcaf2147": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "db0412c2-37c4-4256-9a42-580f089284b1",
"type": "main",
"index": 0
}
]
]
},
"34fb849d-522e-40aa-bda4-3bd72c70d60c": {
"main": [
[
{
"node": "e8740c71-f52e-428f-b327-a15aa9730db9",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "db0412c2-37c4-4256-9a42-580f089284b1",
"type": "ai_languageModel",
"index": 0
},
{
"node": "a21e029e-b5b1-468b-937a-5952c0d405f3",
"type": "ai_languageModel",
"index": 0
},
{
"node": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "db0412c2-37c4-4256-9a42-580f089284b1",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser1": {
"ai_outputParser": [
[
{
"node": "a21e029e-b5b1-468b-937a-5952c0d405f3",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser2": {
"ai_outputParser": [
[
{
"node": "34fb849d-522e-40aa-bda4-3bd72c70d60c",
"type": "ai_outputParser",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - コンテンツ作成, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
💥 NanoBanana、Seedream 4、ChatGPT Image、Veo 3 を使って動画広告を自動化 - VIDEO
AI(NanoBanana、Seedream、GPT-4o、Veo 3)を使って動画広告キャンペーンを自動化し公開
Set
Code
Wait
+
Set
Code
Wait
63 ノードDr. Firas
コンテンツ作成
再生リスト詳細設定ボットコピー
Suno、GPT-4、Runway、Creatomate を使って AI 生成の YouTube ミュージックプレイリストを作成
If
Set
Code
+
If
Set
Code
203 ノードJoseph
コンテンツ作成
UGC広告クリエイター ✅
Telegram そして GPT-4 を使って AI 生成の UGC マーケティングビデオを作成
If
Set
Wait
+
If
Set
Wait
33 ノードDeniz
コンテンツ作成
GPT-4o、ElevenLabs、WaveSpeed で口語同期してリアル UGC 動画広告を作る
GPT-4o、ElevenLabs、WaveSpeedを使ってリアルなUGC動画広告のメロー同期を作成
If
Set
Wait
+
If
Set
Wait
38 ノードMuhammad Farooq Iqbal
コンテンツ作成
製品画像からの UGC 動画生成(Telegram を通じて GPT-4、Fal.ai、KIE.ai)
テレグラムを使って製品画像からGPT-4、Fal.ai、KIE.aiを用いてUGC動画を生成
Set
Wait
Split Out
+
Set
Wait
Split Out
28 ノードMuhammad Farooq Iqbal
コンテンツ作成
コンテンツジェネレーター v3
AI驱动ブログ自動化:使用GPT-4生成并公開SEO記事至WordPressとTwitter
If
Set
Code
+
If
Set
Code
144 ノードJay Emp0
コンテンツ作成