{ "meta": { "instanceId": "workflow-5e99c06e", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:49.241907", "updatedAt": "2025-09-29T07:07:49.241916", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "nodes": [ { "id": "468084ed-ce7d-45c5-bf27-ea9c91d5898a", "name": "When clicking โ€˜Test workflowโ€™", "type": "n8n-nodes-base.manualTrigger", "position": [ 0, 0 ], "parameters": {}, "typeVersion": 1, "notes": "This manualTrigger node performs automated tasks as part of the workflow." }, { "id": "fbde6cfe-9fac-46d2-958a-f42c9ef383a3", "name": "Retrieve WordPress Article", "type": "n8n-nodes-base.wordpress", "position": [ 440, 0 ], "parameters": { "postId": "1032", "options": {}, "operation": "get" }, "credentials": { "wordpressApi": { "id": "T0ygUN7hNFQVztP2", "name": "Wordpress account 2" } }, "typeVersion": 1, "notes": "This wordpress node performs automated tasks as part of the workflow." }, { "id": "54241e39-7a5f-45f4-9dab-72b5424f4061", "name": "Generate Summary or Transcription", "type": "n8n-nodes-base.noOp", "position": [ 680, 0 ], "parameters": { "text": "={{ $json.content }}", "messages": { "messageValues": [ { "message": "Summarize or transcribe this article, depending on the workflow setting." } ] }, "promptType": "define", "hasOutputParser": true }, "typeVersion": 1.5, "notes": "This chainLlm node performs automated tasks as part of the workflow." }, { "id": "49cfaab6-a0c1-4319-904d-c1e0a2c6aa91", "name": "Generate Speech", "type": "n8n-nodes-base.httpRequest", "position": [ 1120, 0 ], "parameters": { "url": "{{ $env.API_BASE_URL }}", "method": "POST", "options": {}, "sendBody": true, "authentication": "{{ $credentials.genericCredentialType }}", "bodyParameters": { "parameters": [ { "name": "text", "value": "={{ $json.text }}" }, { "name": "model_id", "value": "eleven_multilingual_v2" }, { "name": "output_format", "value": "mp3_44100_128" } ] }, "genericAuthType": "httpCustomAuth" }, "credentials": { "httpCustomAuth": { "id": "wUJksQ68RUH0XuTO", "name": "Custom Auth account" } }, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow." }, { "id": "899abf3f-4ab6-48bd-90ba-0502cb23348e", "name": "Upload MP3", "type": "n8n-nodes-base.httpRequest", "position": [ 2060, 0 ], "parameters": { "url": "{{ $env.BASE_URL }}", "method": "POST", "options": {}, "sendBody": true, "contentType": "binaryData", "sendHeaders": true, "authentication": "{{ $credentials.predefinedCredentialType }}", "headerParameters": { "parameters": [ { "name": "Content-Disposition", "value": "=attachment; filename=\"{{ $('Retrieve WordPress Article').item.json.slug }}.mp3\"" } ] }, "inputDataFieldName": "data", "nodeCredentialType": "YOUR_CREDENTIAL_HERE" }, "credentials": { "wordpressApi": { "id": "T0ygUN7hNFQVztP2", "name": "Wordpress account 2" } }, "retryOnFail": true, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow." }, { "id": "590297c9-1f66-4071-8b47-230b08c379d4", "name": "Update WordPress Post", "type": "n8n-nodes-base.wordpress", "position": [ 2300, 0 ], "parameters": { "postId": "={{ $('Retrieve WordPress Article').item.json.id }}", "operation": "update", "updateFields": { "content": "=\n
๐Ÿ—ฃ๏ธ Listen to the summary or transcription. ๐Ÿ‘†
\n
{{ $('Retrieve WordPress Article').item.json.content.rendered }}" } }, "credentials": { "wordpressApi": { "id": "T0ygUN7hNFQVztP2", "name": "Wordpress account 2" } }, "typeVersion": 1, "notes": "This wordpress node performs automated tasks as part of the workflow." }, { "id": "5297d517-5dd9-4d4d-b201-0822af030c95", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [ 1320, -340 ], "parameters": { "color": 6, "width": 660, "height": 1000, "content": "## ๐ŸŽ™๏ธ Generate Text-to-Speech Using Eleven Labs via API\n\nSince there is no predefined node for Eleven Labs in n8n, we will use the **HTTP Request** module.\n\n### ๐Ÿ› ๏ธ Prerequisites:\n1. **Get an API Key**: Visit [Eleven Labs]({{ $env.WEBHOOK_URL }} to obtain your API key.\n2. **Choose a Suitable Voice**: Test different voices on [this demo page]({{ $env.WEBHOOK_URL }} to find the best fit for your use case.\n3. **Select the Right Model**: For multilingual usage, use: \n ~~~json\n \"model_id\": \"eleven_multilingual_v2\"\n ~~~\n4. **Set Output Format**: You can adjust the quality by modifying `output_format`, for example: \n ~~~json\n \"output_format\": \"mp3_44100_128\"\n ~~~\n\n๐Ÿ“– Refer to the full API documentation: [API Reference - Eleven Labs]({{ $env.API_BASE_URL }}\n\n---\n## ๐Ÿš€ Step 1: Configure API Credentials in n8n\n\nAdd a custom authentication entry in n8n with the following structure: \n\n(Replace `\"your-elevenlabs-api-key\"` with your **actual API key**)\n\n~~~json\n{\n \"headers\": {\n \"xi-api-key\": \"your-elevenlabs-api-key\"\n }\n}\n~~~\n---\n\n## ๐Ÿ“ฉ Step 2: Send a POST Request to the API\n\nMake an HTTP POST request to the **webhook** of your workflow with the following parameters:\n\n- **`voice_id`**: The ID of the selected voice.\n- **`text`**: The text to convert into speech.\n\n---" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "8fecbb98-8120-4d94-82ce-15efa063394b", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [ 640, -340 ], "parameters": { "width": 460, "height": 280, "content": "# Modify This Prompt\n\nHere you can modify this prompt. It is interesting because the neutral node might return HTML, and using a ChatGPT node allows you to clean or customize the output before sending it to text-to-speech.\n\nIn the example provided, I requested a summary. However, you could ask for the benefits or product advantages when using it for e-commerce or affiliate marketing. You could also request the full transcription of the article." }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "06e66119-2b95-416b-8167-41dccbbd8612", "name": "OpenAI Chat Model", "type": "n8n-nodes-base.noOp", "position": [ 640, 220 ], "parameters": { "model": { "__rl": true, "mode": "list", "value": "gpt-4o-mini" }, "options": {} }, "credentials": { "openAiApi": { "id": "yekgKa01FVKc8Etr", "name": "OpenAi account 2" } }, "typeVersion": 1.2, "notes": "This lmChatOpenAi node performs automated tasks as part of the workflow." }, { "id": "47821853-b8f5-45f3-8e37-66365ba62422", "name": "settings", "type": "n8n-nodes-base.set", "position": [ 220, 0 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "10c07d50-1310-4dd7-a143-b0c0e5cf1b70", "name": "site_url", "type": "string", "value": "{{ $env.WEBHOOK_URL }}" } ] } }, "typeVersion": 3.4, "notes": "This set node performs automated tasks as part of the workflow." } ], "pinData": {}, "connections": { "49cfaab6-a0c1-4319-904d-c1e0a2c6aa91": { "main": [ [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91", "type": "main", "index": 0 } ], [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91-39c2fe8f", "type": "main", "index": 0 } ], [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91-7a52c3ae", "type": "main", "index": 0 } ], [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91-374693ea", "type": "main", "index": 0 } ], [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91-ed630b4e", "type": "main", "index": 0 } ], [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91-7ef0e5ac", "type": "main", "index": 0 } ], [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91-6d14384f", "type": "main", "index": 0 } ], [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91-960c1ec3", "type": "main", "index": 0 } ], [ { "node": "error-handler-49cfaab6-a0c1-4319-904d-c1e0a2c6aa91-13af9674", "type": "main", "index": 0 } ] ] }, "899abf3f-4ab6-48bd-90ba-0502cb23348e": { "main": [ [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e", "type": "main", "index": 0 } ], [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e-7c71e409", "type": "main", "index": 0 } ], [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e-755071ff", "type": "main", "index": 0 } ], [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e-93f08b5e", "type": "main", "index": 0 } ], [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e-54c2a96a", "type": "main", "index": 0 } ], [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e-40354ccb", "type": "main", "index": 0 } ], [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e-d948ba30", "type": "main", "index": 0 } ], [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e-aae2ce47", "type": "main", "index": 0 } ], [ { "node": "error-handler-899abf3f-4ab6-48bd-90ba-0502cb23348e-2e8e9c5b", "type": "main", "index": 0 } ] ] }, "06e66119-2b95-416b-8167-41dccbbd8612": { "main": [ [ { "node": "error-handler-06e66119-2b95-416b-8167-41dccbbd8612-75feca56", "type": "main", "index": 0 } ] ] } }, "name": "Manualtrigger Workflow", "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000 }, "description": "Automated workflow: Manualtrigger Workflow. This workflow integrates 8 different services: wordpress, httpRequest, stickyNote, chainLlm, set. It contains 15 nodes and follows best practices for error handling and security.", "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "notes": "Excellent quality workflow: Manualtrigger Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }