Quick Overview
This workflow turns an n8n Chat message into a generated sound effect using Groq (Llama 3.3) to refine the prompt, calls the ElevenLabs sound-generation API to create an MP3, uploads the file to Google Drive, and replies in chat with a shareable link.
How it works
- Receives a message in an n8n Chat trigger containing the user’s description of a sound.
- Uses Groq (Llama 3.3) to rewrite the description into a single detailed ElevenLabs sound-effects prompt and choose duration and prompt-influence settings.
- Parses the model’s JSON response and clamps duration (0.5–30s) and prompt influence (0–1), falling back to the original message if parsing fails.
- Sends the prompt and settings to the ElevenLabs sound-generation API and downloads the generated MP3.
- Uploads the MP3 to Google Drive with a timestamped filename based on the prompt text.
- Responds in chat with the prompt used, the final settings, and a Google Drive link, or returns a friendly error message if generation fails.
Setup
- Create an ElevenLabs API credential using HTTP Header Auth (header name
xi-api-key) and select it on the ElevenLabs request.
- Add a Groq API credential and select it on the Groq Llama model node.
- Connect your Google Drive OAuth2 account and choose the target Drive and folder for uploads (root by default).
- If you want external apps to initiate requests, enable and copy the chat trigger/webhook URL and configure it in your chat client or integration.