Step 12: Create the Next.js project
Open your terminal and run:
npx create-next-app@latest fabulosa-scheduler
When it asks whether to use the recommended defaults, choose
Yes. That gives you TypeScript, Tailwind CSS,
ESLint, and the App Router, with the code in app/ (no
src/ folder), which is the layout this tutorial uses.
The exact questions change between versions; if yours differ, pick
those same options.
Step 13: Enter the project and start the dev server
cd fabulosa-scheduler
npm run dev
Open your browser and go to http://localhost:3000.
You should see the Next.js welcome page.
Step 14: Install the AI SDK and Zod
Stop the dev server (Ctrl+C) and install the packages we'll need
for agents:
npm install ai@6 @ai-sdk/react@3 zod
-
ai — the core Vercel AI SDK (agents, tools,
streaming)
-
@ai-sdk/react — React hooks for chat
interfaces (useChat)
-
zod — schema validation for tool inputs
The @6 and @3 pin the versions this
tutorial was written against. The AI SDK changes its API between
major versions, so an unpinned install may not match the code in
later parts.
Step 15: Install the Neon serverless driver
npm install @neondatabase/serverless
For local development, we'll also use a lightweight SQLite
stand-in:
npm install sql.js
npm install --save-dev @types/sql.js