OpenAI Assistants API

Key Features

The Assistants API allows building AI assistants that can:

Usage Flow

  1. Create an Assistant
  2. Create a Thread for user conversation
  3. Add Messages to the Thread
  4. Make a Run to trigger Assistant response
  5. Show Assistant replies in the UI

Core Objects

Creating Assistants

Assistants are configured via parameters like:

Managing Threads

Threads store conversation history between assistant and user:

Making Runs

Runs invoke assistants on threads:

Built-in Tools

Tools like: