Primary navigation

Legacy APIs

Agents

Learn how to build, deploy, and optimize agent workflows with AgentKit.

Agents are systems that intelligently accomplish tasks—from simple goals to complex, open-ended workflows. OpenAI provides models with agentic strengths, a toolkit for agent creation and deploys, and dashboard features for monitoring and optimizing agents.

AgentKit

AgentKit is a modular toolkit for building, deploying, and optimizing agents.

How to build an agent

Building an agent is a process of designing workflows and connecting pieces of the OpenAI platform to meet your goals. Agent Builder brings all these primitives into one UI.

Goal
What to useDescription
Build an agent workflowAgent BuilderVisual canvas for creating agent workflows. Brings models, tools, knowledge, and logic all into one place.
Connect to LLMsOpenAI modelsCore intelligence capable of reasoning, making decisions, and processing data. Select your model in Agent Builder.
Equip your agentTools, guardrailsAccess to third-party services with connectors and MCP, search vector stores, and prevent misuse. See Function calling, Web search, File search, and Computer use.
Provide knowledge and memoryVector stores, file search, embeddingsExternal and persistent knowledge for more relevant information for your use case, hosted by OpenAI.
Add control-flow logicLogic nodesCustom logic for how agents work together, handle conditions, and route to other agents.
Write your own codeAgents SDKBuild agentic applications, with tools and orchestration, instead of using Agent Builder as the backend.

To build a voice agent that understands audio and responds in natural language, see the voice agents docs. Voice agents are not supported in Agent Builder.

Deploy agents in your product

When you’re ready to bring your agent to production, use ChatKit to bring the agent workflow into your product UI, with an embeddable chat connected to your agentic backend.

Goal
What to use
Description
Embed your agentChatKitCustomizable UI component. Paste your workflow ID to embed your agent workflow in your product.
Get more customizationAdvanced ChatKitRun ChatKit on your own infrastructure. Use widgets and connect to any agentic backend with SDKs.

Optimize agent performance

Use the OpenAI platform to evaluate agent performance and automate improvements.

Goal
What to use
Description
Evaluate agent performanceEvals featuresFull evaluation platform, including support for external model evaluation.
Automate trace gradingTrace gradingDevelop, deploy, monitor, and improve agents.
Build and track evalsDatasetsA collaborative interface to build agent-level evals in a test environment.
Optimize promptsPrompt optimizerMeasure agent performance, identify areas for improvement, and refine your agents.

Get started

Design an agent workflow with Agent Builder