Skip to content

An example repo using the Clerk Agent Toolkit to build a simple chatbot

Notifications You must be signed in to change notification settings

clerk/agent-toolkit-example

Repository files navigation


Clerk Agent Toolkit Example

Important - Work in progress

This repository and the @clerk/agent-toolkit package are still in development and the public API is subject to change.

Introduction

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.

Getting Started

  1. Clone this repository.
  2. Copy .env.example to .env.local and fill in the required environment variables.
  3. Run pnpm install to install the dependencies.
  4. Run pnpm dev to start the development server.

Navigating the app

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 and app/ai-sdk/page.tsx: The Vercel AI SDK integration.
  • app/api/agent-toolkit/route.ts and app/agent-toolkit/page.tsx: The Clerk Agent Toolkit integration.

Vercel AI SDK RAG Guide Starter Project

This repo is a simplified version of the Vercel AI SDK RAG Guide Starter Project. For more details, visit the Vercel AI SDK documentation.

About

An example repo using the Clerk Agent Toolkit to build a simple chatbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published