A free, open-source AI assistant that understands text and voice commands, manages calendar events, and is accessible across multiple platforms.Ein kostenloser, Open-Source KI-Assistent, der Text- und Sprachbefehle versteht, Kalender-Termine verwaltet und รผber verschiedene Plattformen erreichbar ist.
-
๐ค AI-Driven Conversation โ All messages processed through AI with context awareness- โ Telegram Bot Integration โ Steuerung รผber Telegram-Nachrichten
-
๐ฌ Context Management โ Remembers last 10 messages per user (30-minute TTL)- ๐ Google Calendar Integration โ Termine erstellen, lesen und lรถschen
-
๐ Calendar Integration โ Create, read, and manage events with natural language- ๐ค Speech-to-Text โ Sprachnachrichten verstehen (Vosk/Whisper)
-
๐๏ธ Calendar Commands โ
/today,/tomorrow,/week,/nextfor quick overview- ๐ Text-to-Speech โ Antworten als Sprachausgabe (gTTS/Coqui TTS) -
๐ง Natural Language Processing โ German language support for dates and times- ๐ง KI-Modelle โ Kostenfreie Nutzung via Hugging Face & OpenRouter
-
โก Conflict Detection โ Warns about overlapping events- ๐ Privacy-First โ Alle Daten bleiben unter deiner Kontrolle
-
๐ SSL Workaround โ Works behind corporate firewalls (Zscaler)
-
๐ฑ Telegram Bot โ Full integration with command handlers## ๐ Installation
-
๐ฏ Smart Actions โ AI decides whether to create events, list events, or answer questions
- Python 3.10 oder hรถher
-
(Optional) Google Account fรผr Calendar-Integration
-
Python 3.6+ (compatible with corporate environments)
-
Telegram Account### Lokale Installation
-
OpenRouter API Key (for AI)
- Repository klonen
git clone https://github.com/wvusaah/AdonisAI.git
- Clone the repositorycd AdonisAI
bash
git clone https://github.com/WVUSAAH-Copilot-test/AdonisAI.git
cd AdonisAI2. Virtuelle Umgebung erstellen
python -m venv venv
2. **Create virtual environment**source venv/bin/activate # Linux/macOS
```bash# oder
python -m venv venvvenv\Scripts\activate # Windows
source venv/bin/activate # Linux/macOS```
# or
venv\Scripts\activate # Windows3. **Abhรคngigkeiten installieren**
``````bash
pip install -r requirements.txt
3. **Install dependencies**```
```bash
pip install -r requirements.txt4. **Umgebungsvariablen konfigurieren**
``````bash
cp .env.example .env
4. **Configure environment variables**# Bearbeite .env und fรผge deine API-Keys ein
```bash```
cp .env.example .env
# Edit .env and add your API keys:5. **Bot starten**
# - TELEGRAM_BOT_TOKEN (from @BotFather)```bash
# - OPENROUTER_API_KEY (from openrouter.ai)python src/main.py
- Start the bot## ๐ค Telegram Bot einrichten
python run.py1. รffne Telegram und suche nach [@BotFather](https://t.me/botfather)
```2. Sende `/newbot` und folge den Anweisungen
3. Kopiere den Bot-Token
## ๐ค Telegram Bot Setup4. Fรผge den Token in `.env` ein:
-
Open Telegram and search for @BotFather TELEGRAM_BOT_TOKEN=dein_token_hier
-
Send
/newbotand follow the instructions ``` -
Copy the bot token5. Starte den Bot mit
python src/main.py -
Add the token to
.env:6. Suche deinen Bot in Telegram und sende/startTELEGRAM_BOT_TOKEN=your_token_here## ๐ Google Calendar Integration (Optional) -
Start the bot with
python run.py1. Gehe zur Google Cloud Console -
Find your bot in Telegram and send
/start2. Erstelle ein neues Projekt -
Aktiviere die Google Calendar API
- Lade die
credentials.jsonherunter und speichere sie im Projektverzeichnis
Natural Language Event Creation6. Beim ersten Start wird ein Browser geรถffnet fรผr die Autorisierung
You: "Create appointment tomorrow 3 PM meeting with Max"
Bot: โ
Event created! Meeting with Max @ 24.10.2025 15:00### Replit
You: "Schedule dentist next Monday at 10"1. Erstelle ein neues Repl und importiere das Repository
Bot: โ
Event created! Dentist @ 28.10.2025 10:002. Fรผge die Secrets (Umgebungsvariablen) in den Secrets-Tab ein
```3. Klicke auf "Run"
### Context-Aware Conversations### Render.com
```1. Erstelle einen neuen Web Service
You: "Customer Max wants to meet next week Monday or Wednesday"2. Verbinde dein GitHub Repository
Bot: "Which day works better for you?"3. Build Command: `pip install -r requirements.txt`
You: "Wednesday"4. Start Command: `python src/main.py`
Bot: "What time would you prefer?"5. Fรผge Environment Variables in den Settings hinzu
You: "2:30 PM"
Bot: โ
Created "Meeting next Wednesday 2:30 PM with Customer Max"## ๐บ๏ธ Roadmap
- Projektstruktur aufsetzen
/today - Shows today's events
/tomorrow - Shows tomorrow's events### Phase 2: KI-Integration ๐ง
/week - Shows this week's overview- [ ] Hugging Face API anbinden
/next - Shows next upcoming event- [ ] OpenRouter Integration
/features - Shows all available features- [ ] Kontextverstรคndnis implementieren
/help - Shows help message- [ ] Intent-Erkennung fรผr Befehle
- Termine auslesen
-
Termine bearbeiten/lรถschen
-
โ Mock Provider โ Working perfectly for local development- [ ] Natรผrlichsprachliche Datumserkennung
-
๐ iCloud Calendar โ Blocked by corporate network (CalDAV)
-
๐ Google Calendar โ Blocked by corporate network (OAuth)### Phase 4: Sprachverarbeitung ๐ค
-
Speech-to-Text (Vosk) Integration
- Text-to-Speech (gTTS) fรผr Antworten
Once outside the corporate network, you can enable real calendar providers:- [ ] Sprachausgabe-Optimierung
- iCloud Calendar### Phase 5: Erweiterte Features ๐ฎ
# Add to .env:- [ ] Web-UI (Flask/FastAPI)
CALENDAR_PROVIDER=icloud- [ ] Erinnerungen & Notifications
ICLOUD_USERNAME=your@icloud.com- [ ] Multi-User Support
ICLOUD_PASSWORD=app_specific_password- [ ] Konversations-Historie
```- [ ] Plugin-System fรผr Erweiterungen
2. **Google Calendar**## ๐ Projektstruktur
```bash
# Add to .env:```
CALENDAR_PROVIDER=googleAdonisAI/
# Follow OAuth setup in CHANGELOG.mdโโโ README.md
```โโโ .env.example
โโโ requirements.txt
## ๐ข Corporate Network Supportโโโ src/
โ โโโ main.py # Haupteinstiegspunkt
AdonisAI includes an SSL workaround for corporate environments with SSL inspection (Zscaler, etc.):โ โโโ bot/
โ โ โโโ __init__.py
- `ssl_patch.py` automatically patches SSL verificationโ โ โโโ telegram_bot.py # Telegram Bot Logik
- Works with corporate proxy configurationsโ โ โโโ handlers.py # Command Handler
- No manual SSL certificate installation requiredโ โโโ ai/
โ โ โโโ __init__.py
## ๐บ๏ธ Roadmapโ โ โโโ ai_client.py # KI-Client Interface
โ โ โโโ hf_provider.py # Hugging Face Provider
### Phase 3 (Current) โ
โ โ โโโ openrouter_provider.py # OpenRouter Provider
- [x] Phase 3.1: Calendar Foundation (Abstract client, 3 providers)โ โโโ calendar/
- [x] Phase 3.2: CRUD Operations (Create, Read, Update, Delete)โ โ โโโ __init__.py
- [x] Phase 3.3: NLP Enhancements (German natural language)โ โ โโโ calendar_client.py # Google Calendar API
- [x] Phase 3.4: Bot Integration (Commands, conflict detection)โ โโโ speech/
- [x] Phase 3.5: AI Enhancements (Context management, AI-driven processing)โ โ โโโ __init__.py
- [ ] Phase 3.6: Testing & Documentation (Real calendar tests, Siri Shortcuts)โ โ โโโ stt_vosk.py # Speech-to-Text
โ โ โโโ tts_gtts.py # Text-to-Speech
### Phase 4: Advanced Features ๐ฎโ โโโ storage/
- [ ] Multi-calendar support (personal, work, shared)โ โ โโโ __init__.py
- [ ] Smart scheduling (find free slots automatically)โ โ โโโ store.py # Datenbank/Storage
- [ ] Recurring events supportโ โโโ utils/
- [ ] Event reminders and notificationsโ โโโ __init__.py
- [ ] Calendar sharing and permissionsโ โโโ nlp_utils.py # NLP Hilfsfunktionen
- [ ] Time zone supportโโโ tests/
โโโ ...
### Phase 5: Platform Expansion ๐```
- [ ] Siri Shortcuts integration (iOS)
- [ ] Web UI (Flask/FastAPI)## ๐ ๏ธ Technologie-Stack
- [ ] Google Assistant integration
- [ ] WhatsApp bot- **Python 3.10+** โ Programmiersprache
- [ ] Slack integration- **python-telegram-bot** โ Telegram Bot Framework
- [ ] Microsoft Teams bot- **google-api-python-client** โ Google Calendar API
- **requests** โ HTTP Client
### Phase 6: Enterprise Features ๐ข- **python-dotenv** โ Umgebungsvariablen
- [ ] Multi-user support with user management- **vosk / whisper.cpp** โ Speech-to-Text
- [ ] Team calendars and scheduling- **gTTS / Coqui TTS** โ Text-to-Speech
- [ ] Meeting room booking- **sqlite-utils** โ Lokale Datenhaltung
- [ ] Integration with Outlook/Exchange- **dateparser** โ Natรผrliche Datumserkennung
- [ ] LDAP/Active Directory authentication
- [ ] Audit logs and analytics## ๐ค Mitwirken
## ๐ Project StructureContributions sind willkommen! Bitte erstelle ein Issue oder einen Pull Request.
```1. Fork das Projekt
AdonisAI/2. Erstelle einen Feature Branch (`git checkout -b feature/AmazingFeature`)
โโโ README.md # English documentation3. Commit deine รnderungen (`git commit -m 'Add some AmazingFeature'`)
โโโ README_DE.md # German documentation4. Push zum Branch (`git push origin feature/AmazingFeature`)
โโโ CHANGELOG.md # English changelog (detailed)5. รffne einen Pull Request
โโโ CHANGELOG_DE.md # German changelog
โโโ .env.example # Environment variables template## ๐ Lizenz
โโโ requirements.txt # Python dependencies
โโโ run.py # Application entry pointMIT License โ siehe [LICENSE](LICENSE) fรผr Details.
โโโ ssl_patch.py # SSL workaround for corporate networks
โโโ src/## ๐ก Inspiration
โ โโโ main.py # Main application logic
โ โโโ bot/Dieses Projekt entstand aus dem Wunsch nach einem vollstรคndig kostenlosen, selbst-gehosteten KI-Assistenten, der die Privatsphรคre respektiert und keine monatlichen Gebรผhren verursacht.
โ โ โโโ __init__.py
โ โ โโโ telegram_bot.py # Telegram bot with AI integration## ๐ Kontakt
โ โโโ ai/
โ โ โโโ __init__.pyBei Fragen oder Anregungen, erstelle gerne ein Issue auf GitHub!
โ โ โโโ ai_client.py # AI client interface
โ โ โโโ openrouter_provider.py # OpenRouter implementation---
โ โโโ calendar/
โ โ โโโ __init__.py**Made with โค๏ธ by the AdonisAI Community**
โ โ โโโ calendar_client.py # Abstract calendar client
โ โ โโโ icloud_provider.py # iCloud CalDAV implementation
โ โ โโโ google_provider.py # Google Calendar API implementation
โ โ โโโ mock_provider.py # Mock provider for testing
โ โโโ utils/
โ โโโ __init__.py
โ โโโ context_manager.py # Conversation context management
โ โโโ nlp_utils.py # Natural language processing utils
โโโ tests/
โโโ test_calendar_client.py # Calendar CRUD tests
โโโ test_nlp_utils.py # NLP tests
โโโ test_bot_calendar.py # Bot integration tests
- Python 3.6+ โ Programming language (corporate environment compatible)
- python-telegram-bot 12.8 โ Telegram bot framework (downgraded for Python 3.6)
- OpenRouter โ AI provider (openai/gpt-3.5-turbo)
- caldav โ CalDAV protocol for iCloud
- google-api-python-client โ Google Calendar API
- dateparser โ Natural language date/time parsing
- requests โ HTTP client
- python-dotenv โ Environment variables management
# Run all tests
pytest
# Run specific test file
pytest tests/test_calendar_client.py
# Run with verbose output
pytest -v
# Run with coverage
pytest --cov=src tests/Contributions are welcome! Please check out our CHANGELOG.md to see current development status.
- Fork the project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'feat: Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
We follow conventional commits:
feat:New featurefix:Bug fixdocs:Documentation changestest:Test updatesrefactor:Code refactoringchore:Maintenance tasks
- Corporate Network: Real calendar providers (iCloud, Google) blocked by corporate firewall
- SSL Inspection: Automatically handled by
ssl_patch.py - Python 3.6: Some features limited by older Python version requirements
See CHANGELOG.md for detailed issue tracking and workarounds.
MIT License โ see LICENSE for details.
This project was created from the desire for a completely free, self-hosted AI assistant that respects privacy and doesn't require monthly subscription fees.
For questions or suggestions, please create an issue on GitHub!
- python-telegram-bot โ Excellent Telegram bot framework
- OpenRouter โ Free AI API access
- dateparser โ Natural language date parsing
- All contributors and testers
Made with โค๏ธ by the AdonisAI Community
๐ German Version | ๐ Changelog | ๐ Issues