Skip to main content

Voice-driven AI assistant using VAPI and GPT-4.1-mini with memory

Workflow preview

Workflow preview
100%
Voice-driven AI assistant using VAPI and GPT-4.1-mini with memory preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Send VAPI voice requests into n8n with memory and OpenAI for conversational automation This template shows how to capture voice interactions from VAPI (Voice AI Platform) , send them into n8n via a...

Best for

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

Tools used

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

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Voice-driven AI assistant using VAPI and GPT-4.1-mini with memory
Workflow name
Voice-driven AI assistant using VAPI and GPT-4.1-mini with memory

Send VAPI voice requests into n8n with memory and OpenAI for conversational automation

This template shows how to capture voice interactions from VAPI (Voice AI Platform), send them into n8n via a webhook, process them with OpenAI, and maintain context with memory. The result is a conversational AI agent that responds back to VAPI with short, business-focused answers.


✅ What this template does

  • Listens for POST requests from VAPI containing the session ID and user query
  • Extracts session ID and query for consistent conversation context
  • Uses OpenAI (GPT-4.1-mini) to generate conversational replies
  • Adds Memory Buffer Window so each VAPI session maintains history
  • Returns results to VAPI in the correct JSON response format

👤 Who’s it for

  • Developers and consultants building voice-driven assistants
  • Businesses wanting to connect VAPI calls into automation workflows
  • Anyone who needs a scalable voice → AI → automation pipeline

⚙️ How it works

  1. Webhook node catches incoming VAPI requests
  2. Set node extracts session_id and user_query from the request body
  3. OpenAI Agent generates short, conversational replies with your business context
  4. Memory node keeps conversation history across turns
  5. Respond to Webhook sends results back to VAPI in the required JSON schema

🔧 Setup instructions

Step 1: Create Function Tool in VAPI

  1. In your VAPI dashboard, create a new Function Tool
    • Name: send_to_n8n
    • Description: Send user query and session data to n8n workflow
    • Parameters:
      • session_id (string, required) – Unique session identifier
      • user_query (string, required) – The user’s question
    • Server URL: https://your-n8n-instance.com/webhook/vapi-endpoint

Step 2: Configure Webhook in n8n

  1. Add a Webhook node
  2. Set HTTP method to POST
  3. Path: /webhook/vapi-endpoint
  4. Save, activate, and copy the webhook URL
  5. Use this URL in your VAPI Function Tool configuration

Step 3: Create VAPI Assistant

  1. In VAPI, create a new Assistant
  2. Add the send_to_n8n Function Tool
  3. Configure the assistant to call this tool on user requests
  4. Test by making a voice query — you should see n8n respond

📦 Requirements

  • An OpenAI API key stored in n8n credentials
  • A VAPI account with access to Function Tools
  • A self-hosted or cloud n8n instance with webhook access

🎛 Customization

  • Update the system prompt in the OpenAI Agent node to reflect your brand’s voice
  • Swap GPT-4.1-mini for another OpenAI model if you need longer or cheaper responses
  • Extend the workflow by connecting to CRMs, Slack, or databases

📬 Contact

Need help customizing this (e.g., filtering by campaign, connecting to CRMs, or formatting reports)?

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 - OpenAI Chat Model4

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

Block 2 - Sticky Note57

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

Block 3 - Sticky Note7

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

Block 4 - Simple Memory1

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

Block 5 - Webhook for vapi

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

Block 6 - Keep Session id & Query

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Resume Agent

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

Block 8 - Respond to Vapi

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

3. Summary Table

Workflow Voice-driven AI assistant using VAPI and GPT-4.1-mini with memory
Complexity intermediate
Nodes 8
Categories AI Chatbot
Author Robert Breen
Published 23 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8866/8866.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 Voice-driven AI assistant using VAPI and GPT-4.1-mini with memory do?

Send VAPI voice requests into n8n with memory and OpenAI for conversational automation This template shows how to capture voice interactions from VAPI (Voice AI Platform) , send them into n8n via 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 AI Chatbot use case.