# The Queen Frequency: Telegram AI coaching companion

A subscription-gated AI coaching companion on Telegram that remembers who you are, with a full business back-office behind it.

*Francesca Maggi · The Queen Frequency · Italy · 2026 - present · 1 month, then ongoing*

## The brief

Francesca had a coaching methodology, The Queen Frequency, documented across hundreds of pages of proprietary material, and a bare Telegram bot. She needed it turned into a real product: an Italian-first AI persona that mirrors her methodology and evolves with each user over time.

The product had to be gated behind Stripe subscriptions, GDPR-compliant for the EU market, adults-only, with sensible usage limits per plan. And she needed an admin panel that lets a non-technical founder run the entire business without calling a developer.

## What we built

- **Telegram persona.** her methodology, engineered into a prompt
- **Evolving memory.** multi-layer profiles, no raw message storage
- **Stripe monetization.** 4 tiers, top-up pack, proration, portal
- **Consent onboarding.** age gate, legal versioning, re-acceptance
- **Safety classifiers.** under-18 and crisis detection
- **GDPR erasure.** one command wipes data and cancels billing
- **Admin panel.** the whole business, no developer needed
- **Legal editor.** WYSIWYG docs with self-hosted public pages

## How it works

A five-workspace monorepo shares domain logic between the bot and the admin panel. Telegram webhooks pass through an exactly-once guard against silent retries, Stripe webhooks through claim-first idempotency, so no message or payment is ever processed twice. Access composes three independent gates: subscription state, complimentary access, and consent with legal versioning.

## Stack

- **Bot:** TypeScript, Node.js, grammY, Express, OpenAI GPT models
- **Data:** MongoDB, Mongoose
- **Billing:** Stripe Checkout, Subscriptions, Schedules, Customer Portal
- **Admin:** Next.js, shadcn/ui, Recharts
- **Quality & infra:** Vitest, Docker, Railway (EU), pnpm workspaces

## Numbers

- **3,000+** conversations orchestrated in the first 4 weeks
- **70+** members onboarded in the first 4 weeks
- **200+** GDPR-compliant consent records
- **770+** automated tests, runs fully offline
- **9** Stripe price points across 4 tiers
- **44k** lines of TypeScript across the monorepo

## The hardest part

Making the persona feel like the client's actual methodology rather than a generic chatbot, and keeping it that way at a sane cost. Her material arrived as thousands of lines of prose across six documents. It had to be compressed into a token-efficient, cache-stable prompt where every later addition, from the pattern library to per-user personalization, was engineered to never invalidate the cached prefix.

The other hard one was production correctness around money and messaging. Telegram silently retries webhooks that take too long to answer, and a thoughtful AI reply does, so without protection users would receive the same message twice. We built an exactly-once dedup layer so that can never happen, and the same idempotency discipline holds on the Stripe side so no checkout is ever double-counted.

## What the client said

> "This wasn't a typical development project. We were building something highly complex: an AI capable of reproducing a very specific reasoning process, not just generating responses. Roberto immediately understood the vision behind the project and approached every challenge with intelligence, precision and genuine curiosity. What impressed me most is his ability to translate abstract cognitive frameworks into a working product. The quality of the code, the architecture, the admin panel and the overall attention to detail exceeded my expectations. Most importantly, Roberto genuinely cares about the success of the project. He treats it as a collaboration rather than just another job. I can confidently say that I have found my long-term AI developer."
> Francesca Maggi, Italy, rated 5/5

More work: https://dock30.com/work

## Contact

- Email: crew@dock30.com
- Book a call: https://dock30.com/contact
