A self-hosted, Telegram-first AI assistant for productivity.
Project description
Gabay AI Assistant
Gabay is a self-hosted, Docker-based AI assistant designed as a Telegram-first productivity tool. It acts as a unified gateway allowing users to manage Gmail, Google Drive, Notion, and Meta (Facebook/Instagram) properties autonomously.
Features
- Daily Briefing (
/brief): Scans unread emails and Facebook/Instagram notifications to provide a prioritized, LLM-summarized update. - Content Reading (
/read): Fetches unread emails and recent Notion pages (try "read my emails" or "what's new in Notion?"). - Universal Search (
/search): Deep-search across Google Drive and Notion directly from Telegram. - Seamless Saving: Reply to any file or PDF with
/saveto upload it to Drive or save to Notion. - Agentic Intent: Leverages Groq (Llama 3) to understand natural language requests.
Quick Install
Gabay is now available as a Python package. You can install it directly via pip:
pip install gabay
Then run the setup wizard:
gabay config
Setup Instructions (Docker)
Gabay uses both a Bot (commands) and a Userbot (acting as you).
- Bot: Create a bot via @BotFather to get your
TELEGRAM_BOT_TOKEN. - API Credentials: Go to my.telegram.org, log in, and create an "App" to get your
TELEGRAM_API_IDandTELEGRAM_API_HASH. - Phone Number: Your
TELEGRAM_PHONEis required to authenticate the Userbot session.
2. Google Cloud Setup (Gmail/Drive)
- Go to the Google Cloud Console.
- Enable APIs: Enable both the Gmail API and Google Drive API.
- OAuth Consent Screen:
- Set up an "External" consent screen.
- Under Test Users, add your own email address.
- Create Credentials:
- Create an OAuth client ID (Web application).
- Add
http://localhost:8000/auth/google/callbackto Authorized redirect URIs.
- Get your Client ID and Client Secret.
3. Notion Setup
- Create an Internal Integration: Go to Notion My Integrations.
- Get your
NOTION_API_KEY. - Share Database: Open your Notion database, click "..." -> Connect to, and find your integration.
- Copy the Database ID from the URL (the string after the
/and before the?).
4. Environment Variables
Create a .env file in the root directory:
# Telegram
TELEGRAM_BOT_TOKEN="your_token"
TELEGRAM_API_ID=12345
TELEGRAM_API_HASH="your_hash"
TELEGRAM_PHONE="+123456789"
# LLM
GROQ_API_KEY="your_groq_key"
# Google OAuth
GOOGLE_CLIENT_ID="your_google_id"
GOOGLE_CLIENT_SECRET="your_google_secret"
# Notion
NOTION_API_KEY="your_notion_key"
NOTION_DATABASE_ID="your_database_id"
5. Running and Connecting
- Start:
docker-compose up -d --build - Dashboard: Send
/authto your bot on Telegram. - Login: Open the link and click Connect Account for each service.
Use Cases
- "Give me a briefing on my emails today."
- "Read my latest Notion notes."
- "Search for 'Project Alpha' on Drive."
- "Send an email to john@example.com saying I'll be late."
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gabay-0.1.6.tar.gz.
File metadata
- Download URL: gabay-0.1.6.tar.gz
- Upload date:
- Size: 46.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd99243e9386485fa461154bad382e68520ba668b12e48ef4d939475eed21bd
|
|
| MD5 |
1aa98862ee9e56268098f9e91000ee8b
|
|
| BLAKE2b-256 |
f20b3e2dc6de1a6f091dfed71f880cd9aaccf7d775ca73f6ba4e418c348c0233
|
Provenance
The following attestation bundles were made for gabay-0.1.6.tar.gz:
Publisher:
pypi_publish.yml on urkiddennn/Gabay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gabay-0.1.6.tar.gz -
Subject digest:
3dd99243e9386485fa461154bad382e68520ba668b12e48ef4d939475eed21bd - Sigstore transparency entry: 975701970
- Sigstore integration time:
-
Permalink:
urkiddennn/Gabay@36b0664ff37e361ffe47c8f1ce1bf1634732469a -
Branch / Tag:
refs/tags/0.1.6 - Owner: https://github.com/urkiddennn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@36b0664ff37e361ffe47c8f1ce1bf1634732469a -
Trigger Event:
release
-
Statement type:
File details
Details for the file gabay-0.1.6-py3-none-any.whl.
File metadata
- Download URL: gabay-0.1.6-py3-none-any.whl
- Upload date:
- Size: 67.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d47355a3f430d476c0a18d765f3e85099cf1820c9da11bbdd1469ad58254b79a
|
|
| MD5 |
cbfaf7fa570200e5e2d3a271bdf6e475
|
|
| BLAKE2b-256 |
4bd7986749b7a00e977c2888bb1943f9ef06c2252de11b054daa7657c1eb0b6f
|
Provenance
The following attestation bundles were made for gabay-0.1.6-py3-none-any.whl:
Publisher:
pypi_publish.yml on urkiddennn/Gabay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gabay-0.1.6-py3-none-any.whl -
Subject digest:
d47355a3f430d476c0a18d765f3e85099cf1820c9da11bbdd1469ad58254b79a - Sigstore transparency entry: 975701972
- Sigstore integration time:
-
Permalink:
urkiddennn/Gabay@36b0664ff37e361ffe47c8f1ce1bf1634732469a -
Branch / Tag:
refs/tags/0.1.6 - Owner: https://github.com/urkiddennn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@36b0664ff37e361ffe47c8f1ce1bf1634732469a -
Trigger Event:
release
-
Statement type: