workflows.fit
Back to n8n workflows
n8n templateFreeBy Davide Boizza

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

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, ...

DevelopmentCore NodesData & StorageAILangchainUtilityAgentTool Vector Store
Loading interactive preview...

Template notes

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](https://try.elevenlabs.io/ahkbf00hocnu), 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](https://try.elevenlabs.io/ahkbf00hocnu) - 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.