Skip to content

This is an example Gen AI app built with Langgraph.js, Next.js and Vercel's AI SDK

License

Notifications You must be signed in to change notification settings

lokeswaran-aj/next-langgraph-example

Repository files navigation

Generative AI app built with Langgraph.js and Next.js

This is a simple app that demonstrates how to build a generative AI app with Langgraph.js, Next.js and Vercel AI SDK with streaming support.

Please leave a ⭐️ if you like the project!

Features

Chat completions with history

Try out the chat completions with history demo at https://next-langgraph-example.vercel.app/chat

Chat completions with history

Simple chat completions

Try out the simple chat completion demo at https://next-langgraph-example.vercel.app/completion

Simple chat completions

How to run locally

  1. Copy the .env.example file to .env and set the environment variables.
cp .env.example .env
  1. Run the development server:
npm run dev

Future work

  • Add simple chat completion
  • Add chat completions with history
  • Add tool calling
  • Add Generative UI with tool calling