This is the starter code for my YouTube tutorial:
π βYour First AI Agent (Next.js + OpenAI Tool Calling)β
Weβll start from a fresh Next.js 15 project with:
- β TypeScript
- β Tailwind CSS
- β App Router
- β
@/*import alias
In the tutorial, weβll add the code that turns this into a working AI Agent.
Clone this repo:
git clone https://github.com/jspruance/ai-agent-tutorial.git
cd openai-agent-tutorial-starterInstall dependencies:
npm installAdd your OpenAI API key (not yet used, but needed later):
# .env.local
OPENAI_API_KEY=your_api_key_herenpm run devThen open http://localhost:3000 in your browser.
You should see a blank Next.js app with Tailwind installed.
src/
βββ app/
βββ page.tsx # Simple placeholder page
βββ api/ # Agent code will go here in the tutorial
π This repo is just the starting point.
Follow the tutorial to build out your first AI Agent step by step!