π΄ββ οΈ Chat
𧱠Structured Output
π¦ Agents
πΆ Retrieval
π€ Retrieval Agents
π React Server Components
πΈοΈ LangGraph
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