Skip to content

mr-flowjangles/bot-factory-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bot Factory Logo

Bot Factory UI

A lightweight, customizable frontend template for building chatbot interfaces.
Fork it, configure it, and connect it to your own backend.


How It Works

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.


Quick Start

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 up

Open http://localhost:3000 to see your bot.

Commands

Command Description
make up Start the dev server
make down Stop all services
make build Rebuild images (no cache)
make logs Tail container logs

Configuration

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...'
};

Project Structure

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

Connecting Your Backend

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" }

Accessibility

This template includes Pa11y for Section 508 / WCAG compliance testing. The GitHub Actions workflow runs accessibility checks on every push.

Forking for Your Own Bot

  1. Fork this repo
  2. Update app/index.html with your bot's branding
  3. Point apiUrl to your backend
  4. Deploy however you like (ECS, Vercel, a VPS, etc.)

License & Attribution

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.

About

Frontend Configuration for the bot factory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors