Skip to main content

Create voice assistant interface with OpenAI GPT-4o-mini and text-to-speech

Workflow preview

Workflow preview
100%
Create voice assistant interface with OpenAI GPT-4o-mini and text-to-speech preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Voice Assistant Interface with n8n and OpenAI This workflow creates a voice activated AI assistant interface that runs directly in your browser. Users can click on a glowing orb to speak with the A...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.html, n8n-nodes-base.respondtowebhook, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Anderson Adelino.

Original n8n.io source

1.1 Workflow description

Title
Create voice assistant interface with OpenAI GPT-4o-mini and text-to-speech
Workflow name
Create voice assistant interface with OpenAI GPT-4o-mini and text-to-speech

Voice Assistant Interface with n8n and OpenAI

This workflow creates a voice-activated AI assistant interface that runs directly in your browser. Users can click on a glowing orb to speak with the AI, which responds with voice using OpenAI's text-to-speech capabilities.

Who is it for?

This template is perfect for:

  • Developers looking to add voice interfaces to their applications
  • Customer service teams wanting to create voice-enabled support systems
  • Content creators building interactive voice experiences
  • Anyone interested in creating their own "Alexa-like" assistant

How it works

The workflow consists of two main parts:

  1. Frontend Interface: A beautiful animated orb that users click to activate voice recording
  2. Backend Processing: Receives the audio transcription, processes it through an AI agent with memory, and returns voice responses

The system uses:

  • Web Speech API for voice recognition (browser-based)
  • OpenAI GPT-4o-mini for intelligent responses
  • OpenAI Text-to-Speech for voice synthesis
  • Session memory to maintain conversation context

Setup requirements

  • n8n instance (self-hosted or cloud)
  • OpenAI API key with access to:
    • GPT-4o-mini model
    • Text-to-Speech API
  • Modern web browser with Web Speech API support (Chrome, Edge, Safari)

How to set up

  1. Import the workflow into your n8n instance
  2. Add your OpenAI credentials to both OpenAI nodes
  3. Copy the webhook URL from the "Audio Processing Endpoint" node
  4. Edit the "Voice Assistant UI" node and replace YOUR_WEBHOOK_URL_HERE with your webhook URL
  5. Access the "Voice Interface Endpoint" webhook URL in your browser
  6. Click the orb and start talking!

How to customize the workflow

  • Change the AI personality: Edit the system message in the "Process User Query" node
  • Modify the visual style: Customize the CSS in the "Voice Assistant UI" node
  • Add more capabilities: Connect additional tools to the AI Agent
  • Change the voice: Select a different voice in the "Generate Voice Response" node
  • Adjust memory: Modify the context window length in the "Conversation Memory" node

Demo

Watch the template in action: https://youtu.be/0bMdJcRMnZY

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Voice Interface Endpoint

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Voice Assistant UI

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 3 - Send HTML Interface

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 4 - Audio Processing Endpoint

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 5 - Process User Query

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 6 - Conversation Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 7 - Send Audio Response

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 8 - Generate Voice Response

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Template Description

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Setup Instructions

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Customization Options

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - GPT-4o-mini Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

3. Summary Table

Workflow Create voice assistant interface with OpenAI GPT-4o-mini and text-to-speech
Complexity intermediate
Nodes 14
Categories Support Chatbot, AI Chatbot
Author Anderson Adelino
Published 24 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6399/6399.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create voice assistant interface with OpenAI GPT-4o-mini and text-to-speech do?

Voice Assistant Interface with n8n and OpenAI This workflow creates a voice activated AI assistant interface that runs directly in your browser. Users can click on a glowing orb to speak with the A...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.