World's Fair 2025
The Demo I Wish I'd Had: OpenAI's Agents SDK... serverless! - Brook Riggio
Overview
This talk presents a preferred architecture for building full-stack AI applications in a serverless environment. The core thesis is that by combining specific tools like Next.js, OpenAI's Agents SDK, and Ingest, developers can create resilient, agent-powered applications without managing complex infrastructure. The approach emphasizes integrating AI workflows directly into client applications for a seamless user experience.
Who should watch
- AI Engineers looking to deploy agentic workflows.
- Product Managers and builders evaluating serverless AI architectures.
- Developers struggling with the complexity of integrating various AI tools and infrastructure.
- Those interested in practical examples of full-stack AI development.
Key takeaways
- A recommended stack for serverless AI applications includes Next.js for the client app, OpenAI's Agents SDK for agent frameworks, and Ingest for orchestration.
- Next.js offers first-class server actions, file-based routing, and deep integration with Vercel hosting, making it suitable for client apps.
- OpenAI's Agents SDK provides native tool calling, multi-agent calls, built-in tracing, and eval hooks, with support for interchangeable models.
- Ingest acts as an event-driven orchestration layer that manages agent workflows, offering automatic retries and step-level observability without server management.
- Vercel is recommended for serverless deployment, providing preview deployments, an edge network, and integrated database options, with strong alignment with Next.js.
- The architecture involves a Next.js client app interacting with an Ingest orchestration layer, which in turn triggers Python serverless functions running AI agents (e.g., using OpenAI's SDK).
- Python functions, including those using the OpenAI Agents SDK, can be deployed to Vercel, which automatically hosts them as serverless functions.
- The presented example demonstrates an AI agent creating a newsletter based on user-provided topics, showcasing the end-to-end workflow from data input to final output.
Notable quotes
*The question of 2025 is how do we deploy zero ops resilient agentpowered user ready apps today?*
*I put this talk together because I struggled with this very thing trying to make it happen over and over again in a production environment.*
*This set of tools actually works. Now, the LLM still don't know how to piece this all together, but that's what I'm here to tell you.*
Unofficial community note. Prefer the recording for nuance.