Virbe Documentation

OpenAI Assistant

Connect your virtual being to an OpenAI Assistant through the OpenAI Assistants API.

The OpenAI Assistant integration connects your virtual being to an assistant created in the OpenAI Platform. Unlike the standard OpenAI AI Model integration (which uses the Chat Completions API), the OpenAI Assistant engine uses the Assistants API, which supports persistent conversation threads, file search (RAG over uploaded files), function calling, and code interpretation.

Prerequisites

  • An OpenAI account with API access
  • An Assistant created in the OpenAI Platform (platform.openai.com → Assistants)
  • The Assistant's ID and your OpenAI API key

Configuration

Credentials

FieldDescription
API keyYour OpenAI API key
Assistant IDThe unique identifier of the Assistant you want to connect. Found in the OpenAI Platform under Assistants – it looks like asst_XXXXXXXXXX

Finding Your Assistant ID

  1. Go to platform.openai.com/assistants
  2. Click on the Assistant you want to use
  3. Copy the Assistant ID from the assistant details panel (format: asst_...)

How It Works

When the Call Conv AI node routes to the OpenAI Assistant engine:

  1. Virbe creates or retrieves a persistent Thread for the current conversation session
  2. The user's message is added to the thread as a new message
  3. An Run is created for the thread using your configured Assistant
  4. OpenAI processes the run, executing any tools or file searches the Assistant is configured with
  5. The Assistant's response is returned to Virbe and delivered to the user

Thread continuity is maintained for the lifetime of the Virbe conversation session.

Comparison with AI Model (Chat Completions)

FeatureAI Model (Chat Completions)OpenAI Assistant
Conversation historyManaged by VirbeManaged by OpenAI (Threads)
File search / RAGVia Virbe Knowledge BaseVia OpenAI file_search tool
Function callingVia node logicVia Assistant tool definitions
Code interpreterNoYes (if enabled on Assistant)
Best forStandard LLM responsesComplex agents with OpenAI-native tools

Use Cases

OpenAI Assistant is a strong choice when you:

  • Have an existing OpenAI Assistant already configured with tools, files, or custom instructions
  • Need OpenAI's native file search over uploaded documents (PDF, Word, etc.)
  • Want to use the code interpreter for calculations or data analysis
  • Prefer OpenAI-managed conversation threading

The OpenAI Assistants API may have higher latency than Chat Completions due to the asynchronous run model. For latency-sensitive deployments, consider using the standard AI Model configuration with the Tool Agent node instead.

On this page