ElevenLabs API を使用して AI ミュージックを生成し、Google Drive にアップロード
中級
これはContent Creation, Multimodal AI分野の自動化ワークフローで、7個のノードを含みます。主にSet, Form, Html, FormTrigger, GoogleDriveなどのノードを使用。 ElevenLabs APIを使用してAI音楽を生成し、Google Driveにアップロード
前提条件
- •Google Drive API認証情報
- •ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "4a11afdb3c52fd098e3eae9fad4b39fdf1bbcde142f596adda46c795e366b326",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "e72aa5da-7b5f-4c46-b4c2-2f171f70a03f",
"name": "AI Music Generator",
"type": "n8n-nodes-base.formTrigger",
"position": [
-272,
0
],
"webhookId": "102f606c-8aec-4ac9-ba52-27988c0707fa",
"parameters": {
"options": {
"path": "music-generator",
"buttonLabel": "Submit",
"appendAttribution": true
},
"formTitle": "AI Music Generator",
"formFields": {
"values": [
{
"fieldLabel": "Music",
"placeholder": "Describe your music (e.g., epic cinematic music, instrumental, fantasy style)",
"requiredField": true
}
]
},
"formDescription": "What kind of music do you want to create?"
},
"typeVersion": 2.2
},
{
"id": "fc22891a-e26a-43fa-bffb-0b029e3ee418",
"name": "elevenlabs_api",
"type": "n8n-nodes-base.httpRequest",
"notes": "https://try.elevenlabs.io/api-music",
"position": [
160,
0
],
"parameters": {
"url": "https://api.elevenlabs.io/v1/music/compose",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "prompt",
"value": "={{ $('AI Music Generator').item.json.Music }}"
},
{
"name": "output_format",
"value": "mp3_44100_128"
},
{}
]
},
"headerParameters": {
"parameters": [
{
"name": "xi-api-key",
"value": "={{ $json.ELEVENLABS_API_KEY }}"
}
]
}
},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "2e6e9dba-b11e-413e-88ec-c4deef4c8361",
"name": "API Key",
"type": "n8n-nodes-base.set",
"notes": "Get your ElevenLabs Music API key : https://try.elevenlabs.io/api-music",
"position": [
-64,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "b805a906-dd26-4587-94b2-edb5bc3abaa9",
"name": "ELEVENLABS_API_KEY",
"type": "string",
"value": "your key"
}
]
}
},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "23e2e827-7b48-4197-a40b-6e0ed6aa185c",
"name": "Upload mp3",
"type": "n8n-nodes-base.googleDrive",
"position": [
368,
0
],
"parameters": {
"name": "music.mp3",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "root",
"cachedResultName": "/ (Root folder)"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "oOwfO78U2uTUNUYC",
"name": "Google Drive inforeole"
}
},
"typeVersion": 3
},
{
"id": "e38f054e-9c02-4e20-b13f-a3f4ecf14d04",
"name": "prepare reponse",
"type": "n8n-nodes-base.html",
"position": [
576,
0
],
"parameters": {
"html": "<!DOCTYPE html>\n<html lang=\"en\">\n<div style=\"font-family: sans-serif; background-color: #121212; color: #e0e0e0; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box;\">\n <div style=\"background-color: #1e1e1e; border-radius: 16px; padding: 40px; text-align: center; width: 100%; max-width: 500px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);\">\n <div style=\"font-size: 50px; background: linear-gradient(45deg, #6a11cb, #2575fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px;\">🎵</div>\n <h1 style=\"color: #ffffff; font-size: 28px; font-weight: 700; margin: 0 0 10px 0;\">Your Music is Ready!</h1>\n <p style=\"font-size: 16px; margin-bottom: 30px; opacity: 0.8;\">The AI has composed a unique track for you.</p>\n \n <div style=\"font-size: 22px; font-weight: 600; color: #ffffff; margin-bottom: 30px; padding: 15px; background-color: rgba(0,0,0,0.2); border-radius: 8px;\">\n {{ $json.trackTitle || \"Cosmic Melody\" }}\n </div>\n\n <a href=\"{{ $json.webViewLink }}\" style=\"display: inline-block; text-decoration: none; color: #ffffff; background: linear-gradient(45deg, #6a11cb, #2575fc); padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 16px; margin: 10px;\">▶️ Listen Now</a>\n </div>\n</div>\n\n</html>"
},
"typeVersion": 1.2
},
{
"id": "ef672dce-9f01-43d1-8477-188994348e92",
"name": "display mp3",
"type": "n8n-nodes-base.form",
"position": [
784,
0
],
"webhookId": "ddf110c0-8b11-43bb-8075-82b0857d0b5d",
"parameters": {
"operation": "completion",
"respondWith": "showText",
"responseText": "={{ $json.html }}"
},
"typeVersion": 1
},
{
"id": "e01b0ca5-a41f-48c5-9c17-859f5aa8270b",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-272,
-432
],
"parameters": {
"width": 560,
"height": 400,
"content": "## Generate music with the ElevenLabs API and upload to Google Drive\n\n### What it does\nThis workflow provides a simple web form to generate unique, AI-powered music tracks using the ElevenLabs API. Enter a text description of the music you envision, and the workflow will compose it, save the MP3 file to your Google Drive, and instantly provide a link to listen to your creation.\n\n### How to set up\n1. **Set API Key**: Get your API key from your [ElevenLabs account](https://try.elevenlabs.io/api-music) and paste it into the \"API Key\" node.\n2. **Connect Google Drive**: Authenticate your Google Drive account in the \"Upload mp3\" node.\n3. **Activate**: Save and activate the workflow to enable the Form Trigger URL."
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"2e6e9dba-b11e-413e-88ec-c4deef4c8361": {
"main": [
[
{
"node": "fc22891a-e26a-43fa-bffb-0b029e3ee418",
"type": "main",
"index": 0
}
]
]
},
"23e2e827-7b48-4197-a40b-6e0ed6aa185c": {
"main": [
[
{
"node": "e38f054e-9c02-4e20-b13f-a3f4ecf14d04",
"type": "main",
"index": 0
}
]
]
},
"fc22891a-e26a-43fa-bffb-0b029e3ee418": {
"main": [
[
{
"node": "23e2e827-7b48-4197-a40b-6e0ed6aa185c",
"type": "main",
"index": 0
}
]
]
},
"e38f054e-9c02-4e20-b13f-a3f4ecf14d04": {
"main": [
[
{
"node": "ef672dce-9f01-43d1-8477-188994348e92",
"type": "main",
"index": 0
}
]
]
},
"e72aa5da-7b5f-4c46-b4c2-2f171f70a03f": {
"main": [
[
{
"node": "2e6e9dba-b11e-413e-88ec-c4deef4c8361",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - コンテンツ作成, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Sora 2
OpenAI Sora 2を使ってAIビデオを生成し、Googleドライブにアップロード
Set
Form
Wait
+
Set
Form
Wait
21 ノードJuan Cristóbal Andrews
コンテンツ作成
Airtop、GPT-4 Mini、Gmailを使ってウェブサイトのUXとSEO品質を分析
Airtop、GPT-4 Mini、Gmailを使ってサイトのUXとSEO品質を分析
Set
Code
Html
+
Set
Code
Html
33 ノードLukaszB
コンテンツ作成
WordPressブログの自動化プロフェッショナル版(先端研究)v2.1マーケットプラグイン
GPT-4o、Perplexity AI、そして多言語対応を使ったSEO最適化ブログ作成の自動化
If
Set
Xml
+
If
Set
Xml
125 ノードDaniel Ng
コンテンツ作成
OpenAI、ElevenLabs、Fal.ai を使用した動画・パ odcast・ASM R向けのウイルス性コンテンツ自動作成
OpenAI、ElevenLabs、そして Fal.ai を使って動画、ポッドキャスト、ASMR に向けたウイルスのコンテンツ作成を自動化
Set
Code
Wait
+
Set
Code
Wait
97 ノードAdam Crafts
コンテンツ作成
TransferNowを使って自動のに大容量ファイルを送信
大ファイルをTransferNowで自動アップロードして送信
If
Set
Code
+
If
Set
Code
19 ノードDavide
コンテンツ作成
Google Drive および Nano Banana API を使用したバッチ証明写真変換機・アップグレード機
Google Drive と Nano Banana API を使ったバッチ証明写真変換機とアップグレード機
If
Set
Code
+
If
Set
Code
16 ノードpanyanyany
コンテンツ作成
ワークフロー情報
難易度
中級
ノード数7
カテゴリー2
ノードタイプ7
作成者
phil
@phile-com AI automation: 90% time saved on repetitive tasks: product sheets, after-sales chatbots, etc. 🚀 save time, win customers
外部リンク
n8n.ioで表示 →
このワークフローを共有