Live demo Β· Quick start Β· Wiki Β· Telegram assistant Β· Android APK Β· Π ΡΡΡΠΊΠΈΠΉ
The product UI speaks Russian, English and Kazakh. Example data is made up.
Small sales teams live in messengers. A client writes Β«send me a quote for 12 breakers and 100 m of cableΒ», and a manager spends 20 minutes digging through the catalog, copying SKUs and adding up totals. Generic AI chatbots are fast, but they make up prices and stock, so nobody lets them talk to clients alone.
AI Secretary does the boring part and leaves the decision with a person. Everything runs on your own server, with a local LLM if you want full privacy.
- The assistant notices Β«send me a quoteΒ» in a WhatsApp dialogue by itself, with no commands.
- It extracts items and quantities, looks each one up in the live catalog and builds a draft offer.
- The manager gets a card in Telegram: what the client asked for, what was matched (with the client's own wording next to each line), what was left out, and the text for the client.
- β Send Β· βοΈ Edit text Β· β Cancel: inline buttons in Telegram, or a numbered menu under the card on a service WhatsApp number (reply Β«1Β» to send). The messenger becomes the admin panel.
- Follow-up timers: Β«not approved yetΒ», Β«client hasn't opened itΒ», Β«opened and silentΒ», Β«expires soonΒ».
β How it works Β· User guide
- Product search returns an empty list when nothing matches, so the model has no gap to fill with a made-up item or price.
- Β«In stockΒ» is shown only for confirmed stock. Supplier names and purchase prices are visible to managers only.
- Client memory carries a client card across dialogues (who they are, what they asked for, what they got), and code strips every price and stock line out of it.
- A human approves every send. A double tap won't send twice.
β Procurement & search Β· Client memory
Schematic of the chat screen.
- Branching dialogues. Editing a question or regenerating an answer starts a new branch. The branch tree panel shows every version and switches between them; nothing is lost.
- Per-session system prompt and context files (
.md,.csv,.json, codeβ¦) that go into every request of that session. - Summarize branch β context file. Compress a long thread into a summary and keep working from a clean branch.
- Switch the model and knowledge base on the fly: local Qwen/Llama, Claude, GPT, Gemini, DeepSeek⦠plus RAG collections per session.
- Context-window meter, streaming Markdown, voice input and voice replies, zen full-screen mode, export to
.md/.json. - Share a chat with a colleague; they see only the branch you shared.
β Chat guide
- Local LLM via vLLM (Qwen2.5-7B, Llama-3.1-8B, DeepSeek) on a single RTX 3060 12 GB.
- Voice cloning with XTTS v2 and OpenVoice, fast CPU voices with Piper, speech-to-text with Vosk (streaming) and Whisper.
- LoRA fine-tuning on an exported Telegram chat, with hot-swappable adapters.
- Cloud LLMs are optional. There's an honest privacy table on what a cloud provider gets to see.
- Cloud providers: Gemini, OpenAI, Claude, DeepSeek, Kimi, OpenRouter, or anything OpenAI-compatible.
- Claude Code CLI bridge. Use Claude Code as an OpenAI-compatible backend, with an isolated
HOMEand per-user token tracking. - An OpenAI-compatible API of its own (
/v1/chat/completions), so it plugs into OpenWebUI and similar tools.
β LLM & prompts
- Telegram and WhatsApp bots, as many instances as you need, each with its own model, prompt and voice. WhatsApp runs via the Meta Cloud API or a self-hosted QR-linked bridge.
- Website chat widgets, several per installation.
- A real phone line. A SIM7600 GSM modem lets the assistant answer calls and SMS.
- Android app with private sessions and ready-made assistants (marketer, developer, lawyer, accountant).
- Sales funnel, payments (YooMoney, Telegram Stars), amoCRM, Kanban with a Gantt roadmap, Wiki-RAG over Google Drive and RSS.
- Admin panel: Vue 3 PWA, RBAC with workspaces, audit log, 3 themes, ru / en / kk.
CPU mode (no GPU; uses a cloud LLM):
git clone https://github.com/ShaerWare/AI_Secretary_System
cd AI_Secretary_System
cp .env.docker.example .env # set GEMINI_API_KEY, or add any provider later in the panel
docker compose -f docker-compose.yml -f docker-compose.cpu.yml up -d
# create your admin account (admin/admin in the panel always opens the offline demo)
docker exec ai-secretary python scripts/manage_users.py create owner 'a-strong-password' --role adminOpen http://localhost:8002/admin and sign in as owner.
GPU mode (local LLM, voice cloning): docker compose up -d with a local vLLM, or docker compose -f docker-compose.yml -f docker-compose.full.yml up -d for everything in containers. Requirements and details: Installation.
Just looking? The live demo opens the admin panel with sample data (admin / admin).
βββββββββββββββββ Orchestrator (FastAPI, :8002) βββββββββββββββββ
Telegram βββΆ β chat Β· knowledge/RAG Β· CRM Β· ΠΠ/outbound Β· procurement Β· ... β βββ Vue 3 admin (PWA)
WhatsApp βββΆ β EventBus Β· TaskRegistry Β· SQLite + Redis Β· RBAC/workspaces β βββ Android app
Widget βββΆ βββββββββ¬βββββββββββββββββββββ¬βββββββββββββββββββββ¬βββββββββββββββ
Phone βββΆ β β β
LLM: vLLM / cloud / TTS: XTTS v2 / STT: Vosk /
Claude Code bridge OpenVoice / Piper Whisper
The interactive architecture map and the architecture docs cover the rest.
Parts of the system that run on their own are published as separate repositories. They are read-only mirrors, synced from this repo on every merge, so issues and PRs go here.
| Project | What it is | Source here |
|---|---|---|
| cli-openai-bridge | Claude Code, Gemini CLI and Shell-GPT as an OpenAI-compatible API | services/bridge |
| whatsapp-qr-bridge | Self-hosted WhatsApp provider: a phone linked by QR β REST + signed webhooks | services/whatsapp-bridge |
| ai-chat-widget | Embeddable AI chat for any website, one script tag | web-widget |
| Wiki | User guides for every admin section |
| docs/arch/ | Architecture by topic: backend, channels, ΠΠ, RAG, procurement, deployment |
| docs/REFERENCE.ru.md | Full reference: API, environment variables, database, troubleshooting (RU) |
| CHANGELOG.md | What changed |
Issues and PRs are welcome, in English or Russian. Start with CONTRIBUTING.md, look for good first issue, or ask in Discussions. Please report security problems privately, as described in SECURITY.md.
If the project is useful to you, a β helps others find it.