This repository and the @clerk/agent-toolkit package are still in development and the public API is subject to change.
In this project, you will build a simple chatbot that updates the signed-in user's metadata with knowledge from the discussion, similar to the ChatGPT "Memory" feature. When asked, the chatbot will only respond with the information it knows about the current user. The chatbot will be able to both store and retrieve information.
- Clone this repository.
- Copy
.env.example
to.env.local
and fill in the required environment variables. - Run
pnpm install
to install the dependencies. - Run
pnpm dev
to start the development server.
The app was kept as simple as possible to focus on the agent toolkit integration. The main components are:
app/api/ai-sdk/route.ts
andapp/ai-sdk/page.tsx
: The Vercel AI SDK integration.app/api/agent-toolkit/route.ts
andapp/agent-toolkit/page.tsx
: The Clerk Agent Toolkit integration.
This repo is a simplified version of the Vercel AI SDK RAG Guide Starter Project. For more details, visit the Vercel AI SDK documentation.