Skip to content

Vercel AI SDK

The module uses the Vercel AI SDK to build a customer-support agent that decides for itself how to answer each question from your support docs. Along the way it covers retrieval, structured outputs, tool calling, agentic routing and web search. The agent runs on an Express server with OpenAI and the Supabase data you create during the course, so its keys stay out of the browser, and running it locally is mostly about getting Node to load them.

These pages accompany the Vercel AI SDK module of Scrimba's AI Engineer Path. They don't replace the lessons; they hold the setup detail that changes faster than a recorded scrim can, so it can be corrected here instead of re-recorded.

The pages

Running the Vercel AI SDK course locally is for when you've downloaded the finished project and want it running on your own machine. It covers what to have ready first, how to connect the Express server to OpenAI and Supabase and start the agent, and the errors you are most likely to hit on the way.

Looking for a different course?

Run an AI course project locally lists every course and project that has a setup guide.

Build the support agent on ScrimbaBuild and ship the customer-support agent lesson by lesson in Scrimba's Build a Support Agent with Vercel AI SDK course.