🏴☠️ Chat
🧱 Structured Output
🦜 Agents
🐶 Retrieval
🤖 Retrieval Agents
🌊 LangChain x AI SDK RSC
Open in GitHub
▲
+
🦜🔗
🤝
This template showcases a simple chatbot using
LangChain.js
and the Vercel
AI SDK
in a
Next.js
project.
💻
You can find the prompt and model logic for this use-case in
app/api/chat/route.ts
.
🏴☠️
By default, the bot is pretending to be a pirate, but you can change the prompt to whatever you want!
🎨
The main frontend logic is found in
app/page.tsx
.
👇
Try asking e.g.
What is it like to be a pirate?
below!
Send