A lightweight, customizable frontend template for building chatbot interfaces.
Forked and customized to connect to a compatible chat backend.
Originally forked from Bot Factory UI.
This repository is a fork of Bot Factory UI, a frontend template for building chatbot interfaces.
- This fork: your UI + your branding + your backend wiring
- Upstream template: Bot Factory UI (linked above)
If you want the “canonical” version or to compare changes, check upstream.
This UI is designed to work with a backend chat API. By default, it expects a simple JSON contract:
Sends:
{ "message": "user's question" }Receives:
{ "response": "bot's answer" }You can point it at any backend that matches that contract.
Prerequisites: Docker and Docker Compose
# Clone your fork
git clone <YOUR_FORK_URL>
cd <YOUR_REPO_NAME>
# 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 CONFIGURABLE comments.
<title>YourBot — Your Bot Description</title><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><a href="#topic-1"><span class="nav-icon">📖</span> Topic 1</a>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 (if present)
├── docker-compose.yml
└── Makefile
The frontend expects a POST endpoint at the URL you configure in BOT_CONFIG.apiUrl.
Request:
{ "message": "user's question" }Response:
{ "response": "bot's answer" }If your backend uses a different shape (streaming, tokens, SSE, etc.), update the JS in app/bot_scripts/.
This repo is a fork of Bot Factory UI. Please retain attribution to the upstream project:
If you publish/deploy this fork, it’s good practice to include a short credit line somewhere visible (README, About page, or footer).
