AIAI EngineerMar 5, 2025· 16:52

OpenAI for VP's of AI + Advice for Building Agents

OpenAI's Toki Sherbakov and Prashant Mital explain how enterprises adopt AI through a three-phase journey: building an AI-enabled workforce with ChatGPT, automating operations with APIs, and infusing AI into end products. They detail a Morgan Stanley case study where retrieval methods improved an internal knowledge assistant's accuracy from 45% to 98%. The pair define agents as models with instructions, tools, and self-terminating execution loops, then share four field lessons: build with primitives before frameworks, start with a single purpose-built agent, graduate to a network of specialized agents with handoffs for complex tasks, and keep prompt instructions simple while running guardrails in parallel using fast models like GPT-4o mini for safety and reliability.

  1. 0:00Intro
  2. 1:39Enterprise Phases
  3. 3:02AI Strategy
  4. 4:23Use Case Lifecycle
  5. 6:47Case Study
  6. 8:03Defining Agents
  7. 9:56Start with Primitives
  8. 11:43Start Simple
  9. 12:58Agent Networks
  10. 14:54Guardrails
  11. 16:28Recap

Powered by PodHood

Transcript

Intro0:00

Toki Sherbakov0:17

Hello. Thanks for having us here, and today we're going to talk a bit about building and scaling use cases with OpenAI, and what this means in terms of enterprises working with OpenAI to bring use cases to production. And a little sneak peek into agents and how we've seen some of our experience building these use cases and now agentic workflows in the field.

So, on our side, just a quick introduction into OpenAI. I'm sure folks have probably heard of OpenAI, but just in terms of how we operate, we have two core engineering teams. We have our research team, which is 1,200 researchers that are inventing these models,right?

They build and deploy these foundational models. These kind of come down from the heavens. Our applied team, our second engineering team, take this and build it into product. So this is where you see things like ChatGPT, you see things like the API where our GPT models are available, and that's where we actually deploy this finally in the go-to-market sense where we take these products and put it in end users' hands.

That's kind of where our team comes into play with go-to-market, where we actually help get this in the hands of your workforce, in the hands of your product, and really start to automate these internal operations. And once we finally deploy these, there's kind of this iterative loop where we take feedback from the field to improve our product directly and then also improve our core models through this research flywheel.

So that's kind of the last step of getting it back to research. So this is typically how OpenAI operates. In terms of the enterprise, we see the kind of AI customer journey happen typically in three phases. It doesn't have to happen in sequence in this way, but this is what we usually see is first and foremost building an AI-enabled workforce.

Enterprise Phases1:39

Toki Sherbakov1:57

This is getting AI in the hands of your employees to become AI literate, to use AI every day in their day-to-day work. That's the first and foremost, that first step typically that we see. Then from there, you typically graduate towards automating your AI operations.

This is actually more internal use cases to build an automation or maybe some Copilot-type use cases into the workforce. Then the last step here is actually infusing AI into end product. This is end user facing. So when it comes to OpenAI's product specifically, enabling your workforce typically starts with something like ChatGPT.

This is our first-party product to put in the hands of users to use day in and day out. Then when you talk about automating operations internally, you can do this partially with ChatGPT. For the more complex use cases or more customization as needed, that's where something like the API comes in.

And then finally, infusing this into your end user products is where it's primarily API use cases. But just to give a flavor of how these products come into play when actually executing this across your AI customer journey. So in terms of how we see enterprises actually craft this strategy in practice, it kind of happens in a few different ways.

AI Strategy3:02

Toki Sherbakov3:10

I'd say first and foremost, you determine a little bit from a top-down level of what should the strategy be. And one core thing that we acknowledge here, it's not actually what's your AI strategy, it's actually what's your broader business strategy.

And what OpenAI does is help figure out where does the technology meet that broader business strategy first and foremost. So that kind of top-down strategic guidance is really important to start with. And then once you start with that top-down guidance, you then move to use cases.

Like let's identify one or two meaty use cases that are high impact to start with and scope those out to really just deliver on kind of that scoped scale. So once you have the strategy, you execute upon those one to two use cases, and then you think about how to build divisional capability across your enterprise.

This is where you start to enable the team and to fuse AI throughout the organization. And this happens in many ways. This comes through enablement, this comes through building centers of excellence, this comes with building maybe a centralized technological platform that other people in the enterprise can build on.

And I feel like that's typically the journey we see is, again, set the strategy, pick those one to two use cases, and then build that capability across your organization through enablement. So that's usually the type of journey we see.

