🏴☠️ Chat
🧱 Structured Output
🦜 Agents
🐶 Retrieval
🤖 Retrieval Agents
🌊 LangChain x AI SDK
✨ Generative UI
🏴☠️ Patchy the Chatty Pirate
▲ Next.js + LangChain.js 🦜🔗
🤝
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
.
🐙
This template is open source - you can see the source code and deploy your own version
from the GitHub repo
!
👇
Try asking e.g.
What is it like to be a pirate?
below!
Loading...
Send