Library / Chatbots & Messaging Bots
Chatbots & Messaging Bots
Build voice chat over webhook with Gemini, OpenAI and ElevenLabs
Receives chat messages via webhook, keeps conversation memory, generates replies with Gemini or OpenAI and converts them to spoken audio with ElevenLabs.
What it does
* ### For the Text-to-Speech part, we'll use ElevenLabs.io, which is free and offers a variety of voices to choose from. However, you can also use the OpenAI "Generate audio" node instead. * ### Since there is no pre-built node for "ElevenLabs" in n8n, we'll connect to it through its API using the "HTTP Request" node. ## Prerequisites: * ### "ElevenLabs API Key" (you can obtain it from their website). * ### "Voice ID" (you can also get it from ElevenLabs' "Voice Library"). ## Setup * ### In the URL parameter, replace "{{voice id}}" at the end of the URL with the Voice ID you obtained from ElevenLabs.io. * ### To set up your API Key, add custom authentication and include the following JSON with your acual ElevenLabs API Key: json { "headers": { "xi-api-key": "put-your-API-Key-here" } }
The steps
- Get Chat
- Insert Chat
- Aggregate
- Window Buffer Memory
- Google Gemini Chat Model
- Respond to Webhook
- ElevenLabs - Generate Audio
- Limit
- Basic LLM Chain
- Webhook
- OpenAI - Speech to Text
Similar automations
Chatbots & Messaging BotsAI Voice Chat with OpenAI, Gemini and ElevenLabs11 stepsEmail AutomationSend multilingual after-visit voice instructions with OpenAI, ElevenLabs, Gmail and16 stepsChatbots & Messaging BotsRun an AI Voice Bot with GPT-4o, ElevenLabs, Twilio10 stepsImage, Video & AudioVoice daily toolbox talks and track crew sign-off with Airtable, ElevenLabs, Telegram33 steps