And just to illustrate this a little bit with an example is this is how we've seen the use case journey play out. So this is illustrative of a three-month type of example of a use case, but when you've identified that one to two use cases that you want to tackle, first and foremost, you have to ideate upon that, do some initial scoping, do some architecture review to understand how is AI going to fit into your current stack, and then really clearly define what the success metrics and KPIs are.

Use Case Lifecycle4:23

Toki Sherbakov4:52

Once you have that established, the bulk of the time is really spent in development. This is where you iterate. This is where you are iterating on prompting strategies, incorporating RAG, whatever it may be, to constantly improve the use case that you're tackling.

When it comes to engaging with OpenAI, this is where our team, like Prashant and myself, really interact closely with your engineering team through things like workshops, things like office hours, paired programming sessions, webinars, whatever it kind of takes to accelerate the use case forward.

Once we do that development phase, we kind of move to testing and evaluation, which is with the evals we've typically defined upfront, we're able to actually now do some A/B testing, do some beta rollout to understand how this actually works in practice.

And then finally, we go to production. This is where you just do some launch rollout, do some scale optimization testing to make sure it's going to work once you deploy it to many end users, and then we have kind of constant maintenance that's ongoing.

So that's like the typical phase you'll see. And again, the bulk of the time, especially in partnership with OpenAI, will be around development. In this, we bring a dedicated team. We ask you bring a also dedicated team to make this work in practice.

And the things that we deploy also to enable you are things like early access to new models and features. That's one of the key things of working closely with OpenAI is that we can see a little bit into the future, not much.

Like our roadmap, I don't see beyond much, maybe like six months. People ask, what's your 18-month roadmap? I cannot tell you. I can tell you basically what's going to happen in the next two quarters. But that purview into the future is really important to bring forward to these use cases and enable customers to build and innovate for what's coming next.

So that's a really critical part of our partnership. Also, we bring in internal experts from our research engineering team, our product team, to help kind of accelerate you on this path. And then lastly, just kind of do joint roadmap sessions to make sure that we're on track for what your future roadmap is as well.

Case Study6:47

Toki Sherbakov6:47

So that's hopefully an illustration of how we partner together. And then one concrete example on this is something we did with Morgan Stanley. So Morgan Stanley, here based in New York, was building an internal knowledge assistant. So what this was, was giving their wealth managers the ability to ask questions of their large corpus of knowledge, which was research reports, like live views on stock ticker data, whatever it may be.

And they wanted to get highly accurate information back to be able to respond to their end clients,right? And accuracy was pretty bad to start,right? It was 45% typically what they saw. So interacting with us, we introduced new methods throughout the use case development, things like hide retrieval, we did some fine-tune embeddings, different chunking strategies, which improved performance.

And then once we kept introducing more and more methods, we saw accuracy go up. We introduced things like reranking and classification step that got us 85%. And ultimately, their goal was 90%. We got to 98% accuracy through other things like prompt engineering and query expansion.

So more just an example of how we've introduced methods throughout this use case journey to improve their core metric for Morgan Stanley in this case. So this is hopefully one illustration of how OpenAI has partnered with customers. And one common use case we're seeing more and more of is now building in this agent space.

Defining Agents8:03

Toki Sherbakov8:03

You maybe hear that 2025 is the year of agents. Agentic workflows have been a buzzword for a long time. I think we're seeing that actually come to reality this year. And I think with that, we've seen some battle scars and some best practices of what we've seen in the field.

And I'll hand it off to Prashant to talk about what we've seen on the agent side.

Prashant Mital8:22

Thanks, Toki. So at OpenAI, we are lucky to work alongside customers who are building state-of-the-art agents and working alongside team members who are building our own agentic products like Deep Research and Operator. Like Toki said, we expect 2025 to be the year of agents, the year GenAI truly graduates from being an assistant to being a coworker.

And to help usher in this era, we've been hard at work identifying the patterns and anti-patterns prevalent in agent development. I'm excited to share four of those with you today.

Before we can go further, I'd like to quickly define what we mean by the term agent. So we think of an agent as an AI application that consists of a model that has some instructions, usually in the form of a prompt, access to some tools for retrieving information, and interacting with external systems, all encapsulated in an execution loop whose termination is controlled by the model itself.

So one way of thinking about this is that in each execution cycle, the agent can be thought of as an entity that's receiving instructions in natural language, determining whether or not to issue any tool calls, running those tools, synthesizing a response with the tool return values, and then providing an answer to the user.

Additionally, the user may determine--sorry, the agent may determine--that it's met its objective and therefore terminate the execution loop. So with that definition, let's move on to some of the lessons that we've learned building these agents in the field.

Start with Primitives9:56

Prashant Mital9:56

