Back to all stacks

OpenAI Agents SDK Internal Ops

Verified

Internal operations agent using OpenAI's native Agents SDK for HR, IT, and finance automation with tool use and handoffs.

Internal OpsEnterpriseWorkflow Automation

Last verified: 2026-10-29

Orchestration

OpenAI's official agent framework with Swarm-inspired handoffs and tool use.

Agent Handoffsrouting

Transfer conversations between specialized agents based on intent.

Memory

Conversation Threadssession

OpenAI's native thread-based conversation persistence.

Vector Storepersistent

OpenAI's hosted vector storage for file search and retrieval.

RAG

OpenAI File Searchbuilt-in

Native RAG with automatic chunking, embedding, and retrieval.

Knowledge Filesdocument

Upload PDFs, docs, spreadsheets for automatic indexing.

MCP / Tools

Function Callingnative

OpenAI's native function calling with JSON schema definitions.

HRIS Integration

Query employee data, PTO balances, org charts (Workday, BambooHR).

IT Ticketing

Create and track IT support tickets (ServiceNow, Jira).

Expense Processing

Submit and query expense reports (Concur, Expensify).

Code Interpreterbuilt-in

Execute Python for data analysis and calculations.

Eval / Tracing

OpenAI Dashboardbuilt-in

Native conversation logs and usage analytics.

Braintrustevaluation

Third-party eval framework for systematic testing.

Models

GPT-4oprimary

Main reasoning model with strong function calling.

GPT-4o-minirouting

Fast, cheap model for intent classification and simple queries.

Cost & Performance Notes

Cost

GPT-4o at ~$5/1M input tokens. Enterprise typically sees $500-2000/month for medium-scale ops automation.

Latency

P50 ~800ms for simple queries, P95 ~3s for complex multi-tool operations.

Caveats & Considerations

  • Vendor lock-in to OpenAI ecosystem
  • Limited customization compared to open frameworks
  • Vector store pricing can add up with large document collections
  • Handoff logic requires careful design for complex routing

OpenAI’s Agents SDK brings the Swarm pattern to production, enabling multi-agent systems with clean handoffs between specialized agents. This stack is ideal for internal operations where you want tight integration with OpenAI’s ecosystem.

Multi-Agent Architecture

┌─────────────────────────────────────────────────────┐
│                 Triage Agent                         │
│           (Intent classification)                    │
│                      │                               │
│         ┌────────────┼────────────┐                 │
│         ▼            ▼            ▼                 │
│    ┌─────────┐  ┌─────────┐  ┌─────────┐           │
│    │HR Agent │  │IT Agent │  │Finance  │           │
│    │         │  │         │  │ Agent   │           │
│    └─────────┘  └─────────┘  └─────────┘           │
│         │            │            │                 │
│         ▼            ▼            ▼                 │
│    ┌─────────────────────────────────────────┐     │
│    │              Tool Layer                  │     │
│    │  HRIS │ Ticketing │ Expenses │ Calendar │     │
│    └─────────────────────────────────────────┘     │
├─────────────────────────────────────────────────────┤
│  Knowledge Base                                      │
│  ├── HR Policies (Vector Store)                     │
│  ├── IT Documentation                               │
│  └── Finance Guidelines                             │
└─────────────────────────────────────────────────────┘

Handoff Pattern

from openai import OpenAI
from agents import Agent, handoff

hr_agent = Agent(
    name="HR Assistant",
    instructions="Handle HR queries: PTO, benefits, policies",
    tools=[lookup_pto, lookup_benefits, file_search]
)

it_agent = Agent(
    name="IT Support",
    instructions="Handle IT issues: password resets, hardware, software",
    tools=[create_ticket, check_status, reset_password]
)

triage = Agent(
    name="Triage",
    instructions="Route to the appropriate specialist",
    handoffs=[handoff(hr_agent), handoff(it_agent)]
)

Production Considerations

  • Security: All integrations need proper OAuth/API key management
  • Audit Trail: Log all agent actions for compliance
  • Fallback: Always have human escalation path
  • Rate Limits: OpenAI has per-org rate limits to consider

When to Use This Stack

  • Teams already using OpenAI APIs extensively
  • Need for quick deployment without infrastructure management
  • Internal tools where vendor lock-in is acceptable
  • Simpler multi-agent patterns (not deep hierarchies)

Something wrong or outdated?

Help us keep this stack accurate.

Suggest an update