PromptCraft AI
中级
这是一个Design, AI领域的自动化工作流,包含 12 个节点。主要使用 Telegram, GoogleDrive, HttpRequest, GoogleSheets, Agent 等节点,结合人工智能技术实现智能自动化。 通过Telegram使用DALL-E和GPT生成增强AI图像
前置要求
- •Telegram Bot Token
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "EYffbq7nZzy74ND8",
"meta": {
"instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
"templateCredsSetupCompleted": true
},
"name": "PromptCraft AI",
"tags": [],
"nodes": [
{
"id": "d9cee081-13cd-4ed4-843c-84e3e4e6c3d5",
"name": "图片提示",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-720,
-240
],
"parameters": {
"text": "={{ $json.message.text }}",
"options": {
"systemMessage": "=Overview\nYou are an expert image prompt engineer. "
},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "9d2a73d3-fc71-47e4-94c5-1c79dd6b3a30",
"name": "Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
-240,
140
],
"parameters": {
"name": "=ai image",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "root",
"cachedResultUrl": "https://drive.google.com/drive",
"cachedResultName": "/ (Root folder)"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "IPz4dCJVFC8uaoHw",
"name": "Google Drive account 2"
}
},
"typeVersion": 3
},
{
"id": "a4ac1967-64d1-455c-abef-bc3804d0cad4",
"name": "图片日志",
"type": "n8n-nodes-base.googleSheets",
"position": [
20,
140
],
"parameters": {
"columns": {
"value": {
"Title": "={{ $json.name }}",
"Heygen video url": "={{ $json.webViewLink }}"
},
"schema": [
{
"id": "Heygen video url",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Heygen video url",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Title",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Title",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "video caption",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "video caption",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JqOTd49heNBdmrf5hSwxI66X724tspAmSjzWoA6-EU0/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1oA-qdMkm1dUh0TpPAQ3KVeijGmDs0PsfSPpZ9bXvP6A",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1oA-qdMkm1dUh0TpPAQ3KVeijGmDs0PsfSPpZ9bXvP6A/edit?usp=drivesdk",
"cachedResultName": "Avatar video"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "vL25dYTf9oT1CSvl",
"name": "Google Sheets account 2"
}
},
"typeVersion": 4.5
},
{
"id": "67ae3f89-2d7d-47c3-a55d-251a47a08072",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-820,
60
],
"parameters": {
"color": 6,
"height": 180,
"content": "## 模型"
},
"typeVersion": 1
},
{
"id": "230b29c6-ae1b-4cd0-9a35-dce2a0b15c05",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-280,
-380
],
"parameters": {
"color": 6,
"width": 540,
"height": 420,
"content": "# 发送图片"
},
"typeVersion": 1
},
{
"id": "b9bcd205-679b-4cb0-a6a5-cf2bd8b58887",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-280,
40
],
"parameters": {
"color": 2,
"width": 540,
"height": 240,
"content": "# 写入 Drive 和 Sheets"
},
"typeVersion": 1
},
{
"id": "fd75b2ba-57f8-4ce3-8d39-915a96f7cef8",
"name": "发送照片",
"type": "n8n-nodes-base.telegram",
"position": [
160,
-240
],
"webhookId": "8fcbda9c-8396-41f7-8f2d-39e4ae4337c7",
"parameters": {
"chatId": "={{ $('Telegram Trigger').item.json.message.from.id }}",
"operation": "sendPhoto",
"binaryData": true,
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "W7s4K928CwuY1sKA",
"name": "Telegram account 2"
}
},
"typeVersion": 1.2
},
{
"id": "91e34b1e-4d15-482f-bb07-86c81c32b478",
"name": "Telegram触发器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-920,
-240
],
"webhookId": "a9997053-40e2-4d1d-9abc-f2e5b6582096",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "W7s4K928CwuY1sKA",
"name": "Telegram account 2"
}
},
"typeVersion": 1.2
},
{
"id": "14caf60f-2813-4e39-8960-0dc85adce28d",
"name": "Create Image",
"type": "n8n-nodes-base.httpRequest",
"position": [
-420,
-240
],
"parameters": {
"url": "https://api.openai.com/v1/images/generations",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "prompt",
"value": "={{ $json.output }}"
},
{
"name": "size",
"value": "1024x1024"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <token>"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "f63c6038-a6dd-41c6-9db1-c42e6f21636a",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-720,
100
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "AAQM78g30SkuHYxB",
"name": "OpenAi success"
}
},
"typeVersion": 1.2
},
{
"id": "2959d03f-5f3f-4009-b09e-6700fc1ef3d9",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
-200,
-240
],
"parameters": {
"url": "={{ $json.data[0].url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "9573f5b8-9c0b-423a-81f9-7c0689c40c72",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-40,
-360
],
"parameters": {
"content": "## Loom 演示链接"
},
"typeVersion": 1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "c6f12f08-d7e1-42a4-8be8-73f1c6cbc2b2",
"connections": {
"Create Image": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Google Drive": {
"main": [
[
{
"node": "Image Log",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Google Drive",
"type": "main",
"index": 0
},
{
"node": "Send Photo",
"type": "main",
"index": 0
}
]
]
},
"Image Prompt": {
"main": [
[
{
"node": "Create Image",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "Image Prompt",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Image Prompt",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 设计, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
图像生成器
通过Google云端硬盘和表格实现AI图像生成与Telegram交付的自动化流程
Telegram
Google Drive
Http Request
+6
11 节点David Olusola
设计
基于AI的新闻转视频生成器(使用Heygen和GPT4o)
使用Heygen和GPT-4o将RSS新闻转换为AI虚拟形象视频
Set
Code
Wait
+9
18 节点David Olusola
设计
ELEVEN LABS 多智能体系统
基于ElevenLabs、OpenAI和内容生成的语音驱动营销助手
If
Set
Webhook
+16
56 节点David Olusola
人工智能
智能客户支持系统(集成GPT-4o、Gmail、Slack和Drive知识库)
集成GPT-4o、Gmail、Slack和Drive知识库的智能客户支持系统
If
Code
Gmail Tool
+13
19 节点David Olusola
客户支持
使用Google Sheets和Telegram的Explorium MCP智能潜在客户触达
基于Explorium MCP、Google Sheets和Telegram的智能潜在客户触达
If
Code
Telegram
+9
23 节点David Olusola
人工智能
将轮播/幻灯片内容自动发布到所有社交平台
AI驱动轮播帖文,通过Blotato发布到Instagram、LinkedIn和Twitter
Set
Wait
Http Request
+6
23 节点David Olusola
设计
工作流信息
难度等级
中级
节点数量12
分类2
节点类型8
作者
David Olusola
@dae221I love building smart, efficient automations with n8n that help businesses save time and scale effortlessly. Turning complex workflows into simple solutions is where I have the most fun
外部链接
在 n8n.io 查看 →
分享此工作流