A lightweight, customizable frontend template for building chatbot interfaces.
Fork it, configure it, and connect it to your own backend.
Bot Factory UI is the frontend component designed to work with Bot Factory — the backend that handles RAG, embeddings, and chat responses.
| Repo | Purpose |
|---|---|
| bot-factory | Backend API (Python/FastAPI, vector search, Claude integration) |
| bot-factory-ui | Frontend template (this repo) |
You can use this UI with any backend that implements the expected API contract, but it's built to pair with Bot Factory out of the box.
Prerequisites: Docker and Docker Compose
# Clone the repo
git clone https://github.com/mr-flowjangles/bot-factory-ui.git
cd bot-factory-ui
# Start the dev server
make upOpen http://localhost:3000 to see your bot.
| Command | Description |
|---|---|
make up |
Start the dev server |
make down |
Stop all services |
make build |
Rebuild images (no cache) |
make logs |
Tail container logs |
All customization happens in app/index.html. Look for the CONFIGURABLE comments:
1. Bot Identity
<title>YourBot — Your Bot Description</title>2. Header
<img src="img/your-logo.png" alt="Logo" class="header-image">
<div class="header-title">YourBot</div>
<div class="header-subtitle">A short description of what your bot does</div>3. Navigation
<a href="#topic-1"><span class="nav-icon">📖</span> Topic 1</a>4. API Endpoint
window.BOT_CONFIG = {
apiUrl: '/api/your_bot',
botName: 'YourBot',
placeholder: 'Ask a question...'
};bot-factory-ui/
├── app/ # Frontend files
│ ├── index.html # Main template (edit this)
│ ├── bot_styles/ # CSS
│ ├── bot_scripts/ # Chat + navigation JS
│ └── img/ # Your logo/images
├── nginx/ # Nginx config
├── .github/workflows/ # CI/CD (Pa11y accessibility tests)
├── docker-compose.yml
└── Makefile
The frontend expects a POST endpoint at the URL you configure in BOT_CONFIG.apiUrl. It sends:
{ "message": "user's question" }And expects:
{ "response": "bot's answer" }This template includes Pa11y for Section 508 / WCAG compliance testing. The GitHub Actions workflow runs accessibility checks on every push.
- Fork this repo
- Update
app/index.htmlwith your bot's branding - Point
apiUrlto your backend - Deploy however you like (ECS, Vercel, a VPS, etc.)
This project is free to use, modify, and distribute. If you use Bot Factory UI in your project, please give credit by including a link back to this repo or mentioning the original author.
Example attribution:
Built with Bot Factory UI by Rob Rose
Created by Rob Rose
Software engineer, blues guitarist, and builder of chatbots.
