💬 Conversational VK bot with GPT-4 mini & Whisper voice transcription

516 views · 💬 Support Chatbots

Description

How it works

This workflow powers an intelligent, conversational AI bot for VK that can understand and respond to both text and voice messages. The bot uses an AI agent with built-in memory, allowing it to remember the conversation history for each unique user (or in each chat) and answer follow-up questions. It’s a complete solution for creating an engaging, automated assistant within your VK group.

Step-by-step

Set up steps

Estimated set up time: 10 minutes

  1. Add your OpenAI credentials to the OpenAI Chat Model and Transcribe nodes.
  2. Add your VK group’s API Bearer Token credentials to the two HTTP Request nodes named Send to VK and Error.
  3. Webhook Setup (Important!): This is a two-stage process: confirmation and operation.
    • Copy the Production Webhook URL from the Webhook node.
    • Stage A: Confirm Address (One-time)
      • In the Webhook node settings, set Response Mode to On Received.
      • In Options -> Response Data, temporarily paste the confirmation string that VK provides.
      • Activate the workflow (toggle “Active” in the top-right).
      • Paste the URL into your VK group’s Callback API settings (Management -> API -> Callback API) and click “Confirm”.
    • Stage B: Operational Mode (Permanent)
      • Return to the Webhook node.
      • Set Response Mode to Immediate.
      • In Options -> Response Data, type the word ok (lowercase).
      • Save and reactivate the workflow. The bot is now live.
  4. (Optional) Customize the system prompt in the AI Agent node to define your bot’s name and personality.

🔗 Nodes Used

HTTP Request, Webhook, Filter, AI Agent, OpenAI Chat Model, Simple Memory

📥 Import

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

📖 Importing guide · 🔑 Credential setup