Generate chat-based sound effects with OpenAI and ElevenLabs
Ready for 3.0What this workflow does
This AI workflow has 7 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model. It also calls api.elevenlabs.io over HTTP.
How it runs
Trigger: When a chat message arrives.
- Compose Sound Effect Prompt (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Sound Director Model
- Clamp Sound Settings (Code): runs custom JavaScript code
- Generate Sound With ElevenLabs (HTTP Request): calls api.elevenlabs.io (POST)
- Reply In Chat With Sound (Edit Fields (Set)): sets 1 field: output
- Report Sound Failure (Edit Fields (Set)): sets 1 field: output
Services it uses
HTTP calls to: api.elevenlabs.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow turns an n8n chat message into a detailed sound-effect prompt using OpenAI, then generates an MP3 sound effect via the ElevenLabs Sound Generation API and replies in chat with the audio and the settings used. How it works 1.…