YouTube 转 MP3 转换器(RapidAPI)- 上传至云端硬盘并邮件发送链接
中级
这是一个File Management领域的自动化工作流,包含 15 个节点。主要使用 Wait, EmailSend, FormTrigger, GoogleDrive, HttpRequest 等节点。 使用 RapidAPI 的 YouTube 转 MP3 转换器,支持上传至云端硬盘并邮件发送链接
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "c1c7f52b-77b3-4936-9579-7601eb9593b0",
"name": "n8n Form Trigger",
"type": "n8n-nodes-base.formTrigger",
"position": [
-1340,
-100
],
"webhookId": "5192b179-44d9-4ca6-9bb7-0111d481ee16",
"parameters": {
"options": {},
"formTitle": "YouTube To Mp3",
"formFields": {
"values": [
{
"fieldLabel": "url"
},
{
"fieldLabel": "email"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "1ee08de5-158e-406e-a446-65607c3c1c6a",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1060,
-100
],
"parameters": {
"url": "https://youtube-to-mp3-fast.p.rapidapi.com/output.php",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "url",
"value": "={{ $json.url }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-host",
"value": "youtube-to-mp3-fast.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "YOUR_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "c34dac58-017d-47fc-9d71-90e15182110e",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
-800,
-100
],
"webhookId": "bc4a8c78-542f-48e6-8174-78fb36ffb0aa",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "dd3b29d8-8273-43ad-94b9-f3c65540bdce",
"name": "Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
-220,
-100
],
"parameters": {
"name": "=",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": "root",
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "qUtlCnYpk7bXXaYp",
"name": "Google Sheets account 3"
}
},
"typeVersion": 3
},
{
"id": "208e117f-2b69-40b8-8386-ce0bb656e7df",
"name": "发送邮件",
"type": "n8n-nodes-base.emailSend",
"position": [
360,
-100
],
"parameters": {
"text": "Your download link: {{ $json.webViewLink }}",
"options": {},
"subject": "🎵 Your MP3 is ready!",
"toEmail": "={{ $json.email }}",
"fromEmail": "your@email.com"
},
"credentials": {
"smtp": {
"id": "H0f4Gja9ECFRA34L",
"name": "SMTP account 2"
}
},
"typeVersion": 1
},
{
"id": "83011b96-1444-4eba-8b31-0f39c1dca764",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2440,
-820
],
"parameters": {
"width": 680,
"height": 1200,
"content": "# YouTube转MP3下载及邮件发送自动化"
},
"typeVersion": 1
},
{
"id": "099f6774-e487-4af0-8342-1e29a3afc04f",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1420,
-300
],
"parameters": {
"height": 360,
"content": "**n8n Form Trigger**"
},
"typeVersion": 1
},
{
"id": "e14ff1d2-bcb1-41c5-9468-d24f5d6bff00",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1140,
-300
],
"parameters": {
"height": 360,
"content": "**HTTP Request**"
},
"typeVersion": 1
},
{
"id": "20990e96-c260-454f-b0fa-df3db10473c1",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-860,
-300
],
"parameters": {
"height": 360,
"content": "**Wait**"
},
"typeVersion": 1
},
{
"id": "2a86a142-8406-4838-be19-221045b1493f",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-560,
-300
],
"parameters": {
"width": 220,
"height": 360,
"content": "HTTP Downloader"
},
"typeVersion": 1
},
{
"id": "ebe64242-7e7b-4326-8071-3eda8a2a76e7",
"name": "HTTP Downloader",
"type": "n8n-nodes-base.httpRequest",
"position": [
-500,
-100
],
"parameters": {
"url": "={{ $json.url }}",
"options": {
"timeout": 10000000,
"redirect": {
"redirect": {
"maxRedirects": 10
}
},
"response": {
"response": {
"neverError": true,
"fullResponse": true
}
},
"lowercaseHeaders": false
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "user-agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
},
{
"name": "accept",
"value": "*/*"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "0b392d74-7a70-40b7-9a4f-d9db3c3d93a1",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-300,
-300
],
"parameters": {
"height": 360,
"content": "**Google Drive**"
},
"typeVersion": 1
},
{
"id": "96c2211c-5625-477f-9b1a-538f89ce8d7a",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-300
],
"parameters": {
"height": 360,
"content": "**Google Drive set permissions (Share)**"
},
"typeVersion": 1
},
{
"id": "a33d47b6-1a2d-4edf-a426-6c56db6dd679",
"name": "Google Drive set permissions",
"type": "n8n-nodes-base.googleDrive",
"position": [
80,
-100
],
"parameters": {
"fileId": "={{ $json.resource.id }}",
"options": {},
"operation": "share",
"permissionsUi": {
"permissionsValues": {
"role": "reader",
"type": "anyone"
}
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "qUtlCnYpk7bXXaYp",
"name": "Google Sheets account 3"
}
},
"typeVersion": 3
},
{
"id": "73104f9d-9eca-4a65-9594-31d0f83ef487",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
-300
],
"parameters": {
"height": 360,
"content": "**Send Email**"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Wait": {
"main": [
[
{
"node": "HTTP Downloader",
"type": "main",
"index": 0
}
]
]
},
"Send Email": {
"main": [
[]
]
},
"Google Drive": {
"main": [
[
{
"node": "Google Drive set permissions",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"HTTP Downloader": {
"main": [
[
{
"node": "Google Drive",
"type": "main",
"index": 0
}
]
]
},
"n8n Form Trigger": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Google Drive set permissions": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 文件管理
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Bilibili 视频下载器,支持 Google Drive 上传和邮件通知
Bilibili 视频下载器,支持 Google Drive 上传和邮件通知
If
Wait
Email Send
+4
19 节点Sk developer
文件管理
将Spotify曲目转换为MP3并通过Google Drive表单分享
将Spotify曲目转换为MP3并通过Google Drive表单分享
Wait
Form Trigger
Google Drive
+2
13 节点Sk developer
文件管理
Facebook视频下载至Google云端硬盘并自动记录到表格
将Facebook视频下载到Google云端硬盘,并在表格中自动记录下载日志
If
Wait
Form Trigger
+4
19 节点Sk developer
文件管理
Instagram视频下载至Google云端硬盘并自动邮件发送
将Instagram视频下载到Google云端硬盘,并自动通过邮件发送
If
Email Send
Form Trigger
+3
15 节点Sk developer
文件管理
通过RapidAPI集成将Slideshare演示文稿下载至Google云端硬盘
通过RapidAPI集成将Slideshare演示文稿下载到Google云端硬盘
If
Wait
Form Trigger
+4
17 节点Sk developer
文件管理
下载Threads视频并将结果记录到Google表格
下载Threads视频并将结果记录到Google表格中
If
Wait
Form Trigger
+4
19 节点Sk developer
文件管理