An AI-powered chatbot built using Next.js and OpenAI's Gemini API.
- Clone the repo:
git clone https://github.com/abrogo/chatbot-ai.git
- Navigate to the project folder:
cd chatbot-ai
- Install dependencies:
npm install
- Set up environment variables in a .env.local file:
NEXT_PUBLIC_GOOGLE_GEMINI_API_KEY=your-api-key-here
- Run the project:
npm run dev
- Generate Google Gemini API key (https://aistudio.google.com/prompts/apikey)
- Create a
.env.local
file in the root directory. - Add the following variables:
NEXT_PUBLIC_GOOGLE_GEMINI_API_KEY=your-api-key
- Start the app with
npm run dev
- Open
http://localhost:3000
in your browser. - Type a message and get responses from the AI chatbot.