Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. Get Chat
  2. Insert Chat
  3. Aggregate
  4. Window Buffer Memory
  5. Google Gemini Chat Model
  6. Respond to Webhook
  7. ElevenLabs - Generate Audio
  8. Limit
  9. Basic LLM Chain
  10. Webhook
  11. OpenAI - Speech to Text

Similar automations