So for the first insight, imagine you're designing an AI agent. You need to orchestrate multiple models, you need to retrieve data, reason over it, and generate an output. You have two choices. You can start with primitives, making raw API calls, logging results yourselves, and logging outputs and failures.

Or you can start with a framework. You can pick an abstraction, you can wire it up, and you can let it handle a lot of the details. And I have to say, starting with a framework is pretty enticing.

It's how I got started building agents. It's really easy to get started, have a proof of concept stood up in no time. But the problem is that if you start with a framework, you often don't actually know how your system behaves or what primitives it uses.

You've deferred design decisions before you've understood your constraints. And if you don't know your constraints, you can't optimize your solution. So we believe a better approach is to first build with primitives. Understand how your task decomposes, where the failures happen, and what actually needs improvement.

Then introduce abstraction. When you find that you're reinventing the wheel, for example, by reimplementing an embedding strategy or reimplementing model graders, that may be a good time to bring in some abstractions. Many teams today are spending a lot of time picking theright framework.

We actually believe that developing agents in a scalable way isn't so much about choosing theright abstraction, it's really about understanding your data, understanding your failure points, and your constraints. So in summary, the first lesson is to start simple, optimize when needed, and abstract only when it makes your system better.

Start Simple11:43

Prashant Mital11:43

Which leads us straight to our second insight, starting simple. So too often, teams are jumping straight into designing multi-agent systems, agents calling agents, coordinating tasks, dynamically reasoning over long trajectories. It all sounds really powerful, but when it's done too soon, it creates a lot of unknowns and it doesn't give you all that much insight.

We like a different approach. We generally recommend starting with a single agent that's purpose-built for a single task. Put that into production with a limited set of users and observe how it performs. Doing this allows you to identify the real bottlenecks: hallucinations over conversation trajectories, low adoption due to high latency, or maybe inaccuracy due to poor retrieval performance.

Then knowing how the system underperforms and knowing what's important to your users, we can work to incrementally improve it. In a nutshell, we should think of complexity as something which increases as we discover more intense failure cases and constraints.

Because the goal isn't really to build a complicated system, it's just to build a system that works.

So starting simple sounds great, but we all know that complexity is where true value is realized. So how should we handle more complex tasks? This is where a network of agents and the concept of handoffs comes in. So you can think of handoffs--sorry, let's start with a network of agents.

Agent Networks12:58

Prashant Mital13:18

So a network of agents is a collaborative system where multiple agents work in concert to resolve complex requests or perform a series of interrelated tasks. You can think of this as a series of specialized agents handling sub-flows within a large agentic workflow.

On the topic of handoffs, you can think of these as the process by which one agent transfers control of an active conversation to another agent. It's pretty similar to how you get transferred to someone else on a phone call, except in this case, you can preserve your entire conversation history and the new agent just magically knows everything you've talked about already.

So let's see an example of this. In this sample architecture, we are showing how a fully automated customer service flow may be implemented with a network of agents and handoffs. This approach is allowing us to bring theright tools to theright job.

So for example, on the left-hand side, we are using a GPT-4.0 mini call to perform triage on the incoming request. We're then using GPT-4.0 on the dispute agent to actually manage the conversation with the user. And finally, we are using an O3 mini reasoning model to perform accuracy-sensitive tasks, like checking whether the customer is eligible for a refund.

It turns out that handoffs work really well, and keeping the entire conversation history and context while swapping out the model, the prompt, the tool definitions provides sufficient flexibility to solve a wide range of scenarios.

So our final lesson pertains to guardrails. And just to level set, guardrails is a catch-all term today for any mechanism that enforces safety, security, and reliability within your application. And it's generally used to prevent misuse and ensure that your system maintains integrity.

Guardrails14:54

Prashant Mital15:11

So keeping the model instructions simple and focused on the target task ensures maximum interoperability of your system and also ensures that we are able to hill climb on accuracy and performance most predictably. Guardrails should not necessarily be made part of your main prompts, but should instead be run in parallel.

And the proliferation of faster and cheaper models like GPT-4.0 mini is making this more accessible than ever. Tool calls and user responses that are high stakes, for example, issuing a refund or showing a user some information from their personal account, these can be deferred until all of the guardrails have returned.

In this example, we see that we are running a single input guardrail to prevent prompt injection and then a couple of output guardrails on the agent's response.

So to recap, we have four lessons from our time building agents. Use abstractions minimally, start with a single agent, graduate to a network of agents when you have more intents, and finally, keep your prompts simple and focused on the happy path and use guardrails to handle edge cases.

Recap16:28

Prashant Mital16:28

Thank you.