A modern, interactive AI chatbot interface for Xnerds, built with Next.js and powered by Anthropic's Claude AI.
- 🤖 AI-powered responses using Claude 3 Opus
- 💬 Real-time chat interface with typing indicators
- 🎨 Modern, responsive UI with dark theme
- 📱 Mobile-friendly design
- 🔄 Context-aware conversations
- 📝 Markdown support for messages
- Framework: Next.js 14
- UI Components: Shadcn UI
- AI Integration: Anthropic Claude 3 Opus
- Styling: Tailwind CSS
- State Management: React Hooks
- Node.js 18.x or later
- npm or yarn
- Anthropic API key
- Clone the repository:
git clone https://github.com/yourusername/xnerdsbot.git
cd xnerdsbot- Install dependencies:
npm install
# or
yarn install- Create a
.env.localfile in the root directory and add your Anthropic API key:
NEXT_PUBLIC_ANTHROPIC_API_KEY=your_api_key_here- Start the development server:
npm run dev
# or
yarn dev- Open http://localhost:3000 in your browser.
xnerdsbot/
├── app/
│ ├── components/ # React components
│ ├── lib/ # Utility functions and AI integration
│ └── page.js # Main application page
├── public/ # Static assets
└── styles/ # Global styles
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run format- Format code with Prettier
The chatbot's knowledge base is defined in app/lib/knowledge-base.js. You can update this file to modify the information the chatbot has access to.
The application uses Tailwind CSS for styling. You can modify the styles in:
app/globals.cssfor global styles- Component-specific styles in their respective files
Here are some example questions you can ask the chatbot:
-
About the Company:
- "What is Xnerds?"
- "When was Xnerds founded?"
- "What is Xnerds' mission?"
-
About Services:
- "What services does Xnerds offer?"
- "Tell me about Xnerds' AI Development services"
- "What are the features of Xnerds' Software Development services?"
-
About Expertise:
- "What are Xnerds' areas of expertise?"
- "What technologies does Xnerds work with?"
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Anthropic for the Claude AI API
- Next.js for the framework
- Shadcn UI for the component library
- Tailwind CSS for styling