Templates / AI voice chatbot with ElevenLabs & OpenAI for customer service and restaurants

AI voice chatbot with ElevenLabs & OpenAI for customer service and restaurants

Needs changes

by Davide Boizza ✓ · 69,203 views · created 2025-02-04 · Support Chatbot, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

AI AgentVector Store Question AnswerQdrant Vector StoreEmbeddings OpenAIGoogle DriveDefault Data LoaderToken SplitterOpenAI Chat ModelSimple Memory

What it does

The "Voice RAG Chatbot with ElevenLabs and OpenAI" workflow in n8n is designed to create an interactive voice-based chatbot system that leverages both text and voice inputs for providing information. Ideal for shops, commercial activities and restaurants How it works: Here's how it operates: 1. Webhook Activation: The process begins when a user interacts with the voice agent set up on ElevenLabs, triggering a webhook in n8n. This webhook sends a question from the user to the AI Agent node. 2. AI Agent Processing: Upon receiving the query, the AI Agent node processes the input using predefined prompts and tools. It extracts relevant information from the knowledge base stored within the Qdrant vector database. 3. Knowledge Base Retrieval: The Vector Store Tool node interfaces with the Qdrant Vector Store to retrieve pertinent documents or data segments matching the user’s query. 4. Text Generation: Using the retrieved information, the OpenAI Chat Model generates a coherent response tailored to the user’s question. 5. Response Delivery: The generated response is sent back through another webhook to ElevenLabs, where it is converted into speech and delivered audibly to the user. 6. Continuous Interaction: For ongoing conversations, the Window Buffer Memory ensures context retention by maintaining a history of interactions, enhancing the conversational flow. Set up steps: To configure this workflow effectively, follow these detailed setup instructions: 1. ElevenLabs Agent Creation: - Create a FREE account on ElevenLabs - Begin by creating an agent on ElevenLabs (e.g., named 'testn8n'). - Customize the first message and define the system prompt specific to your use case, such as portraying a character like a waiter at "Pizzeria da Michele". - Add a Webhook tool labeled 'testchatbotelevenlabs' configured to receive questions via POST requests. 2. Qdrant Collection Initialization: - Utilize the HTTP Request nodes ('Create collection' and 'Refresh collection') to initialize and clear existing collections in Qdrant. Ensure you update placeholders QDRANTURL and COLLECTION accordingly. 3. Document Vectorization: - Use Google Drive integration to fetch documents from a designated folder. These documents are then downloaded and processed for embedding. - Employ the Embeddings OpenAI node to generate embeddings for the downloaded files before storing them into Qdrant via the Qdrant Vector Store node. 4. AI Agent Configuration: - Define the system prompt for the AI Agent node which guides its behavior and responses based on the nature of queries expected (e.g., product details, troubleshooting tips). - Link necessary models and tools including OpenAI language models and memory buffers to enhance interaction quality. 5. Testing Workflow: - Execute test runs of the entire workflow by clicking 'Test workflow' in n8n alongside initiating tests on the ElevenLabs side to confirm all components interact seamlessly. - Monitor logs and outputs closely during testing phases to ensure accurate data flow between systems. 6. Integration with Website: - Finally, integrate the chatbot widget onto your business website replacing placeholder AGENTID with the actual identifier created earlier on ElevenLabs. By adhering to these comprehensive guidelines, users can successfully deploy a sophisticated voice-driven chatbot capable of delivering precise answers utilizing advanced retrieval-augmented generation techniques powered by OpenAI and ElevenLabs technologies. ---- Need help customizing? Contact me(mailto:info@n3w.it) for consulting and support or add me on Linkedin.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.