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

764 views · 🤖 AI Chatbots & Agents

Description

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


👤 Who’s it for


⚙️ 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


🎛 Customization


📬 Contact

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

🔗 Nodes Used

Webhook, AI Agent, OpenAI Chat Model, Simple Memory

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup