ChatterBot is a simple chatbot application built with Next.js, TypeScript, and Tailwind CSS. It utilizes Ollama to provide conversational responses.
- Clone this repository to your local machine.
- Navigate to the project directory.
- Install dependencies using pnpm:
pnpm install
Before running the application, ensure you have installed Ollama and acquired a model. Within this project, the "Mistral" model is utilized. If you wish to employ a different model, refer to the Customization section for instructions.
To run the application locally:
- Run Ollama with Mistral Model
ollama run mistral
- Start the development server:
pnpm dev- Open your browser and navigate to
http://localhost:3000.
If you want to customize the chatbot's behavior or appearance, you can modify the code accordingly. Here are some points to consider:
- Changing the model: You can replace the model used by the chatbot by modifying the
route.tsfile in thesrc/app/apidirectory.
model: "mistral",- Styling: Tailwind CSS is used for styling the UI components. You can modify the styles in the
globals.cssfile or add additional stylesheets as needed. - Adding features: Feel free to extend the functionality of the chatbot by adding new features or integrating with other APIs.