| .. | ||
| assets | ||
| first-conversation.md | ||
| installation.md | ||
| nvidia-gpu-setup.md | ||
| overview.md | ||
| quick-start.md | ||
| README.md | ||
| sessions.md | ||
Chapter 01: Run and Talk
Welcome to General Bots - your journey to AI independence starts here. In a world dominated by expensive, proprietary AI solutions, General Bots offers a refreshing alternative: a complete, open-source AI platform that you control entirely.
Why General Bots?
Before diving into installation, let's understand what makes General Bots different:
-
Complete Ownership: Unlike SaaS solutions that lock your data in the cloud, General Bots runs on your infrastructure. Your conversations, your data, your rules.
-
Zero-to-AI in Minutes: Our bootstrap process sets up everything - database, storage, vector search, and AI models - with a single command. No DevOps expertise required.
-
Cost-Effective: Running your own AI infrastructure can be 10x cheaper than cloud services at scale.
-
Privacy First: Your data never leaves your servers. Perfect for healthcare, finance, or any privacy-conscious application.
The One-Command Install
./botserver
That's literally it. First run triggers auto-bootstrap that:
- Installs PostgreSQL, cache, storage, vector DB
- Downloads AI models
- Creates default bot
- Starts UI server
Takes 2-5 minutes. Grab coffee. Come back to a running bot.
Your First Chat
Once bootstrap finishes:
- Open browser to
http://localhost:8080 - Write a simple tool (see below)
- Bot responds using GPT-3.5 (or local model)
No configuration. No API keys (for local). It just works.
What's Actually Happening
Behind that simple ./botserver command:
Installing PostgreSQL 16.2... ✓
Installing Valkey cache... ✓
Installing SeaweedFS storage... ✓
Installing Qdrant vectors... ✓
Downloading embeddings... ✓
Creating database schema... ✓
Generating secure credentials... ✓
Loading bot templates... ✓
Starting UI server on :8080 ✓
Everything lands in botserver-stack/ directory. Fully self-contained.
Make Your Own Bot in 2 Minutes
Step 1: Create Package
mkdir templates/my-bot.gbai
mkdir templates/my-bot.gbai/my-bot.gbdialog
Step 2: Write Start Script
cat > templates/my-bot.gbai/my-bot.gbdialog/start.bas << 'EOF'
TALK "Hi! I'm your personal assistant."
TALK "What can I help you with?"
answer = HEAR
TALK "I can help you with: " + answer
EOF
Step 3: Restart & Test
./botserver restart
# Visit http://localhost:8080/my-bot
Your bot is live.
Adding Intelligence
Give It Knowledge
Drop PDFs into knowledge base:
mkdir templates/my-bot.gbai/my-bot.gbkb
cp ~/Documents/policies.pdf templates/my-bot.gbai/my-bot.gbkb/
Bot instantly answers questions from your documents.
Give It Tools
Create a tool for booking meetings:
cat > templates/my-bot.gbai/my-bot.gbdialog/book-meeting.bas << 'EOF'
PARAM person, date, time
DESCRIPTION "Books a meeting"
SAVE "meetings.csv", person, date, time
TALK "Meeting booked with " + person + " on " + date
EOF
Now just say "Book a meeting with John tomorrow at 2pm" - AI handles the rest.
Optional Components
Want email? Video calls? Better models?
./botserver install email # Full email server
./botserver install meeting # Video conferencing
./botserver install llm # Local AI models
Each adds specific functionality. None required to start.
File Structure After Bootstrap
botserver-stack/
postgres/ # Database files
valkey/ # Cache data
seaweedfs/ # Object storage
qdrant/ # Vector database
models/ # Embeddings
templates/
default.gbai/ # Default bot
my-bot.gbai/ # Your bot
.env # Auto-generated config
Troubleshooting Quick Fixes
Port already in use?
HTTP_PORT=3000 ./botserver
Bootstrap fails?
./botserver cleanup
./botserver # Try again
Want fresh start?
rm -rf botserver-stack .env
./botserver
Check what's running:
./botserver status
See Also
Documentation
- Overview - Architecture and concepts
- Quick Start - Get running in 5 minutes
- Installation - Detailed setup instructions
- First Conversation - Build your first bot
- Sessions and Channels - Multi-user support
- Chapter 2: Packages - Understanding bot components
Further Reading - Blog Posts
- Why We Chose Open Source - Philosophy behind General Bots
- Escape from BigTech - Breaking free from proprietary AI platforms
- Cost-Effective Bot Orchestration - Economic benefits of self-hosting
- The Hidden Costs of SaaS - Why owning your stack matters
- LLM Boom Is Over - Focus on practical AI applications
Next Chapter
Continue to Chapter 2: About Packages to learn about the template system that makes General Bots so powerful.
- Chapter 3: Knowledge Base - Document management
- Chapter 5: BASIC Reference - Complete command list
Container Deployment
Prefer containers? Use LXC mode:
./botserver --container
Creates isolated LXC containers for each component. Same auto-bootstrap, better isolation.
What You've Learned
✅ BotServer installs itself completely
✅ Default bot works immediately
✅ Create new bots in minutes
✅ Add documents for instant knowledge
✅ Write tools for custom actions
Next Steps
- Quick Start - Build a real bot
- Installation Details - How bootstrap works
- First Conversation - Chat interface tour
- Sessions - How conversations persist
The Philosophy
We believe setup should be invisible. You want a bot, not a DevOps degree. That's why everything auto-configures. Focus on your bot's personality and knowledge, not infrastructure.
Ready for more? Continue to Quick Start to build something real.