Documentation
Everything you need to know about setting up and using BotFusion.
Full Documentation
Introduction to BotFusion
BotFusion is a self-hosted, open-source AI chatbot platform that allows you to create intelligent chatbots powered by your own content - websites, PDFs, and documents. With complete control over your data and AI models, BotFusion provides a privacy-focused solution for enhancing customer support and engagement.
System Requirements
To run BotFusion, you'll need:
- Node.js 18.0 or higher
 - MongoDB database
 - API key from an AI provider (OpenAI, Gemini, Anthropic, etc.)
 - Minimum 2GB RAM for the application server
 
Installation
Follow these steps to install BotFusion:
- Clone the repository: 
git clone https://github.com/anands2959/botfusion.git - Navigate to the project directory: 
cd botfusion - Install dependencies: 
npm install - Set up environment variables (see Configuration section)
 - Initialize the database: 
npx prisma migrate dev - Start the development server: 
npm run dev 
Configuration
Create a .env file in the root directory with the following variables:
DATABASE_URL="mongodb://username:password@localhost:27017/botfusion" 
NEXTAUTH_URL="http://localhost:3000" 
NEXTAUTH_SECRET="your-secret-key" 
OPENAI_API_KEY="your-openai-api-key" 
GEMINI_API_KEY="your-gemini-api-key" 
ANTHROPIC_API_KEY="your-anthropic-api-key" 
 
# Optional: Configure email for verification 
EMAIL_SERVER_HOST="smtp.example.com" 
EMAIL_SERVER_PORT=587 
EMAIL_SERVER_USER="your-email@example.com" 
EMAIL_SERVER_PASSWORD="your-email-password" 
EMAIL_FROM="noreply@yourdomain.com" 
For more detailed configuration options, please refer to the Configuration Guide.
Need More Help?
Our team is here to help you get the most out of BotFusion.