Skip to content

Paperless Genie 🧞

Welcome to the Paperless Genie documentation!

paperless-genie is an intelligent, conversational AI Telegram bot for Paperless-ngx built using the Google Antigravity SDK (google-antigravity). It allows you to search and manage your document archive using natural language, directly from Telegram.

Demo: searching the archive, asking for a yearly utilities total with a follow-up comparison, and auto-archiving a document from a Telegram chat
Illustrative demo — a mock-up chat with sample data, not a recording of a live instance.


Key Features

  • Natural Language Queries: Search your documents by asking questions like "Where is my passport?" or "List all lease agreements from 1992".
  • Totals & Follow-Up Questions: Ask analytical questions like "How much did we spend on utilities in 2025?" and refine them conversationally — "And compared to 2024?" — thanks to per-user conversation memory. See Example Queries for more.
  • Smart PDF Archiving: Send a PDF document via Telegram. The bot analyzes the document, extracts metadata, uploads it to Paperless-ngx, sets the tags/correspondent/date, and appends a detailed note.
  • Granular Multi-User Permissions: Map Telegram User IDs to Paperless API Tokens so users only see and edit documents they have access to in your Paperless-ngx instance.
  • No Server Mount Required: The bot interacts entirely via Paperless API and temporary folder paths, keeping your server clean.

Quick Start

  1. Create a Telegram Bot: Follow the Telegram Bot Setup Guide to get a token.
  2. Get Paperless-ngx API Token: Learn how to generate your API token in the Paperless Setup Guide.
  3. Configure Environment Variables: Setup mappings and credentials in Configuration Guide.
  4. Deploy: Choose to deploy using Docker Compose or systemd in the Deployment Guide.