This project creates a custom AI chatbot that uses your website content as a knowledge base. The chatbot can be embedded on your website to provide instant answers to visitor questions and help convert more leads.
- Website Content Knowledge Base: Uses your designerofcontent.com content to answer questions
- Retrieval-Augmented Generation (RAG): Combines your content with AI to provide accurate, relevant answers
- Customizable Chat Widget: Easy to integrate into your website
- Admin Panel: Add new content and manage the knowledge base
- Monetization Options: Ready-to-use pricing plans for offering the chatbot as a service
designerchat/
├── backend/ # Node.js backend server
│ ├── models/ # Database models
│ ├── routes/ # API routes
│ ├── utils/ # Utility functions
│ └── server.js # Main server file
├── data/ # Website content storage
│ ├── home.txt # Content from homepage
│ ├── blog.txt # Content from blog
│ └── ... # Other content files
├── frontend/ # React frontend
│ ├── public/ # Static files
│ └── src/ # React components
│ ├── components/ # UI components
│ └── App.js # Main application
└── README.md # This file
- Node.js (v14 or higher)
- npm or yarn
- OpenAI API key
-
Navigate to the backend directory:
cd backend -
Install dependencies:
npm install -
Create a
.envfile in the backend directory with the following variables:PORT=5000 OPENAI_API_KEY=your_openai_api_key_here NODE_ENV=development -
Start the backend server:
npm run dev
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Create a
.envfile in the frontend directory:REACT_APP_API_URL=http://localhost:5000/api -
Start the frontend development server:
npm start
- Start both the backend and frontend servers
- Navigate to
http://localhost:3000/admin - Use the admin panel to add content from your website
- The system will process the content and make it available to the chatbot
- Visit
http://localhost:3000to see the chatbot in action - Click the chat icon in the bottom right corner
- Ask questions about your services, products, or business
To deploy the chatbot to your website:
-
Build the frontend:
cd frontend npm run build -
Deploy the backend to a hosting service like Render, Heroku, or AWS
-
Deploy the frontend build folder to your web hosting
-
Add the chat widget script to your website:
<script src="https://your-chatbot-url.com/widget.js"></script>
The project includes a ready-to-use monetization page with three pricing tiers:
- Basic Plan: $9.99/month
- Professional Plan: $29.99/month
- Enterprise Plan: $99.99/month
You can customize these plans in the MonetizationPage.js component.
You can customize the appearance of the chatbot by editing:
frontend/src/components/ChatWidget.jsfrontend/src/index.css
To adjust how the AI responds, modify:
backend/routes/chat.js
For any questions or issues, please contact:
- Email: [email protected]
- Phone: 774-206-5089