使用CodeFormer和LightX AI增强并扩展Telegram图像至3:2比例
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 35 个节点。主要使用 If, Set, Code, Wait, AwsS3 等节点。 通过CodeFormer和LightX AI技术增强并扩展Telegram图像至3:2比例
前置要求
- •AWS Access Key 和 Secret
- •Telegram Bot Token
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "eaa9286ef9d5375e519de908f4614ad971a55cef382b67b20d47857d303e4068",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "8a8e1283-b1fe-483f-b172-f1c3fdabdd5b",
"name": "通过 Telegram 向用户发送最终 URL",
"type": "n8n-nodes-base.telegram",
"position": [
7020,
1360
],
"webhookId": "755d5424-c342-4b76-b8a6-93d4fad71d0b",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "73e9ecf0-1742-432b-947b-ea6dc34d8a6a",
"name": "为最终图像生成公共 URL",
"type": "n8n-nodes-base.set",
"position": [
6700,
1360
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "b799251c-e1b5-4a05-a2d4-bdf3842c4078",
"name": "将最终照片上传到 S1",
"type": "n8n-nodes-base.awsS3",
"position": [
6420,
1360
],
"parameters": {},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "d8460dfb-4e56-4b01-97ae-77121153d492",
"name": "从 LightX 下载最终照片",
"type": "n8n-nodes-base.httpRequest",
"position": [
6160,
1360
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "56c60dcc-bc47-42b6-8c00-2c928dd4f2a2",
"name": "生成输出文件名 (.jpeg) 最终",
"type": "n8n-nodes-base.set",
"position": [
5880,
1360
],
"parameters": {},
"typeVersion": 3.4,
"alwaysOutputData": true
},
{
"id": "b414d721-a525-4c2b-b477-acae8829cc70",
"name": "检查扩展是否完成",
"type": "n8n-nodes-base.if",
"position": [
5580,
1380
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "8a9c6a71-c853-4fca-a739-0879334e6eb6",
"name": "检查 LightX 扩展状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
5300,
1380
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "b74d9156-9d1e-4cf5-ac2b-ea4e393493ac",
"name": "在再次检查状态前等待",
"type": "n8n-nodes-base.wait",
"position": [
5040,
1380
],
"webhookId": "23aad464-c118-498b-8e28-a710c56ae223",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "1044f07f-d67f-4e7a-9388-c18cbd531fd7",
"name": "迭代直到扩展就绪",
"type": "n8n-nodes-base.splitInBatches",
"position": [
4720,
1360
],
"parameters": {},
"typeVersion": 3
},
{
"id": "c6135ac6-81bf-4766-b41f-e51cb9a3dbd9",
"name": "向 LightX 请求 AI 扩展",
"type": "n8n-nodes-base.httpRequest",
"position": [
4440,
1360
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "ab1e6bc5-6e39-460b-9e47-426dfaf1cacd",
"name": "通过 PUT 将文件上传到 LightX",
"type": "n8n-nodes-base.httpRequest",
"position": [
4140,
1360
],
"parameters": {},
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "2de2fb28-540d-49f2-932e-dc15b7eea761",
"name": "合并上传数据",
"type": "n8n-nodes-base.merge",
"position": [
3900,
1360
],
"parameters": {},
"executeOnce": true,
"typeVersion": 3.2
},
{
"id": "6766cd63-f5b7-40b3-9b3c-20536bb52860",
"name": "从 LightX 响应中提取上传链接",
"type": "n8n-nodes-base.set",
"position": [
3600,
1620
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "29edec28-e19f-49fd-ab0c-15b640f37dd8",
"name": "向 LightX 请求上传链接",
"type": "n8n-nodes-base.httpRequest",
"position": [
3360,
1620
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "c2f43734-60bd-4bee-8fb0-1278dba1180d",
"name": "获取文件大小(字节)",
"type": "n8n-nodes-base.code",
"position": [
3000,
1620
],
"parameters": {},
"typeVersion": 2
},
{
"id": "c03a9108-b536-4880-8f5e-fea7ef043c67",
"name": "计算 3:2 比例的填充",
"type": "n8n-nodes-base.code",
"position": [
3200,
1440
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2
},
{
"id": "87dd82ab-bfdc-432f-8858-d9e6feb27d4f",
"name": "从 Replicate1 下载放大后的图像",
"type": "n8n-nodes-base.httpRequest",
"position": [
2500,
1360
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 4.2,
"alwaysOutputData": true,
"waitBetweenTries": 5000
},
{
"id": "20dfe756-c783-47dc-8803-27850bf957ea",
"name": "放大后等待",
"type": "n8n-nodes-base.wait",
"position": [
2260,
1360
],
"webhookId": "55c949dc-e8c0-4ce4-a1ea-8c323179d90a",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "e0de18f5-3837-403e-b88e-87a7a1ec03e5",
"name": "通过 Replicate 进行 AI 图像放大",
"type": "n8n-nodes-base.httpRequest",
"position": [
2000,
1360
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "9a3de094-e126-40c9-b7d3-0d9b28dae2d7",
"name": "生成输出文件名 (.png)",
"type": "n8n-nodes-base.set",
"position": [
1640,
1360
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "e4e3cb8e-dc22-422d-80b7-e585f7e72a74",
"name": "为 AI 模型设置输入 URL",
"type": "n8n-nodes-base.set",
"position": [
1400,
1360
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "ac74321c-5569-49b9-9948-587827c1a4f8",
"name": "为原始图像生成公共 URL",
"type": "n8n-nodes-base.set",
"position": [
1160,
1600
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "090f94e3-d0d5-4f23-8d42-a6e55150fc7c",
"name": "将原始照片上传到 S1",
"type": "n8n-nodes-base.awsS3",
"position": [
960,
1600
],
"parameters": {},
"typeVersion": 2,
"alwaysOutputData": true
},
{
"id": "ef3d4a29-7a2f-48ee-af8e-32c79ef2ca57",
"name": "生成输入文件名 (.jpeg)",
"type": "n8n-nodes-base.set",
"position": [
760,
1600
],
"parameters": {},
"typeVersion": 3.4,
"alwaysOutputData": true
},
{
"id": "43297a9f-88b3-41d0-8d3c-810def8d6396",
"name": "检查照片是否存在1",
"type": "n8n-nodes-base.if",
"position": [
520,
1360
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "d1ce51dd-fb1c-48be-ab61-fd757d43a65a",
"name": "便签链接1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1320,
1160
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "9ea2c1a9-cfb1-4f86-ab72-6edec5cc9aa3",
"name": "便签结果1",
"type": "n8n-nodes-base.stickyNote",
"position": [
6080,
1160
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "af097ef7-aa9a-4bc0-9506-ca0f49852536",
"name": "便签循环1",
"type": "n8n-nodes-base.stickyNote",
"position": [
4940,
1240
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "3d395361-bf6c-4b9c-abc2-2d9a3380c5a7",
"name": "便签扩展流程1",
"type": "n8n-nodes-base.stickyNote",
"position": [
2980,
1260
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "35ef0300-cd70-4cc4-aa63-ceccf71055e2",
"name": "便签放大1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1800,
1160
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "57fb8639-b837-42e1-a00d-7e023e62afa4",
"name": "便签照片上传1",
"type": "n8n-nodes-base.stickyNote",
"position": [
760,
1420
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "3b8d5b0d-a6d6-41ae-a982-b4f13b946292",
"name": "便签条件1",
"type": "n8n-nodes-base.stickyNote",
"position": [
480,
1100
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "4c837519-3a40-4a15-a23f-0c902fb31643",
"name": "便签触发器1",
"type": "n8n-nodes-base.stickyNote",
"position": [
100,
1160
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "d85ba121-ed4c-4f90-a519-56f34be50ee9",
"name": "便签主流程1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-440,
1040
],
"parameters": {
"content": "Emelia 触发器"
},
"typeVersion": 1
},
{
"id": "13499aea-d3a7-485f-80af-c6fb11415f01",
"name": "Telegram 触发器1",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
280,
1360
],
"webhookId": "a2df8f2b-899e-4db9-b7ca-d68a8043adbe",
"parameters": {},
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"13499aea-d3a7-485f-80af-c6fb11415f01": {
"main": [
[
{
"node": "43297a9f-88b3-41d0-8d3c-810def8d6396",
"type": "main",
"index": 0
}
]
]
},
"20dfe756-c783-47dc-8803-27850bf957ea": {
"main": [
[
{
"node": "87dd82ab-bfdc-432f-8858-d9e6feb27d4f",
"type": "main",
"index": 0
}
]
]
},
"2de2fb28-540d-49f2-932e-dc15b7eea761": {
"main": [
[
{
"node": "ab1e6bc5-6e39-460b-9e47-426dfaf1cacd",
"type": "main",
"index": 0
}
]
]
},
"43297a9f-88b3-41d0-8d3c-810def8d6396": {
"main": [
[
{
"node": "e4e3cb8e-dc22-422d-80b7-e585f7e72a74",
"type": "main",
"index": 0
}
],
[
{
"node": "ef3d4a29-7a2f-48ee-af8e-32c79ef2ca57",
"type": "main",
"index": 0
}
]
]
},
"c2f43734-60bd-4bee-8fb0-1278dba1180d": {
"main": [
[
{
"node": "29edec28-e19f-49fd-ab0c-15b640f37dd8",
"type": "main",
"index": 0
}
]
]
},
"b799251c-e1b5-4a05-a2d4-bdf3842c4078": {
"main": [
[
{
"node": "73e9ecf0-1742-432b-947b-ea6dc34d8a6a",
"type": "main",
"index": 0
}
]
]
},
"e4e3cb8e-dc22-422d-80b7-e585f7e72a74": {
"main": [
[
{
"node": "9a3de094-e126-40c9-b7d3-0d9b28dae2d7",
"type": "main",
"index": 0
}
]
]
},
"090f94e3-d0d5-4f23-8d42-a6e55150fc7c": {
"main": [
[
{
"node": "ac74321c-5569-49b9-9948-587827c1a4f8",
"type": "main",
"index": 0
}
]
]
},
"8a9c6a71-c853-4fca-a739-0879334e6eb6": {
"main": [
[
{
"node": "b414d721-a525-4c2b-b477-acae8829cc70",
"type": "main",
"index": 0
}
]
]
},
"ab1e6bc5-6e39-460b-9e47-426dfaf1cacd": {
"main": [
[
{
"node": "c6135ac6-81bf-4766-b41f-e51cb9a3dbd9",
"type": "main",
"index": 0
}
]
]
},
"e0de18f5-3837-403e-b88e-87a7a1ec03e5": {
"main": [
[
{
"node": "20dfe756-c783-47dc-8803-27850bf957ea",
"type": "main",
"index": 0
}
]
]
},
"b414d721-a525-4c2b-b477-acae8829cc70": {
"main": [
[
{
"node": "56c60dcc-bc47-42b6-8c00-2c928dd4f2a2",
"type": "main",
"index": 0
}
],
[
{
"node": "1044f07f-d67f-4e7a-9388-c18cbd531fd7",
"type": "main",
"index": 0
}
]
]
},
"c03a9108-b536-4880-8f5e-fea7ef043c67": {
"main": [
[
{
"node": "2de2fb28-540d-49f2-932e-dc15b7eea761",
"type": "main",
"index": 1
}
]
]
},
"29edec28-e19f-49fd-ab0c-15b640f37dd8": {
"main": [
[
{
"node": "6766cd63-f5b7-40b3-9b3c-20536bb52860",
"type": "main",
"index": 0
}
]
]
},
"d8460dfb-4e56-4b01-97ae-77121153d492": {
"main": [
[
{
"node": "b799251c-e1b5-4a05-a2d4-bdf3842c4078",
"type": "main",
"index": 0
}
]
]
},
"ef3d4a29-7a2f-48ee-af8e-32c79ef2ca57": {
"main": [
[
{
"node": "090f94e3-d0d5-4f23-8d42-a6e55150fc7c",
"type": "main",
"index": 0
}
]
]
},
"9a3de094-e126-40c9-b7d3-0d9b28dae2d7": {
"main": [
[
{
"node": "e0de18f5-3837-403e-b88e-87a7a1ec03e5",
"type": "main",
"index": 0
}
]
]
},
"1044f07f-d67f-4e7a-9388-c18cbd531fd7": {
"main": [
[],
[
{
"node": "b74d9156-9d1e-4cf5-ac2b-ea4e393493ac",
"type": "main",
"index": 0
}
]
]
},
"c6135ac6-81bf-4766-b41f-e51cb9a3dbd9": {
"main": [
[
{
"node": "1044f07f-d67f-4e7a-9388-c18cbd531fd7",
"type": "main",
"index": 0
}
]
]
},
"b74d9156-9d1e-4cf5-ac2b-ea4e393493ac": {
"main": [
[
{
"node": "8a9c6a71-c853-4fca-a739-0879334e6eb6",
"type": "main",
"index": 0
}
]
]
},
"73e9ecf0-1742-432b-947b-ea6dc34d8a6a": {
"main": [
[
{
"node": "8a8e1283-b1fe-483f-b172-f1c3fdabdd5b",
"type": "main",
"index": 0
}
]
]
},
"56c60dcc-bc47-42b6-8c00-2c928dd4f2a2": {
"main": [
[
{
"node": "d8460dfb-4e56-4b01-97ae-77121153d492",
"type": "main",
"index": 0
}
]
]
},
"ac74321c-5569-49b9-9948-587827c1a4f8": {
"main": [
[
{
"node": "e4e3cb8e-dc22-422d-80b7-e585f7e72a74",
"type": "main",
"index": 0
}
]
]
},
"87dd82ab-bfdc-432f-8858-d9e6feb27d4f": {
"main": [
[
{
"node": "c03a9108-b536-4880-8f5e-fea7ef043c67",
"type": "main",
"index": 0
},
{
"node": "c2f43734-60bd-4bee-8fb0-1278dba1180d",
"type": "main",
"index": 0
},
{
"node": "2de2fb28-540d-49f2-932e-dc15b7eea761",
"type": "main",
"index": 0
}
]
]
},
"6766cd63-f5b7-40b3-9b3c-20536bb52860": {
"main": [
[
{
"node": "2de2fb28-540d-49f2-932e-dc15b7eea761",
"type": "main",
"index": 2
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
💥 使用NanoBanana、Seedream 4、ChatGPT Image和Veo 3自动化视频广告 - VIDE
使用AI(NanoBanana、Seedream、GPT-4o、Veo 3)自动化和发布视频广告活动
Set
Code
Wait
+
Set
Code
Wait
63 节点Dr. Firas
内容创作
完整的 B2B 销售流程
完整的 B2B 销售流程:Apollo 潜在客户生成、Mailgun 外展和 AI 回复管理
If
Set
Code
+
If
Set
Code
116 节点Paul
内容创作
💥 使用 Blotato 和 Sora 2 为电商生成 UGC 推广视频
使用 OpenAI、Sora 2 和 Blotato 为电商生成 UGC 推广视频
If
Set
Code
+
If
Set
Code
34 节点Dr. Firas
内容创作
家居装饰AI(Google Nano Banana)- Santhej Kallada
基于Google Gemini的AI图像生成与编辑及Telegram机器人
If
Set
Code
+
If
Set
Code
28 节点Santhej Kallada
内容创作
AI驱动视频创作与上传至Instagram、TikTok和YouTube
从云端硬盘进行AI驱动视频创作并上传至Instagram、TikTok和YouTube
If
Set
Code
+
If
Set
Code
53 节点DevCode Journey
内容创作
病毒式 TikTok 视频生成器:使用 VEED 虚拟形象自动创建 UGC 视频
使用 VEED.io AI 虚拟形象、ElevenLabs 和 GPT-4 自动创建 TikTok 视频
Set
Code
Wait
+
Set
Code
Wait
35 节点Dr. Firas
内容创作