Skip to main content

create-ai-chatbot

PyPI version npm version License: MIT Python 3.10+

Scaffold a full-stack AI chatbot project in seconds. Stop rebuilding the same chatbot architecture — start customizing.

# Via PyPI
pip install create-ai-chatbot
create-ai-chatbot my-chatbot

# Via npm
npx create-ai-chatbot my-chatbot

Chatbot Demo

What you get

A production-ready chatbot with:

  • Backend: FastAPI with streaming SSE endpoint (/chat)
  • Frontend: Vite + React with a floating chat widget
  • LLM: OpenRouter (supports 100+ models, free tier available)
  • Deploy: Ready for Render (backend) + Vercel (frontend)

Interactive setup

$ create-ai-chatbot
==================================================
  create-ai-chatbot
  Full-stack AI chatbot scaffolding tool
==================================================

project_name [my-ai-chatbot]:
project_slug [my-ai-chatbot]:
description [AI Chatbot powered by OpenRouter]:
backend [fastapi]:
frontend [vite-react]:
llm_provider [openrouter]:
theme [dark-minimal]:

Quick start after scaffolding

cd my-chatbot

# Terminal 1 — Backend
cd backend
cp .env.example .env
# Edit .env: add your OPENROUTER_API_KEY (free at https://openrouter.ai/keys)
pip install -r requirements.txt
python -m uvicorn main:app --reload

# Terminal 2 — Frontend
cd frontend
npm install
npm run dev

Open http://localhost:3000 — click the chat button in the bottom-right.

Deploy

Backend → Render

Deploy to Render

  1. Push to GitHub
  2. Create new Web Service on Render
  3. Build: cd backend && pip install -r requirements.txt
  4. Start: cd backend && python -m uvicorn main:app --host 0.0.0.0 --port $PORT
  5. Add env var: OPENROUTER_API_KEY

Frontend → Vercel

Deploy with Vercel

  1. Import repo on Vercel
  2. Set root directory to frontend
  3. Add env var: VITE_API_URL = your Render backend URL

Customization

Change the system prompt

Edit backend/data/system_prompt.py:

SYSTEM_PROMPT = """You are a real estate assistant for Acme Properties.
Help users find apartments, schedule viewings, and answer questions."""

Change the model

Edit backend/.env:

OPENROUTER_MODEL=anthropic/claude-3.5-sonnet

Or any model from https://openrouter.ai/models.

Add tools

Edit backend/main.py to add function-calling tools. The streaming SSE format supports tool calls via OpenRouter's OpenAI-compatible API.

Change the theme

Edit frontend/tailwind.config.js to customize colors, fonts, and styling.

Project structure

my-chatbot/
├── backend/
│   ├── main.py              # FastAPI app with /chat and /health
│   ├── config.py            # Settings via pydantic-settings
│   ├── schemas.py           # Pydantic request/response models
│   ├── services/
│   │   └── llm.py           # LLM service with streaming
│   ├── data/
│   │   └── system_prompt.py # Your system prompt
│   ├── requirements.txt
│   ├── .env.example
│   └── render.yaml          # Render deployment config
├── frontend/
│   ├── src/
│   │   ├── App.tsx
│   │   ├── main.tsx
│   │   ├── index.css
│   │   └── components/
│   │       └── Chat.tsx     # Floating chat widget
│   ├── index.html
│   ├── package.json
│   ├── vite.config.ts
│   ├── tailwind.config.js
│   ├── tsconfig.json
│   └── tsconfig.node.json
├── .gitignore
└── README.md

Supported configurations

Option Choices
Backend fastapi
Frontend vite-react
LLM Provider openrouter (default), openai
Theme dark-minimal (default)

Why this exists

I built the same chatbot architecture three times — for a real estate company, a hackathon, and a client project. Every time: FastAPI backend, React frontend, OpenRouter for LLM, streaming SSE, floating chat widget. The only thing that changed was the system prompt and the tools.

So I packaged it. Now you can go from zero to a deployed AI chatbot in under 5 minutes.

Contributing

PRs welcome! Areas we'd love help with:

  • Next.js App Router template option
  • Anthropic Claude direct integration
  • Pre-built tool templates (RAG, web search, database)
  • Additional themes

License

MIT

Metadata

Release files for create-ai-chatbot 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for create-ai-chatbot 0.1.0
File Size Uploaded Provenance Actions
create_ai_chatbot-0.1.0.tar.gz 16.4 kB Without provenance Details for create_ai_chatbot-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for create-ai-chatbot 0.1.0
File Interpreter ABI Platform Actions
create_ai_chatbot-0.1.0-py3-none-any.whl Python 3 none any Details for create_ai_chatbot-0.1.0-py3-none-any.whl

Total release size: 38.5 kB

Release files / create_ai_chatbot-0.1.0.tar.gz

Download URL create_ai_chatbot-0.1.0.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d027484c5085b0278dfbc911c187ed8263f561671eb9e6e53a57f6669af73ae2
BLAKE2b-256 checksum
How to use checksums
6ee31a19eea47dbc67ddb4dc9483acee0b92975456dc4193ce72215bc7fa7453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / create_ai_chatbot-0.1.0-py3-none-any.whl

Download URL create_ai_chatbot-0.1.0-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c2e284510fbd346626e7d2e1f2da186837b39e6aff83d5aa99803fded0da09f
BLAKE2b-256 checksum
How to use checksums
c271653a35c85bad031dfa5ca3cbd8df3cc8036e984bb8d3c3ec18e5cde0ba3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for create-ai-chatbot 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page