SlimeTree-RLM × Google Integration (Gemini-only)

Wraps Gmail / Calendar / Drive / Sheets / Workspace API with RLM pre-filter + Gemini delegation. Cuts LLM cost 60-80%; personal-tier free keys via Google AI Studio; MIT-public.

LLM delegation = Gemini exclusive (Google-native, access-policy-aligned).
Issue a personal free API key at aistudio.google.com/apikey (15 RPM free; overflow is token-based).

Why Google integration is Gemini-only

Google Workspace APIs run on Google account authorization. The same Google account can issue a Gemini API keyone user / one account / one billing identity.
Mixing in other LLMs (Claude / OpenAI) introduces extra accounts and invoicing overhead. Google-native = Gemini is optimal.
On top of that, Gemini has a free tier (15 RPM), making it easy for individuals and SMBs to evaluate.

* Architectural principle: "Platform-native LLM" ― Meta = neutral / X = Grok / Google = Gemini / Microsoft (planned) = Azure OpenAI.

Integration routes

PublicGoogle Sign-In + GeminiGoogle AI

▸ Operate Google safely through an internal AI gateway

Google Prompt Gateway

Sign in with Google → in-browser RLM emits D/µ/R → only R goes to the Gemini API. Live pipeline visualization included.

Open the demo →

PublicGmail API + GeminiGoogle AI

▸ Pre-triage incoming email with RLM

Gmail Triage Bot

Incoming mail goes to D=auto-reply / µ=trash or archive / R=Gemini summary + draft. Spam, investment solicitation, and PII-request DMs are suppressed deterministically.

Open the demo →

PublicCalendar API + GeminiGoogle AI

▸ Detect collisions / anomalies in upcoming events

Calendar Analyzer Bot

Fetch the next 7 days → RLM emits D=routine meeting / µ=needs attention (double-booking / all-day collision) / R=Gemini summary + risk assessment.

Open the demo →

PublicDrive API + GeminiGoogle AI

▸ Audit Drive file names / metadata at scale

Drive Audit Bot

RLM audits filenames / sharing settings → µ=confidentiality-leak risk (publicly-viewable + "confidential" / "personal" keywords); R=Gemini content-summary audit.

Open the demo →

PublicSheets API + GeminiGoogle AI

▸ Detect spreadsheet anomalies via RLM

Sheets Cell Audit Bot

Read the sheet → per-column RLM verdict: D=normal / µ=anomaly (PII mix-in / formula error / empty cell) / R=Gemini contextual analysis. 1,000 rows / sec.

Open the demo →

PublicWorkspace API genericGoogle AI

▸ Hit any Google API endpoint from one UI

Workspace API generic client

Gmail / Calendar / Drive / Sheets / Forms / Chat / Admin endpoints from one panel. Post-stage RLM audit of responses (Gemini), curl-equivalent, history.

Open the demo →

NEXT THEME · 2026-05-30 Google = Gemini-only Flash → Pro tiering + free tier preserved

★ What multi-agent extension changes ✅ Google 6/6 B mode shipped (in-Gemini)

Google integration is Platform-native = Gemini-only (one Google account ops).
The Gemini family offers 2.5 Flash (cheap, free tier 15 RPM) → 2.5 Pro (premium) as a clear two-tier separation, and notably the cheap layer can stay $0 forever ― an attribute no other platform shares. SMBs can run 80% on free cheap + 20% paid premium; enterprises can unify on Pro ― both with the same codebase.

Google route Matching pattern Concrete use case (Gemini-only)
GatewayB Cost-tier (in-Gemini)Try all R on Flash → escalate only insufficient items to Pro. If within the free tier, $0/month for individuals; only the ~15% that escalates costs ~$0.001/call.
Gmail TriageB + C Tiered + specialistFlash performs category detection (legal / finance / sales / spam) → Pro summarizes + drafts using a category-specific system prompt. Category-specific specialist on Pro.
Calendar AnalyzerD Orchestrator-workerFlash (orchestrator) splits 7 days of events → Pro (workers) run per-day collision / anomaly detection in parallel. Flash performs the final merge.
Drive AuditD Parallel workersFlash audits file classification + sharing settings in parallel (worker count = file count); Pro only deep-dives "confidential + public" risk → auditing 1,000 files costs under $1.
Sheets Cell AuditF Consensus (Gemini sampling)For PII / formula-anomaly verdicts, sample Flash N=3 and take the majority. Match = final, mismatch = Pro re-judges. False-positive rate is designed probabilistically.
Workspace API genericC + E Routing + critiqueSwitch specialists by endpoint; response audit converges quality via a Pro (proposer) ↔ Pro (critic) loop. In-Gemini debate.

Unique advantages under the Gemini-only constraint

  • The only platform that keeps the cheap layer at $0Google AI Studio issues Flash free keys (15 RPM). For SMBs / individuals, the cheap layer stays $0 indefinitely; only the escalated premium portion incurs charges.
  • One Google account for Workspace + Gemini unified ops ― no separate vendor authentication; SSO / audit / billing are unified. The setup enterprise IT teams prefer.
  • Parallel processing (pattern D) is economically viable with cheap Flash ― auditing 1,000 Drive files / 10,000 Sheets rows via parallel Flash workers costs less than $1/month. Large-scale audits across Gmail / Calendar / Drive / Sheets become viable at realistic prices.
  • Gemini Pro's long context (2M tokens) makes it ideal as orchestrator ― batches of Drive files / Calendar history go to Pro for global planning, then to workers ― a natural fit.
Concrete numbers (10,000 Gmail/month): on top of the existing "73% RLM cut" (Gemini Pro config: $103 → $28), pattern B adds another layer: $28 → $6.2/month (-77.9% additional, 94.0% total). A Flash-only config is already $2.03/month complete, so the value of pattern B is highest when premium = Pro is in the mix.
Details on service page #multi-agent-saving.

6 patterns in detail → Layered-cut numbers →

Common pattern (all 6 routes)

AuthenticationOAuth 2.0 (Google Sign-In) ― only the scopes each route needs (gmail.readonly / calendar.events / drive.readonly etc.)
LLM delegationGemini (Google) only. Endpoint = https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent
VerdictD = instant (no Gemini call) / μ = suppressed / R = Gemini delegation
AuditEvery query chained via SHA-256; exportWAL() emits JSON → can be saved to Drive as well
Gemini pricingFree tier: 15 RPM. Overflow is token-based (Flash $0.075/1M in, $0.30/1M out). aistudio.google.com/apikey
Workspace pricingPersonal: Gmail / Calendar / Drive basically free (15GB); Workspace Business: $6-$18/user/month
LicenseIntegration code = MIT (public) / actual WASM = JAVATEL commercial / Google API + Gemini = customer's own accounts

Related resources