Skip to main content

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 /save to 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).

  1. Bot: Create a bot via @BotFather to get your TELEGRAM_BOT_TOKEN.
  2. API Credentials: Go to my.telegram.org, log in, and create an "App" to get your TELEGRAM_API_ID and TELEGRAM_API_HASH.
  3. Phone Number: Your TELEGRAM_PHONE is required to authenticate the Userbot session.

2. Google Cloud Setup (Gmail/Drive)

  1. Go to the Google Cloud Console.
  2. Enable APIs: Enable both the Gmail API and Google Drive API.
  3. OAuth Consent Screen:
    • Set up an "External" consent screen.
    • Under Test Users, add your own email address.
  4. Create Credentials:
    • Create an OAuth client ID (Web application).
    • Add http://localhost:8000/auth/google/callback to Authorized redirect URIs.
  5. Get your Client ID and Client Secret.

3. Notion Setup

  1. Create an Internal Integration: Go to Notion My Integrations.
  2. Get your NOTION_API_KEY.
  3. Share Database: Open your Notion database, click "..." -> Connect to, and find your integration.
  4. 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

  1. Start: docker-compose up -d --build
  2. Dashboard: Send /auth to your bot on Telegram.
  3. 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

gabay-0.1.1.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gabay-0.1.1-py3-none-any.whl (66.3 kB view details)

Uploaded Python 3

File details

Details for the file gabay-0.1.1.tar.gz.

File metadata

  • Download URL: gabay-0.1.1.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gabay-0.1.1.tar.gz
Algorithm Hash digest
SHA256 066f63ca3de7daef1ddb08d3597717c6b5bbeb9d6bd3e80cffc3da50e63471ce
MD5 2e3adb689467e82d577c010960784ca4
BLAKE2b-256 788e2301b2c979691f62de21fad24cf81075a2bba603067e91106723499f37a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gabay-0.1.1.tar.gz:

Publisher: pypi_publish.yml on urkiddennn/Gabay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gabay-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gabay-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 66.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gabay-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16103340618ff631c2eed34bad83a44f58d16163869cd206d7da4593c1096d2d
MD5 3942b005be71f26a1620f2640c9571f5
BLAKE2b-256 ade68bf19709c2e4a8e984deaf4e50ea0785f01018eb20cd17f93cce5633ea3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gabay-0.1.1-py3-none-any.whl:

Publisher: pypi_publish.yml on urkiddennn/Gabay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page