Workflow: Lmchatopenai Workflow
Integrations: httpRequest, manualTrigger, noOp, set, stickyNote

{"meta": {"instanceId": "workflow-5af73ee9", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:50.118760", "updatedAt": "2025-09-29T07:07:50.118776", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "nodes": [{"id": "aa0c62d1-2a5e-4336-8783-a8a21cb23374", "name": "OpenAI Chat Model", "type": "n8n-nodes-base.noOp", "position": [1180, 760], "parameters": {"options": {"temperature": 0}}, "credentials": {"openAiApi": {"id": "VQtv7frm7eLiEDnd", "name": "OpenAi account 7"}}, "typeVersion": 1, "notes": "This lmChatOpenAi node performs automated tasks as part of the workflow."}, {"id": "0c7d21e6-5bf6-4927-ad23-008b22e2ffde", "name": "When clicking \"Execute Workflow\"", "type": "n8n-nodes-base.manualTrigger", "position": [280, 560], "parameters": {}, "typeVersion": 1, "notes": "This manualTrigger node performs automated tasks as part of the workflow."}, {"id": "352de912-3a36-4bf2-b013-b46e0ace38e9", "name": "Generate French Audio", "type": "n8n-nodes-base.httpRequest", "position": [720, 560], "parameters": {"url": "{{ $env.BASE_URL }}", "method": "POST", "options": {}, "jsonBody": "={\"text\":\"{{ $json.text }}\",\"model_id\":\"eleven_multilingual_v2\",\"voice_settings\":{\"stability\":0.5,\"similarity_boost\":0.5}}", "sendBody": true, "sendQuery": true, "sendHeaders": true, "specifyBody": "json", "authentication": "{{ $credentials.genericCredentialType }}", "genericAuthType": "httpHeaderAuth", "queryParameters": {"parameters": [{"name": "optimize_streaming_latency", "value": "1"}]}, "headerParameters": {"parameters": [{"name": "accept", "value": "audio/mpeg"}]}}, "credentials": {"httpHeaderAuth": {"id": "OMni1VQQclVYOmeZ", "name": "ElevenLabs David"}}, "typeVersion": 4.1, "notes": "This httpRequest node performs automated tasks as part of the workflow."}, {"id": "0cde2e89-0669-41b4-8fe1-1a6aff14792f", "name": "Set ElevenLabs voice ID and text", "type": "n8n-nodes-base.set", "position": [500, 560], "parameters": {"fields": {"values": [{"name": "voice_id", "stringValue": "wl7sZxfTOitHVachQiUm"}, {"name": "text", "stringValue": "=Apr\u00e8s, on a fait la sieste, Camille a travaill\u00e9 pour French Today et j\u2019ai \u00e9tudi\u00e9 un peu, et puis Camille a propos\u00e9 de suivre une visite guid\u00e9e de l\u2019Abbaye de Beauport qui commen\u00e7ait \u00e0 17 heures. On a march\u00e9 environ vingt minutes, et je m\u2019arr\u00eatais souvent pour prendre des photos : la baie de Paimpol est si jolie ! Mais Camille m\u2019a dit : \u00ab D\u00e9p\u00eache-toi Sunny\u202f! La visite guid\u00e9e commence dans cinq minutes. \u00bb Donc, j\u2019ai boug\u00e9 mes fesses et on est arriv\u00e9es \u00e0 l\u2019abbaye"}]}, "options": {}}, "typeVersion": 3.2, "notes": "This set node performs automated tasks as part of the workflow."}, {"id": "38aa323e-a899-4018-afb9-4d4682ac8ff1", "name": "Translate Text to English", "type": "n8n-nodes-base.noOp", "position": [1180, 560], "parameters": {"prompt": "=Translate to English:\n{{ $json.text }}"}, "typeVersion": 1.2, "notes": "This chainLlm node performs automated tasks as part of the workflow."}, {"id": "f0b7adad-fa0b-4764-96e0-0883bbcc02d6", "name": "Translate English text to speech", "type": "n8n-nodes-base.httpRequest", "position": [1540, 560], "parameters": {"url": "{{ $env.BASE_URL }}", "method": "POST", "options": {}, "jsonBody": "={\"text\":\"{{ $json[\"text\"].replaceAll('\"', '\\\\\"').trim() }}\",\"model_id\":\"eleven_multilingual_v2\",\"voice_settings\":{\"stability\":0.5,\"similarity_boost\":0.5}}", "sendBody": true, "sendQuery": true, "sendHeaders": true, "specifyBody": "json", "authentication": "{{ $credentials.genericCredentialType }}", "genericAuthType": "httpHeaderAuth", "queryParameters": {"parameters": [{"name": "optimize_streaming_latency", "value": "1"}]}, "headerParameters": {"parameters": [{"name": "accept", "value": "audio/mpeg"}]}}, "credentials": {"httpHeaderAuth": {"id": "OMni1VQQclVYOmeZ", "name": "ElevenLabs David"}}, "typeVersion": 4.1, "notes": "This httpRequest node performs automated tasks as part of the workflow."}, {"id": "f8700266-5491-4ca7-b29a-3f5ec1e9b66f", "name": "Transcribe Audio", "type": "n8n-nodes-base.httpRequest", "position": [960, 560], "parameters": {"url": "{{ $env.API_BASE_URL }}", "method": "POST", "options": {}, "sendBody": true, "contentType": "multipart-form-data", "authentication": "{{ $credentials.predefinedCredentialType }}", "bodyParameters": {"parameters": [{"name": "file", "parameterType": "formBinaryData", "inputDataFieldName": "data"}, {"name": "model", "value": "whisper-1"}]}, "nodeCredentialType": "YOUR_CREDENTIAL_HERE"}, "credentials": {"openAiApi": {"id": "VQtv7frm7eLiEDnd", "name": "OpenAi account 7"}}, "typeVersion": 4.1, "notes": "This httpRequest node performs automated tasks as part of the workflow."}, {"id": "25630b45-3827-4ee0-a77e-c30cadefe999", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [449.2637232176971, 319.7947500318393], "parameters": {"color": 7, "width": 199.37543798209555, "height": 420.623805972039, "content": "1] In ElevenLabs, add a voice to your [voice lab]({{ $env.WEBHOOK_URL }} and copy its ID. Open this node and add the ID there"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "a41d2622-4476-44c2-bac6-212be237aa4b", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [680, 320], "parameters": {"color": 7, "width": 192.21792012722693, "height": 418.3754668433847, "content": "2] Get your ElevenLabs API key (click your name in the bottom-left of [ElevenLabs]({{ $env.WEBHOOK_URL }} and choose \u2018profile\u2019)\n\nIn this node, create a new header auth cred. Set the name to `xi-api-key` and the value to your API key"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "58143bb1-816f-4ff6-9cac-9ce7765e02be", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [920, 320], "parameters": {"color": 7, "width": 192.21792012722693, "height": 414.59045768149747, "content": "3] In the 'credential' field of this node, create a new OpenAI cred with your [OpenAI API key]({{ $env.API_BASE_URL }}"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "bd2ef5d2-c27d-45e4-a66e-a73168f94087", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [160, 273.1221160672591], "parameters": {"color": 7, "width": 230.39134868652621, "height": 233.3354221029769, "content": "### About\nThis workflow takes some French text, and translates it into spoken audio.\n\nIt then transcribes that audio back into text, translates it into English and generates an audio file of the English text"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "a1f207d4-dbed-4dfa-aad5-2b2f6e4e6271", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [440, 272.42998167622557], "parameters": {"color": 7, "width": 685.8541178336201, "height": 478.0993479050163, "content": "### Setup steps"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}], "pinData": {}, "connections": {"352de912-3a36-4bf2-b013-b46e0ace38e9": {"main": [[{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9", "type": "main", "index": 0}], [{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9-2791dc00", "type": "main", "index": 0}], [{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9-7e6d2c41", "type": "main", "index": 0}], [{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9-df4e6be1", "type": "main", "index": 0}], [{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9-0ebd8d82", "type": "main", "index": 0}], [{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9-7aaa71e0", "type": "main", "index": 0}], [{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9-4e5d3c07", "type": "main", "index": 0}], [{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9-51cbc139", "type": "main", "index": 0}], [{"node": "error-handler-352de912-3a36-4bf2-b013-b46e0ace38e9-411d64cb", "type": "main", "index": 0}]]}, "f0b7adad-fa0b-4764-96e0-0883bbcc02d6": {"main": [[{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6", "type": "main", "index": 0}], [{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6-5ff2b5be", "type": "main", "index": 0}], [{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6-afcc106a", "type": "main", "index": 0}], [{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6-29692a44", "type": "main", "index": 0}], [{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6-bb733f07", "type": "main", "index": 0}], [{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6-c0fe2aab", "type": "main", "index": 0}], [{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6-f3cb44a1", "type": "main", "index": 0}], [{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6-b5b6710f", "type": "main", "index": 0}], [{"node": "error-handler-f0b7adad-fa0b-4764-96e0-0883bbcc02d6-2c82bd13", "type": "main", "index": 0}]]}, "f8700266-5491-4ca7-b29a-3f5ec1e9b66f": {"main": [[{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f", "type": "main", "index": 0}], [{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f-60b4b360", "type": "main", "index": 0}], [{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f-8ff237f5", "type": "main", "index": 0}], [{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f-fb2419cb", "type": "main", "index": 0}], [{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f-78efe8a4", "type": "main", "index": 0}], [{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f-69eb57a9", "type": "main", "index": 0}], [{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f-ce92aeae", "type": "main", "index": 0}], [{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f-34be7afb", "type": "main", "index": 0}], [{"node": "error-handler-f8700266-5491-4ca7-b29a-3f5ec1e9b66f-1858263b", "type": "main", "index": 0}]]}, "aa0c62d1-2a5e-4336-8783-a8a21cb23374": {"main": [[{"node": "error-handler-aa0c62d1-2a5e-4336-8783-a8a21cb23374-86f8d3dc", "type": "main", "index": 0}]]}}, "name": "Lmchatopenai 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: Lmchatopenai Workflow. This workflow integrates 7 different services: stickyNote, httpRequest, chainLlm, set, stopAndError. It contains 19 nodes and follows best practices for error handling and security.", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "notes": "Excellent quality workflow: Lmchatopenai Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}