https://github.com/developersdigest/agent-based-chatbot-with-langchain-and-next.js
Agent-Based Chatbot with Langchain and Next.js
https://github.com/developersdigest/agent-based-chatbot-with-langchain-and-next.js
Last synced: 5 months ago
JSON representation
Agent-Based Chatbot with Langchain and Next.js
- Host: GitHub
- URL: https://github.com/developersdigest/agent-based-chatbot-with-langchain-and-next.js
- Owner: developersdigest
- Created: 2023-08-07T20:32:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-07T20:39:42.000Z (over 2 years ago)
- Last Synced: 2025-05-15T04:33:38.461Z (10 months ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Building an Agent-Based Chatbot with Langchain and Next.js in 15 Minutes
This project demonstrates how to create an agent-based chatbot using Langchain and Next.js. The chatbot utilizes OpenAI's GPT-3 model for natural language processing and incorporates various tools for fetching information from external sources like Wikipedia and CoinGecko.
This project is based on the YouTube video "Building an Agent-Based Chatbot with Langchain and Next.js in 15 Minutes" by [Your YouTube Channel Name](https://youtu.be/qVM2BhAnKqo).
## Initial Setup Instructions
1. Clone the repository from this link: `https://github.com/vercel-labs/ai/tree/main/examples/next-openai`
2. Get an API key from OpenAI platform: `https://platform.openai.com/account/api-keys`
3. Upgrade langchain to the latest version using npm: `npm update langchain@latest`
4. Remove the ".example" from the ".env.local" file
5. OPTIONAL: Go to `https://smith.langchain.com/`, create a new project, and put environment variables into the ".env" file
6. Get your API key from langsmith.com and put it into the ".env" file