AI画像生成で人気トレンドからInstagramコンテンツを作成
上級
これはAI, Marketing分野の自動化ワークフローで、44個のノードを含みます。主にIf, Set, Code, Merge, Postgresなどのノードを使用、AI技術を活用したスマート自動化を実現。 人気のトレンドからAIによる画像生成でInstagramコンテンツを作成
前提条件
- •PostgreSQLデータベース接続情報
- •Telegram Bot Token
- •ターゲットAPIの認証情報が必要な場合あり
- •OpenAI API Key
- •Facebook Graph API認証情報
使用ノード (44)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "H7porcmXYj7StO23",
"meta": {
"instanceId": "35409808e3cc9dd8ecfa6f7b93ae931f074920a2f681e667da8974c0ecf81c52",
"templateId": "2537",
"templateCredsSetupCompleted": true
},
"name": "Generate Instagram Content from Top Trends with AI Image Generation",
"tags": [],
"nodes": [
{
"id": "8c49be2b-6320-4eb0-8303-6448ced34636",
"name": "メディアステータスが完了の場合",
"type": "n8n-nodes-base.if",
"position": [
1420,
260
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "0304efee-33b2-499e-bad1-9238c1fc2999",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status_code }}",
"rightValue": "FINISHED"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "f0cc0be5-6d35-4334-a124-139fa8676d07",
"name": "メディアステータスが完了の場合1",
"type": "n8n-nodes-base.if",
"position": [
2000,
260
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "0304efee-33b2-499e-bad1-9238c1fc2999",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status_code }}",
"rightValue": "PUBLISHED"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "c8d8d8cd-8501-4d1b-ac28-8cb3fa74d9d7",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
1580,
440
],
"parameters": {
"text": "Video upload edilmeden önce bir problem oldu",
"chatId": "={{ $('Telegram Params').item.json.telegram_chat_id }}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "GcIVVl98RcazYBaB",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "ae91a5e0-4f70-4a1c-afa5-41f5449facab",
"name": "Telegram1",
"type": "n8n-nodes-base.telegram",
"position": [
2160,
100
],
"parameters": {
"text": "Instagram Content is shared",
"chatId": "={{ $('Telegram Params').item.json.telegram_chat_id }}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "GcIVVl98RcazYBaB",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "b8b38440-14a7-43f6-ac49-6ca9502ff54d",
"name": "Telegram2",
"type": "n8n-nodes-base.telegram",
"position": [
2160,
440
],
"parameters": {
"text": "There was a problem when execution a upload content to instagram",
"chatId": "={{ $('Telegram Params').item.json.telegram_chat_id }}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "GcIVVl98RcazYBaB",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "82e0e5d0-bf50-4b2e-8693-2612dffe53e2",
"name": "アイテムをループ処理",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-1000,
220
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "fb72beb1-1a6a-4148-9ee4-cdc564c4dc5c",
"name": "スケジュールトリガー1",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-3080,
300
],
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "5 13,19 * * *"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "470f3406-19d2-420c-8f33-7031237d882c",
"name": "Telegram パラメータ",
"type": "n8n-nodes-base.set",
"position": [
-2320,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "d18cdca7-d301-4c70-a4d0-8d6e7ecfc2d1",
"name": "telegram_chat_id",
"type": "string",
"value": ""
}
]
}
},
"typeVersion": 3.4
},
{
"id": "12971505-7061-4d32-8921-d2e731eae9db",
"name": "Instagram パラメータ",
"type": "n8n-nodes-base.set",
"position": [
-2560,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "1e380c14-e908-4eeb-90e0-957a422829d0",
"name": "instagram_business_account_id",
"type": "string",
"value": ""
}
]
}
},
"typeVersion": 3.4
},
{
"id": "3cb5f27d-eb3b-4fdc-bb55-1b54f85298e5",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2860,
20
],
"parameters": {
"color": 4,
"width": 1000,
"height": 600,
"content": "## All Credentials You Need\n** Instagram Business Account Id\n** Telegram Chat Id\n** Rapid Api Key\n** Replicate Token"
},
"typeVersion": 1
},
{
"id": "2bc617b8-835c-48ba-8de6-341a6c87b853",
"name": "Rapid Api パラメータ",
"type": "n8n-nodes-base.set",
"notes": "test",
"position": [
-2080,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "48a33ec7-2b4f-496a-ad77-e4d5f1907ee4",
"name": "x-rapid-api-key",
"type": "string",
"value": ""
}
]
}
},
"notesInFlow": false,
"typeVersion": 3.4
},
{
"id": "23bad41e-40ac-4488-8b2f-0d54d22a927a",
"name": "画像コンテンツをフィルタリング",
"type": "n8n-nodes-base.code",
"position": [
-1480,
380
],
"parameters": {
"jsCode": "const filteredData = $input.first().json.data.items.filter(item=> !item.is_video)\nreturn filteredData.map((item)=>{\n return {\n id: item.id,\n prompt: item.caption.text,\n content_code: item.code,\n thumbnail_url: item.thumbnail_url,\n tag: $input.first().json.data.additional_data.name\n }\n}) \n\n"
},
"typeVersion": 2
},
{
"id": "a65690cd-4d30-4541-b80d-aae872326a77",
"name": "instagramのトップトレンドを取得 #blender3d",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1720,
180
],
"parameters": {
"url": "https://instagram-scraper-api2.p.rapidapi.com/v1/hashtag",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "hashtag",
"value": "blender3d"
},
{
"name": "feed_type",
"value": "top"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-host",
"value": "instagram-scraper-api2.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "={{ $json['x-rapid-api-key'] }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "8707c475-7e28-4d80-92b8-ba24033c4632",
"name": "instagramのトップトレンドを取得 #isometric",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1720,
380
],
"parameters": {
"url": "https://instagram-scraper-api2.p.rapidapi.com/v1/hashtag",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "hashtag",
"value": "isometric"
},
{
"name": "feed_type",
"value": "top"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-host",
"value": "instagram-scraper-api2.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "={{ $json['x-rapid-api-key'] }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "1c1bfd8f-b086-4147-ba08-578877f2a315",
"name": "配列コンテンツをマージ",
"type": "n8n-nodes-base.merge",
"position": [
-1280,
280
],
"parameters": {},
"typeVersion": 3
},
{
"id": "dcc2b6b6-9880-4676-8a1a-a3c21e583bba",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3180,
20
],
"parameters": {
"color": 3,
"width": 280,
"height": 600,
"content": "## Schedule Your Time To Post\n"
},
"typeVersion": 1
},
{
"id": "c1e0ac33-c4b7-47d8-bd2b-0b74b02afe38",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2600,
160
],
"parameters": {
"color": 5,
"width": 180,
"height": 300,
"content": "## Guide \n** [Guide](https://docs.matillion.com/metl/docs/6957316//) of getting of Instagram Business Account Id "
},
"typeVersion": 1
},
{
"id": "321680da-ca7a-4c6f-98d4-a0d8f8d0347f",
"name": "付箋5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2360,
160
],
"parameters": {
"color": 5,
"width": 180,
"height": 300,
"content": "## Guide \n** [Guide](https://rapidapi.com/i-yqerddkq0t/api/telegram92/tutorials/how-to-get-the-id-of-a-telegram-channel,-chat,-user-or-bot%3F) of Getting of Telegram Chat Id "
},
"typeVersion": 1
},
{
"id": "b3d07cf7-8d03-4644-88f7-2e94de0c43c2",
"name": "付箋6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2120,
160
],
"parameters": {
"color": 5,
"width": 180,
"height": 300,
"content": "## Guide \n** [Guide](https://docs.rapidapi.com/docs/keys-and-key-rotation) of Getting of Rapid Api Key "
},
"typeVersion": 1
},
{
"id": "b6dbdfaa-fc71-4def-a723-bf6c0facd372",
"name": "付箋7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2360,
480
],
"parameters": {
"color": 7,
"width": 180,
"height": 120,
"content": "## Warning\n**Don't forgot the create bot and send a message to bot first"
},
"typeVersion": 1
},
{
"id": "81d598e2-8993-4315-9894-2e78dc26ad10",
"name": "付箋8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1820,
20
],
"parameters": {
"width": 660,
"height": 600,
"content": "## Getting Top Trend Posts On Instagram\n** Change the topic you want to get on http request"
},
"typeVersion": 1
},
{
"id": "6beb79ef-8205-4882-9bb0-6a2e1a33f1d4",
"name": "データベース上のデータ存在確認",
"type": "n8n-nodes-base.postgres",
"onError": "continueErrorOutput",
"position": [
-760,
220
],
"parameters": {
"table": {
"__rl": true,
"mode": "list",
"value": "top_trends",
"cachedResultName": "top_trends"
},
"where": {
"values": [
{
"value": "={{$json.content_code}}",
"column": "code"
}
]
},
"schema": {
"__rl": true,
"mode": "list",
"value": "public",
"cachedResultName": "public"
},
"options": {},
"operation": "select"
},
"credentials": {
"postgres": {
"id": "sBHQ2psBsfnHkFrZ",
"name": "Postgres account"
}
},
"typeVersion": 2.5,
"alwaysOutputData": true
},
{
"id": "5b0c05a8-3eb7-4ad8-88e8-ceef81fe7a61",
"name": "データが存在する場合",
"type": "n8n-nodes-base.if",
"position": [
-540,
240
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "loose"
},
"combinator": "and",
"conditions": [
{
"id": "9dc20983-ae4d-40db-b969-7d43fa8b0c3e",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ !$json.isEmpty() }}",
"rightValue": "we"
},
{
"id": "0e1b9264-be56-4d0c-a83e-d9ca0b05b265",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "",
"rightValue": ""
}
]
},
"looseTypeValidation": true
},
"executeOnce": false,
"typeVersion": 2.2,
"alwaysOutputData": false
},
{
"id": "557aa2c3-8d0b-42c4-b444-953a538d7ff4",
"name": "付箋9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1120,
20
],
"parameters": {
"width": 1060,
"height": 600,
"content": "## Looping Data And Checking For Is Exist On Database\n**We are checking until find a data we did not insert because we don't want to create content about in same content"
},
"typeVersion": 1
},
{
"id": "9b510f11-9a44-4d54-b162-3ffb55d66677",
"name": "エラーメッセージをtelegramに送信",
"type": "n8n-nodes-base.telegram",
"position": [
-1000,
440
],
"parameters": {
"text": "There was a problem execution a postgresql content",
"chatId": "={{ $('Telegram Params').item.json.telegram_chat_id}}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "GcIVVl98RcazYBaB",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "48bc61de-d416-4673-9e9b-8331ea841891",
"name": "データベースにデータを挿入",
"type": "n8n-nodes-base.postgres",
"position": [
-260,
240
],
"parameters": {
"table": {
"__rl": true,
"mode": "list",
"value": "top_trends",
"cachedResultName": "top_trends"
},
"schema": {
"__rl": true,
"mode": "list",
"value": "public"
},
"columns": {
"value": {
"tag": "={{$('Loop Over Items').item.json.tag}}",
"code": "={{$('Loop Over Items').item.json.content_code}}",
"prompt": "={{$('Loop Over Items').item.json.prompt}}",
"isposted": false,
"thumbnail_url": "={{$('Loop Over Items').item.json.thumbnail_url}}"
},
"schema": [
{
"id": "id",
"type": "number",
"display": true,
"removed": true,
"required": false,
"displayName": "id",
"defaultMatch": true,
"canBeUsedToMatch": true
},
{
"id": "prompt",
"type": "string",
"display": true,
"required": true,
"displayName": "prompt",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "isposted",
"type": "boolean",
"display": true,
"required": false,
"displayName": "isposted",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "createdat",
"type": "dateTime",
"display": true,
"removed": true,
"required": false,
"displayName": "createdat",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "updatedat",
"type": "dateTime",
"display": true,
"removed": true,
"required": false,
"displayName": "updatedat",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "deletedat",
"type": "dateTime",
"display": true,
"removed": true,
"required": false,
"displayName": "deletedat",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "code",
"type": "string",
"display": true,
"required": false,
"displayName": "code",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "tag",
"type": "string",
"display": true,
"required": false,
"displayName": "tag",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "thumbnail_url",
"type": "string",
"display": true,
"required": false,
"displayName": "thumbnail_url",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"id"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"credentials": {
"postgres": {
"id": "sBHQ2psBsfnHkFrZ",
"name": "Postgres account"
}
},
"typeVersion": 2.5
},
{
"id": "15e7d69d-a10f-48a1-b240-046e9950d077",
"name": "画像を分析してコンテンツを提供",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
80,
240
],
"parameters": {
"text": "Create a clear and concise description of the object in the image, focusing on its physical and general features. Avoid detailed environmental aspects like background, lighting, or colors. Describe the shape, texture, size, and any unique characteristics of the object. Mention any notable features that make the object stand out, such as its surface details, materials, and design. The description should be focused on the object itself, not its surroundings.\n\nFor example, describe the following image:\n",
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "GPT-4O-MINI"
},
"options": {},
"resource": "image",
"imageUrls": "={{ $('Loop Over Items').item.json.thumbnail_url }}",
"operation": "analyze"
},
"credentials": {
"openAiApi": {
"id": "1TwEayhZUT90fq8N",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "93e253b1-da7d-4193-b899-a38e6fd9f4e4",
"name": "コンテンツを分析してInstagramキャプションを生成",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
280,
240
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "GPT-4O-MINI"
},
"options": {},
"messages": {
"values": [
{
"content": "=\nSummarize the following content description into a short, engaging Instagram caption under 150 words. The caption should focus on the content of the image, not the app. Keep it appealing to social media users, and highlight the visual details of the image. Include hashtags relevant to 3D modeling and design, such as #Blender3D, #3DArt, #DigitalArt, #3DModeling, and #ArtCommunity. Ensure the tone is friendly and inviting.\n\n\nContent description to summarize:\n{{ $json.content }}\n\nMake sure to craft the caption around the content's features, such as the color contrast, reflective surface, and artistic nature of the image.\n\n"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "1TwEayhZUT90fq8N",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "9af1dc59-1d9e-4900-8f80-1eba946c4057",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-20,
20
],
"parameters": {
"color": 4,
"width": 860,
"height": 600,
"content": "## Analyze Post Content\n** We are analyzing the image\n** We are generating a instagram caption by content\n** Then we are generating the image"
},
"typeVersion": 1
},
{
"id": "2259f6df-dca9-4a7e-babb-e63375f7207f",
"name": "Instagram用データ準備",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
980,
260
],
"parameters": {
"edge": "media",
"node": "={{ $('Instagram params').item.json.instagram_business_account_id }}",
"options": {
"queryParameters": {
"parameter": [
{
"name": "image_url",
"value": "={{ $json.output[0] }}"
},
{
"name": "caption",
"value": "={{ $('Analyze Content And Generate Instagram Caption').item.json.message.content }}"
}
]
}
},
"graphApiVersion": "v20.0",
"httpRequestMethod": "POST"
},
"credentials": {
"facebookGraphApi": {
"id": "ZFxxxLfZ25M7Va6r",
"name": "Facebook Graph account"
}
},
"typeVersion": 1
},
{
"id": "bcbb6058-1966-4bb5-915a-1e65b9131117",
"name": "アップロード前のメディアステータス確認",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
1200,
260
],
"parameters": {
"node": "={{ $json.id }}",
"options": {
"fields": {
"field": [
{
"name": "id"
},
{
"name": "status"
},
{
"name": "status_code"
}
]
}
},
"graphApiVersion": "v20.0"
},
"credentials": {
"facebookGraphApi": {
"id": "ZFxxxLfZ25M7Va6r",
"name": "Facebook Graph account"
}
},
"typeVersion": 1
},
{
"id": "518d87ff-7808-4c06-b137-4e97d8f2ca28",
"name": "Instagramにメディアを公開",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
1600,
100
],
"parameters": {
"edge": "media_publish",
"node": "={{ $('Instagram params').item.json.instagram_business_account_id }}",
"options": {
"queryParameters": {
"parameter": [
{
"name": "creation_id",
"value": "={{ $json.id }}"
}
]
}
},
"graphApiVersion": "v20.0",
"httpRequestMethod": "POST"
},
"credentials": {
"facebookGraphApi": {
"id": "ZFxxxLfZ25M7Va6r",
"name": "Facebook Graph account"
}
},
"typeVersion": 1
},
{
"id": "a033d12b-524f-40e8-9208-5300bbc823d3",
"name": "投稿ステータスを確認",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
1800,
260
],
"parameters": {
"node": "={{ $('Check Status Of Media Before Uploaded').item.json.id }}",
"options": {
"fields": {
"field": [
{
"name": "id"
},
{
"name": "status"
},
{
"name": "status_code"
}
]
}
},
"graphApiVersion": "v20.0"
},
"credentials": {
"facebookGraphApi": {
"id": "ZFxxxLfZ25M7Va6r",
"name": "Facebook Graph account"
}
},
"typeVersion": 1
},
{
"id": "f136e907-2938-4175-b51f-4201fbe3477d",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
880,
20
],
"parameters": {
"color": 5,
"width": 1580,
"height": 600,
"content": "## Publish On Instagram And Send Message When Published via Telegram\n"
},
"typeVersion": 1
},
{
"id": "8145986c-5453-43ac-8d5c-c50a84a62136",
"name": "付箋10",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1800,
100
],
"parameters": {
"color": 5,
"width": 260,
"height": 500,
"content": "## For More About Api\n** [Facebook Scraper Api Guide](https://rapidapi.com/social-api1-instagram/api/instagram-scraper-api2/playground/apiendpoint_a45552b2-9850-4da9-b5cb-bbdd3ac2199d)"
},
"typeVersion": 1
},
{
"id": "02416fbb-4250-4278-af23-1f9189787123",
"name": "画像コンテンツをフィルタリング-2",
"type": "n8n-nodes-base.code",
"position": [
-1480,
180
],
"parameters": {
"jsCode": "const filteredData = $input.first().json.data.items.filter(item=> !item.is_video)\nreturn filteredData.map((item)=>{\n return {\n id: item.id,\n prompt: item.caption.text,\n content_code: item.code,\n thumbnail_url: item.thumbnail_url,\n tag: $input.first().json.data.additional_data.name\n }\n}) \n\n"
},
"typeVersion": 2
},
{
"id": "2d1ea53d-1d32-4b86-8944-ce2ad4a69847",
"name": "付箋11",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2820,
160
],
"parameters": {
"color": 5,
"width": 180,
"height": 300,
"content": "## Guide \n** [Guide](https://replicate.com) of getting of Replicate Token "
},
"typeVersion": 1
},
{
"id": "c8b933af-356e-49ae-92d3-42eaf4ee3e9f",
"name": "Replicate パラメータ",
"type": "n8n-nodes-base.set",
"position": [
-2780,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "1e380c14-e908-4eeb-90e0-957a422829d0",
"name": "replicate_token",
"type": "string",
"value": ""
}
]
}
},
"typeVersion": 3.4
},
{
"id": "2c73cc9c-d436-459b-9b3c-bd870810b9b4",
"name": "Fluxで画像生成",
"type": "n8n-nodes-base.httpRequest",
"position": [
680,
260
],
"parameters": {
"url": "https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions",
"method": "POST",
"options": {},
"jsonBody": "={\n \"input\": {\n \"prompt\": \"A highly detailed 3D isometric model of {{$('Analyze Image and give the content').item.json.content .replace(/\\\\n/g, ' ') \n.replace(/\\\\t/g, ' ') \n.replace(/\\s+/g, ' ')\n.trim(); }} rendered in a stylized miniature toy aesthetic. Materials: Matte plastic/painted metal/weathered stone texture with no self-shadowing. Lighting: - Completely shadowless rendering - Ultra bright and perfectly even illumination from all angles - Pure ambient lighting without directional shadows - Flat, consistent lighting across all surfaces - No ambient occlusion. Style specifications: - Clean, defined edges and surfaces - Slightly exaggerated proportions - Miniature/toy-like scale - Subtle wear and texturing - Rich color palette with muted tones - Isometric 3/4 view angle - Crisp details and micro-elements. Technical details: - 4K resolution - PBR materials without shadows - No depth of field - High-quality anti-aliasing - Perfect uniform lighting. Environment: Pure white background with zero shadows or gradients. Post-processing: High key lighting, maximum brightness, shadow removal.\",\n \"output_format\": \"jpg\",\n \"output_quality\": 100,\n \"go_fast\":false\n }\n}\n",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "=json",
"bodyParameters": {
"parameters": [
{}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "=Bearer {{ $('Replicate params').item.json.replicate_token}}"
},
{
"name": "Prefer",
"value": "wait"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "6f9e7dc6-1287-4235-8631-198d729f367f",
"name": "付箋12",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1120,
-340
],
"parameters": {
"color": 4,
"width": 1060,
"height": 320,
"content": "## For top_trends Table\n```\nCREATE TABLE top_trends (\n id SERIAL PRIMARY KEY,\n isposted BOOLEAN DEFAULT false,\n createdat TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP,\n updatedat TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP,\n deletedat TIMESTAMP WITHOUT TIME ZONE,\n prompt TEXT NOT NULL,\n thumbnail_url TEXT,\n code TEXT,\n tag TEXT\n);\n```"
},
"typeVersion": 1
},
{
"id": "b19951bb-6346-44a7-a4c8-1bd0806c6019",
"name": "付箋13",
"type": "n8n-nodes-base.stickyNote",
"position": [
-660,
-120
],
"parameters": {
"color": 3,
"width": 160,
"height": 120,
"content": "## Warning\n** Don't forgot the create top_trends table"
},
"typeVersion": 1
},
{
"id": "3de6b8e5-c5e0-4999-871a-c349cb9b3ac0",
"name": "付箋14",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3180,
-940
],
"parameters": {
"width": 620,
"height": 840,
"content": "\n## Automated Instagram Content Creation from Trending Posts\n\nThis workflow automates the process of discovering and recreating trending content on Instagram:\n\n1. Content Discovery:\n - Scrapes top trending posts from specific hashtags (#blender3d, #isometric)\n - Filters for image-only content (excludes videos)\n - Checks database to avoid duplicate content\n\n2. AI-Powered Content Generation:\n - Analyzes trending images using GPT-4 Vision\n - Generates detailed descriptions of visual elements\n - Creates engaging Instagram captions with relevant hashtags\n - Uses Flux AI to generate similar but unique images\n\n3. Publishing & Monitoring:\n - Automatically posts content to Instagram Business Account\n - Monitors post status and publishing process\n - Sends status updates via Telegram\n\nPerfect for content creators and businesses looking to maintain an active Instagram presence with AI-generated content inspired by current trends. The workflow runs on schedule and handles everything from content discovery to publication automatically.\n\nNote: Requires Instagram Business Account, Telegram Bot, OpenAI, and Replicate API credentials."
},
"typeVersion": 1
},
{
"id": "dfd0d182-177c-4336-8950-4792ea739123",
"name": "付箋15",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2120,
480
],
"parameters": {
"color": 7,
"width": 180,
"height": 120,
"content": "##Warning\n** Dont forgot the subscribe [Instagram Scraper Api](https://rapidapi.com/social-api1-instagram/api/instagram-scraper-api2/playground/apiendpoint_a45552b2-9850-4da9-b5cb-bbdd3ac2199d)"
},
"typeVersion": 1
},
{
"id": "03330941-3c6e-4152-8c51-f1d53f4424bc",
"name": "付箋16",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2120,
640
],
"parameters": {
"width": 180,
"height": 180,
"content": "## Warning\n** You can check the [rate limit](https://rapidapi.com/social-api1-instagram/api/instagram-scraper-api2) of the Instagram Scraper Api on Rapid Api\n** Free version is monthly 500 request\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"timezone": "Europe/Istanbul",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "cc50f9e8-373b-433a-af43-824a264e762a",
"connections": {
"c8d8d8cd-8501-4d1b-ac28-8cb3fa74d9d7": {
"main": [
[]
]
},
"82e0e5d0-bf50-4b2e-8693-2612dffe53e2": {
"main": [
[],
[
{
"node": "6beb79ef-8205-4882-9bb0-6a2e1a33f1d4",
"type": "main",
"index": 0
}
]
]
},
"470f3406-19d2-420c-8f33-7031237d882c": {
"main": [
[
{
"node": "2bc617b8-835c-48ba-8de6-341a6c87b853",
"type": "main",
"index": 0
}
]
]
},
"5b0c05a8-3eb7-4ad8-88e8-ceef81fe7a61": {
"main": [
[
{
"node": "82e0e5d0-bf50-4b2e-8693-2612dffe53e2",
"type": "main",
"index": 0
}
],
[
{
"node": "48bc61de-d416-4673-9e9b-8331ea841891",
"type": "main",
"index": 0
}
]
]
},
"12971505-7061-4d32-8921-d2e731eae9db": {
"main": [
[
{
"node": "470f3406-19d2-420c-8f33-7031237d882c",
"type": "main",
"index": 0
}
]
]
},
"2bc617b8-835c-48ba-8de6-341a6c87b853": {
"main": [
[
{
"node": "8707c475-7e28-4d80-92b8-ba24033c4632",
"type": "main",
"index": 0
},
{
"node": "a65690cd-4d30-4541-b80d-aae872326a77",
"type": "main",
"index": 0
}
]
]
},
"c8b933af-356e-49ae-92d3-42eaf4ee3e9f": {
"main": [
[
{
"node": "12971505-7061-4d32-8921-d2e731eae9db",
"type": "main",
"index": 0
}
]
]
},
"fb72beb1-1a6a-4148-9ee4-cdc564c4dc5c": {
"main": [
[
{
"node": "c8b933af-356e-49ae-92d3-42eaf4ee3e9f",
"type": "main",
"index": 0
}
]
]
},
"48bc61de-d416-4673-9e9b-8331ea841891": {
"main": [
[
{
"node": "15e7d69d-a10f-48a1-b240-046e9950d077",
"type": "main",
"index": 0
}
]
]
},
"a033d12b-524f-40e8-9208-5300bbc823d3": {
"main": [
[
{
"node": "f0cc0be5-6d35-4334-a124-139fa8676d07",
"type": "main",
"index": 0
}
]
]
},
"2c73cc9c-d436-459b-9b3c-bd870810b9b4": {
"main": [
[
{
"node": "2259f6df-dca9-4a7e-babb-e63375f7207f",
"type": "main",
"index": 0
}
]
]
},
"1c1bfd8f-b086-4147-ba08-578877f2a315": {
"main": [
[
{
"node": "82e0e5d0-bf50-4b2e-8693-2612dffe53e2",
"type": "main",
"index": 0
}
]
]
},
"23bad41e-40ac-4488-8b2f-0d54d22a927a": {
"main": [
[
{
"node": "1c1bfd8f-b086-4147-ba08-578877f2a315",
"type": "main",
"index": 1
}
]
]
},
"2259f6df-dca9-4a7e-babb-e63375f7207f": {
"main": [
[
{
"node": "bcbb6058-1966-4bb5-915a-1e65b9131117",
"type": "main",
"index": 0
}
]
]
},
"518d87ff-7808-4c06-b137-4e97d8f2ca28": {
"main": [
[
{
"node": "a033d12b-524f-40e8-9208-5300bbc823d3",
"type": "main",
"index": 0
}
]
]
},
"02416fbb-4250-4278-af23-1f9189787123": {
"main": [
[
{
"node": "1c1bfd8f-b086-4147-ba08-578877f2a315",
"type": "main",
"index": 0
}
]
]
},
"8c49be2b-6320-4eb0-8303-6448ced34636": {
"main": [
[
{
"node": "518d87ff-7808-4c06-b137-4e97d8f2ca28",
"type": "main",
"index": 0
}
],
[
{
"node": "c8d8d8cd-8501-4d1b-ac28-8cb3fa74d9d7",
"type": "main",
"index": 0
}
]
]
},
"f0cc0be5-6d35-4334-a124-139fa8676d07": {
"main": [
[
{
"node": "ae91a5e0-4f70-4a1c-afa5-41f5449facab",
"type": "main",
"index": 0
}
],
[
{
"node": "b8b38440-14a7-43f6-ac49-6ca9502ff54d",
"type": "main",
"index": 0
}
]
]
},
"6beb79ef-8205-4882-9bb0-6a2e1a33f1d4": {
"main": [
[
{
"node": "5b0c05a8-3eb7-4ad8-88e8-ceef81fe7a61",
"type": "main",
"index": 0
}
],
[
{
"node": "9b510f11-9a44-4d54-b162-3ffb55d66677",
"type": "main",
"index": 0
}
]
]
},
"15e7d69d-a10f-48a1-b240-046e9950d077": {
"main": [
[
{
"node": "93e253b1-da7d-4193-b899-a38e6fd9f4e4",
"type": "main",
"index": 0
}
]
]
},
"bcbb6058-1966-4bb5-915a-1e65b9131117": {
"main": [
[
{
"node": "8c49be2b-6320-4eb0-8303-6448ced34636",
"type": "main",
"index": 0
}
]
]
},
"8707c475-7e28-4d80-92b8-ba24033c4632": {
"main": [
[
{
"node": "23bad41e-40ac-4488-8b2f-0d54d22a927a",
"type": "main",
"index": 0
}
]
]
},
"a65690cd-4d30-4541-b80d-aae872326a77": {
"main": [
[
{
"node": "02416fbb-4250-4278-af23-1f9189787123",
"type": "main",
"index": 0
}
]
]
},
"93e253b1-da7d-4193-b899-a38e6fd9f4e4": {
"main": [
[
{
"node": "2c73cc9c-d436-459b-9b3c-bd870810b9b4",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
上級 - 人工知能, マーケティング
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
GPT-4o、WordPress、LinkedInを使ってRSSから自動でブログ記事を投稿
GPT-4o、WordPress、LinkedInを使ってRSSコンテンツを自動のにブログ記事へ公開
If
Set
Code
+
If
Set
Code
40 ノードImmanuel
人工知能
MailChimp自動化
基于AIの餐厅通讯ジェネレーター,統合MailchimpとTelegram审批
If
Set
Code
+
If
Set
Code
43 ノードFemi Ad
人工知能
AI、ElevenLabs、マルチプラットフォーム公開を使ってPOVビデオの作成と承認
AI、ElevenLabs、そしてマルチプラットフォーム公開を使ったPOVビデオの作成と承認(TikTok/IG/YT)
If
Set
Code
+
If
Set
Code
60 ノードImmanuel
デザイン
OpenAI、Reddit、Google Trendsを使ってトレンドを抽出してソーシャルメディアコンテンツを自動生成
AI、Reddit、Google Trendsを使ってトレンドを抽出し、ソーシャルメディアコンテンツを自動生成
If
Set
Code
+
If
Set
Code
39 ノードImmanuel
人工知能
✨🤖X + Facebook + Instagram + LinkedIn向けの自動化AI駆動型ソーシャルメディアコンテンツファクトリー
✨🤖 AIを使用してマルチプラットフォームでソーシャルメディアコンテンツ作成を自動化
If
Set
Code
+
If
Set
Code
57 ノードJoseph LePage
人工知能
ペットショップ 4
ペットショップ予約AIエージェント
If
Set
Code
+
If
Set
Code
187 ノードBruno Dias
人工知能
ワークフロー情報
難易度
上級
ノード数44
カテゴリー2
ノードタイプ12
作成者
mustafa kendigüzel
@mustafakendiguzelFull-stack developer with 5+ years of experience in scalable software solutions. Skilled in Node.js, NestJS, PostgreSQL, and cloud platforms like AWS and Google Cloud. Expertise in microservices, real-time data processing, and API development. Passionate about delivering high-performance applications and driving innovation through cutting-edge technologies.
外部リンク
n8n.ioで表示 →
このワークフローを共有