Skip to main content

🚀 Nudge — Autonomous AI Gmail Follow-up Agent

PyPI Version Python Version License GitHub Stars

Nudge is an intelligent, zero-setup CLI agent that audits your sent Gmail threads, identifies unanswered emails, and generates short, natural human follow-up replies using Groq AI (Llama 3.3 70B).

Designed for job hunters, founders, recruiters, and sales teams who want to follow up fast without writing generic AI fluff.


Nudge TUI Interface


✨ Features

  • 🔑 0-Setup Google OAuth: No Google Cloud Console setup or credentials.json required! Sign in via Google in 5 seconds.
  • 🗄️ SQLite History Persistence (~/.nudge/history.db): Remembers drafted and skipped threads so you never get prompted twice for the same email.
  • 📧 Full Email MIME Context: Reads full thread history instead of short snippets for deeply contextual follow-ups.
  • 🎭 Interactive Multi-Tone AI Generator:
    • [1] Check-in: Quick, warm status update request.
    • [2] Value-Add: Shares project accomplishments or progress updates.
    • [3] Breakup: Sends a polite final note to give the recipient a low-pressure way to respond.
  • 🧠 Smart Decision Engine:
    • Skips threads where the recipient already replied.
    • Skips threads sent < 2 days ago.
    • Skips threads where you've already sent 2+ follow-ups.
  • ⌨️ Single Keypress CLI Control: Approve ([A]), Edit ([E]), Change Tone ([1], [2], [3]), Switch Account ([L]), Skip ([S]), or Quit ([Q]).

⚡ Instant Installation

Install Nudge globally via pip or pipx:

pip install nudge-agent

Then run nudge anywhere in your terminal:

nudge

⚙️ Environment Configuration

Set your Groq API Key in your .env file or export it in your terminal environment:

export GROQ_API_KEY="gsk_your_groq_api_key_here"

Nudge also automatically loads configuration from ~/.nudge/.env if present.


💻 CLI Usage Options

nudge [OPTIONS]
Flag Description
--limit <N> Number of sent Gmail threads to scan (Default: 50)
--dashboard Display real-time TUI analytics dashboard & recent activity log
--auto Auto-approve mode (creates drafts without interactive prompts)
--login Force Google re-authentication to sign in with a new Gmail account
--logout Log out of your current Gmail account
-h, --help Show command help and options

🛠 Architecture

nudge/
├── main.py             # Rich TUI Orchestrator & interactive keypress approval loop
├── gmail_client.py     # Gmail API authentication, MIME body parser & SQLite history DB
├── followup_agent.py   # Decision engine & Groq Llama 3.3 70B prompt generator
└── pyproject.toml      # Packaging metadata & entrypoints

🔒 Privacy & Security

  • Local Storage: Your Google token (token.json), SQLite database (history.db), and local state are stored 100% locally on your computer inside ~/.nudge/.
  • Draft Mode Guarantee: Nudge attaches approved replies as drafts inside your Gmail account so you maintain 100% control before sending.
  • Privacy Policy: Read our complete Privacy Policy.

👤 Author & License

Built by @bydhruvil ;)

Licensed under the MIT License.

Release files for nudge-agent 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nudge-agent 0.1.7
File Size Uploaded
nudge_agent-0.1.7.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nudge-agent 0.1.7
File Interpreter ABI Platform
nudge_agent-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 31.3 kB

Release files / nudge_agent-0.1.7.tar.gz

Download URL nudge_agent-0.1.7.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5d2aafc12239b048657c3f2231965ac5eddafae3fd7461c1d58a42d8c80c9b77
BLAKE2b-256 checksum
How to use checksums
be357ac28bbf781b71098d2f6f00e17dc50dec2195d9943cee39c848d902a925
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.

Transparency log

Release files / nudge_agent-0.1.7-py3-none-any.whl

Download URL nudge_agent-0.1.7-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1c8ef0a0e7fcc00bd30d80f4b7d760df190e675461f74ebe607c409f7890122
BLAKE2b-256 checksum
How to use checksums
3fc608780a0d4275caa97176580ad3af33741341d4d986ccc90947b248aebb97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page