初学者教程:使用 n8n 管理 Azure 存储账户容器和 Blob
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 21 个节点。主要使用 Set, AzureStorage, ManualTrigger, Agent, OpenAi 等节点。 使用 DALL-E 和 Azure Blob 存储生成并存储 AI 图像
前置要求
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "IGIdimfXbsBQsxOh",
"meta": {
"instanceId": "4a2e6764ba7a6bc9890d9225f4b21d570ce88fc9bd57549c89057fcee58fed0f",
"templateCredsSetupCompleted": true
},
"name": "初学者教程:使用 n8n 管理 Azure 存储账户容器和 Blob",
"tags": [
{
"id": "H6NyYd16Iwa0j4cx",
"name": "azure",
"createdAt": "2025-08-20T13:18:12.992Z",
"updatedAt": "2025-08-20T13:18:12.992Z"
}
],
"nodes": [
{
"id": "e85e1121-c0c5-4205-bde6-f1a9de3f0bd7",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
448,
280
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "PPSwAKeLQYgAPobT",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "b9c2618f-3f0e-487a-b8d7-2664b502e069",
"name": "生成图片",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
752,
56
],
"parameters": {
"prompt": "={{ $json.output }}",
"options": {},
"resource": "image"
},
"credentials": {
"openAiApi": {
"id": "PPSwAKeLQYgAPobT",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "fd4d4869-27e2-4848-a78e-441f8cdcf11e",
"name": "提示生成代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
352,
56
],
"parameters": {
"text": "=You're prompt generator agent, you will create prompt for the open-ai image generation model with a random topic among:\n- Education\n- Science \n- Sport\n- Economy\n- Health\nOutput the prompt only, nothing else",
"options": {},
"promptType": "define"
},
"typeVersion": 2.1
},
{
"id": "2ce43600-134f-410d-b960-f43ab32f1571",
"name": "当点击“执行工作流”时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-320,
-92
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ca6f581a-0c4c-4259-8c90-95a23c815633",
"name": "编辑字段",
"type": "n8n-nodes-base.set",
"position": [
-96,
-92
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "af3e6c69-fbfe-49f4-9c29-3a68a821c5a6",
"name": "container_name",
"type": "string",
"value": "trungtrandemon8n1"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c28e2f34-43d2-41cd-890f-43d028f2f32f",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1648,
-736
],
"parameters": {
"width": 1056,
"height": 2512,
"content": "# 初学者教程:使用 n8n 管理 Azure 存储账户容器和 Blob"
},
"typeVersion": 1
},
{
"id": "8247314b-fa19-4b6e-96d5-f2729451236e",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
-304
],
"parameters": {
"width": 352,
"content": "### 1. 🖱️ 触发工作流"
},
"typeVersion": 1
},
{
"id": "09234a75-00ef-4d24-b832-4cbf77a70191",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-176,
80
],
"parameters": {
"height": 256,
"content": "### 2. ✍️ 输入您的字段"
},
"typeVersion": 1
},
{
"id": "51421218-ac6a-4254-9460-57fd393cfaeb",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
112,
224
],
"parameters": {
"height": 192,
"content": "### 3. 📦 创建 Blob 容器"
},
"typeVersion": 1
},
{
"id": "3275fa4c-e3c8-4cb7-9fbe-5fbc18bc43bc",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
656,
224
],
"parameters": {
"width": 288,
"height": 144,
"content": "### 5. 🎨 生成图像"
},
"typeVersion": 1
},
{
"id": "72ad0a7b-b85d-4a78-8e19-b00ea74f055a",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
272,
-96
],
"parameters": {
"width": 432,
"height": 128,
"content": "### 4. 🤖 生成 AI 提示"
},
"typeVersion": 1
},
{
"id": "08afa880-39cc-4aa9-a4c6-60cc4988c86c",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
880,
-144
],
"parameters": {
"height": 176,
"content": "### 6. ☁️ 上传图像到 Azure Blob"
},
"typeVersion": 1
},
{
"id": "6f22fd69-6469-4ced-b5b9-adfdc7f4cab0",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
368,
-432
],
"parameters": {
"width": 272,
"content": "### 9. 🗑️ (可选)删除容器"
},
"typeVersion": 1
},
{
"id": "00315b96-ca0b-4c64-b796-54e0eb0f5acb",
"name": "创建容器",
"type": "n8n-nodes-base.azureStorage",
"position": [
128,
56
],
"parameters": {
"options": {},
"operation": "create",
"requestOptions": {},
"containerCreate": "={{ $json.container_name }}"
},
"credentials": {
"azureStorageSharedKeyApi": {
"id": "lSgRw5GzgoCfmMdO",
"name": "Azure Storage Shared Key account"
}
},
"typeVersion": 1
},
{
"id": "2cc5dc43-64e0-406a-98b0-2854143d2cc9",
"name": "获取多个容器",
"type": "n8n-nodes-base.azureStorage",
"position": [
128,
-240
],
"parameters": {
"options": {},
"requestOptions": {}
},
"credentials": {
"azureStorageSharedKeyApi": {
"id": "lSgRw5GzgoCfmMdO",
"name": "Azure Storage Shared Key account"
}
},
"typeVersion": 1
},
{
"id": "0cce44bd-54ad-4444-a351-b395af7e7875",
"name": "删除容器",
"type": "n8n-nodes-base.azureStorage",
"position": [
440,
-240
],
"parameters": {
"container": {
"__rl": true,
"mode": "id",
"value": "={{ $json.name }}"
},
"operation": "delete",
"requestOptions": {}
},
"credentials": {
"azureStorageSharedKeyApi": {
"id": "lSgRw5GzgoCfmMdO",
"name": "Azure Storage Shared Key account"
}
},
"typeVersion": 1
},
{
"id": "e7fbd4a2-9988-4f2e-8985-4c0691b9ce27",
"name": "删除 Blob",
"type": "n8n-nodes-base.azureStorage",
"position": [
1424,
56
],
"parameters": {
"blob": {
"__rl": true,
"mode": "id",
"value": "={{ $json.name }}"
},
"options": {},
"resource": "blob",
"container": {
"__rl": true,
"mode": "id",
"value": "={{ $('Edit Fields').item.json.container_name }}"
},
"operation": "delete",
"requestOptions": {}
},
"credentials": {
"azureStorageSharedKeyApi": {
"id": "lSgRw5GzgoCfmMdO",
"name": "Azure Storage Shared Key account"
}
},
"typeVersion": 1
},
{
"id": "0b9b0d80-3932-4592-869f-1b88d275c061",
"name": "创建 Blob",
"type": "n8n-nodes-base.azureStorage",
"position": [
976,
56
],
"parameters": {
"options": {},
"resource": "blob",
"container": {
"__rl": true,
"mode": "id",
"value": "={{ $('Edit Fields').item.json.container_name }}"
},
"operation": "create",
"blobCreate": "mydemoblob",
"requestOptions": {}
},
"credentials": {
"azureStorageSharedKeyApi": {
"id": "lSgRw5GzgoCfmMdO",
"name": "Azure Storage Shared Key account"
}
},
"typeVersion": 1
},
{
"id": "9080e615-b339-40e9-a2be-afec373f19e8",
"name": "获取多个 blob",
"type": "n8n-nodes-base.azureStorage",
"position": [
1200,
56
],
"parameters": {
"options": {},
"resource": "blob",
"container": {
"__rl": true,
"mode": "id",
"value": "={{ $('Edit Fields').item.json.container_name }}"
},
"requestOptions": {}
},
"credentials": {
"azureStorageSharedKeyApi": {
"id": "lSgRw5GzgoCfmMdO",
"name": "Azure Storage Shared Key account"
}
},
"typeVersion": 1
},
{
"id": "766a2aad-6a08-4fb2-a24d-f897bdcba105",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
1136,
224
],
"parameters": {
"width": 208,
"content": "### 7. 📂 列出所有 Blob"
},
"typeVersion": 1
},
{
"id": "d649dd7f-11c5-4191-ae9b-fdae6581c48a",
"name": "便签9",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
-128
],
"parameters": {
"content": "### 8. 🧹 删除特定 Blob"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "6883fbaa-7aae-4627-8ac4-b77da1494f46",
"connections": {
"Create Blob": {
"main": [
[
{
"node": "Get many blobs",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Create container",
"type": "main",
"index": 0
},
{
"node": "Get many container",
"type": "main",
"index": 0
}
]
]
},
"Get many blobs": {
"main": [
[
{
"node": "Delete Blob",
"type": "main",
"index": 0
}
]
]
},
"Create container": {
"main": [
[
{
"node": "Prompt Generation Agent",
"type": "main",
"index": 0
}
]
]
},
"Generate an image": {
"main": [
[
{
"node": "Create Blob",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Prompt Generation Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Get many container": {
"main": [
[
{
"node": "Delete container",
"type": "main",
"index": 0
}
]
]
},
"Prompt Generation Agent": {
"main": [
[
{
"node": "Generate an image",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用n8n自动化AWS S3操作:存储桶、文件夹和文件
将AI生成图像存储到AWS S3:OpenAI图像创建与云存储
Set
Aws S3
Manual Trigger
+4
20 节点Trung Tran
内容创作
使用AI Tool Node和GPT-4、DALL-E的多智能体图书创作工作流
使用GPT-4.1-mini、DALL-E、Google Drive和AWS S3创建AI生成图书
Set
Aws S3
Markdown
+9
25 节点Trung Tran
内容创作
初学者教程:使用n8n管理Google Cloud Storage存储桶和对象
使用GPT-4 Mini AI图像生成管理Google Cloud Storage
Set
Manual Trigger
Agent
+5
18 节点Trung Tran
文件管理
AI驱动的邮件分诊与自动回复系统,集成OpenAI代理和Gmail
AI驱动的邮件分诊与自动回复系统,集成OpenAI代理和Gmail
If
Set
Gmail
+20
68 节点Abdullahi Ahmed
内容创作
使用 OpenAI、ElevenLabs 和 Fal.ai 自动化病毒式内容创作,适用于视频、播客和 ASMR
使用 OpenAI、ElevenLabs 和 Fal.ai 自动化病毒式内容创作,适用于视频、播客和 ASMR
Set
Code
Wait
+16
97 节点Adam Crafts
内容创作
基于 YouTube 视频的自主博客发布
使用 ChatGPT、Sheets、Apify、Pexels 和 WordPress 从 YouTube 视频自主发布博客
If
Set
Code
+18
80 节点Oriol Seguí
内容创作
工作流信息
难度等级
高级
节点数量21
分类2
节点类型7
作者
Trung Tran
@trungtranEmpowering small and medium businesses with smart automation and practical AI, no big tech team required.
外部链接
在 n8n.io 查看 →
分享此工作流