Skip to content

RecipesStripe

Stripe revenue

Free

MRR, new customers, failed payments, and revenue by product on one board. Your agent holds a Stripe restricted key. Botopticon is not affiliated with Stripe.

Access

Stripe restricted key, Read on 5 resources

Required. Env STRIPE_API_KEY. Mode either.

  • Charges: Read
  • Customers: Read
  • Subscriptions: Read
  • Products: Read
  • Prices: Read

In the Stripe Dashboard open Developers, then API keys, then Create restricted key. Start from zero permissions and name it Botopticon board. Set Read on Charges, Customers, Subscriptions, Products, and Prices. Leave every other resource at None and never pick Write (Write includes Read). Copy the key once (it starts with rk_live_). Stripe answers a missing permission with an error, so a read-only key can't change anything. Never use a full secret key (sk_live_).

If the agent already has Stripe MCP, give it the same restricted key, not a secret key.

Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.

Board

Sample · not your account.

MRR

Sample · Active subscriptions · before discounts

$42k

+$2.8k

Updated just nownowStripe

MRR 7d

Sample · One stored point per day

$42,000.00

min $39,200.00max $42,000.00

SunMonTueWedThuFriSat

Updated just nownowStripe

New customers

Sample · Last 24 hours

12cust

+3

Updated just nownowStripe

Recent payments

Sample · Newest 10 charges

  1. 11:42$290 · Pro annual · ch_3Q8x
  2. 10:05$29 · Pro monthly · ch_3Q7m
  3. 09:18$29 failed · Pro monthly · ch_3Q6k

Updated just nownowStripe

By product

Sample · MRR rank

  1. 1Pro
    28,000USD+8%
  2. 2Team
    9,000USD+2%
  3. 3Free add-on
    5,000USD-1%

Updated just nownowStripe

Command Tiles

Pro

Sample · not your account. The agent puts the ask on the board. You answer there. How Command Tiles work

  • Refund the charge

    Needs you

    Sample data

    Approval · Stripe

    Refund the failed $240 charge?

    Three failed payments in 24 hours. Largest is $240.

    Updated just nownowStripe

    Needs you
  • Which fail first?

    Needs you

    Sample data

    Question · Stripe

    Which failed payment should Stripe retry first?

    Updated just nownowStripe

    Needs you

Tiles

  • MRR
  • MRR 7d
  • New customers
  • Failed paymentsneeds you
  • Recent payments
  • By product
  • MRR. Sum active and past_due subscription items: unit_amount x quantity, monthly as-is, yearly / 12.
  • Failed payments. Charges with status failed in the last 24 hours. Charges only, so one failure counts once.

State map

  • MRR. value = MRR in dollars. delta only when you stored yesterday's value. Skip metered prices and trials. Subtitle says before discounts.
  • MRR 7d. One point per day from your stored daily MRR. Start with today and let it grow. Never backfill a day you didn't store.
  • New customers. value = customers created in the last 24 hours. needs_you stays false.
  • Failed payments. value = failed Charges in 24h. Above 0 -> needs_you with needs (kind "issue"). 0 -> needs_you false, no needs. Subtitle from the numbers, e.g. "of 41 charges · 24h". 401 or permission error -> needs kind "blocker": Replace STRIPE_API_KEY. Needs you: 3 payments failed in 24h. Retry or contact the customers?
  • Recent payments. Label "<amount> · <product> · <ch_ id>". No emails or names. tone: failed "warn", succeeded "ok", refunded "idle". props.state "blocked" if a failed charge is listed, else "idle".
  • By product. Rank Products by MRR from their subscription items. Ranking only, never completion.

Verify

The agent runs these on the first run, then reports.

  1. GET https://www.botopticon.com/api/catalog with the token -> 200. A 401 means the token is wrong, revoked, or still the placeholder.
  2. POST each body to https://www.botopticon.com/api/ingest?dry_run=1 (or post_tile with dry_run true). On board_not_found, stop and ask me; don't switch boards. On a validation error or warning (title or subtitle too long, weak title), fix that body and dry-run it again.
  3. Post for real. Each reply has ok true, a pane_id, and board_name "Stripe revenue".
  4. Call list_tiles (or open the board): 6 tiles on "Stripe revenue", none stale.
  5. Then tell me those four results in one short message.

Keep it current

A small script, not an LLM loop. It runs every 5 minutes for payments, once an hour for MRR and products. It posts to “Stripe revenue” only when a tile changes, and reads BOTOPTICON_TOKEN and STRIPE_API_KEY from the environment.

An LLM routine every few minutes spends your usage and adds nothing new.

Setup

  1. 01

    Make a Stripe restricted key

    Stripe Dashboard > Developers > API keys > Create restricted key. Name it Botopticon board. Set Read on Charges, Customers, Subscriptions, Products, and Prices, and leave everything else at None. The key starts with rk_live_. Keep it in STRIPE_API_KEY on the agent or cron host. Never use a secret key (sk_live_). Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.

  2. 02

    Create a Botopticon token

    In the app, open Connection tokens and create one named after this board. It starts with bot_ and is shown once. Save it as BOTOPTICON_TOKEN where the agent runs. It posts to Botopticon. It is not the Stripe key.

  3. 03

    Paste the prompt into your agent

    Open the tab for Grok Bot, Muse, MCP, Cursor, Claude, or curl. The agent checks the token, dry-runs every tile, posts to the Stripe revenue board, and reports back.

  4. 04

    Let the script keep it current

    The agent writes a small script that checks every 5 minutes for payments (MRR once an hour) and posts only what changed. A quiet tile overnight is normal.

Snippets

Read BOTOPTICON_TOKEN from your environment or secret store. If it isn't set, stop and ask me. Never send the text $BOTOPTICON_TOKEN. If I paste a token in chat, save it as BOTOPTICON_TOKEN and don't repeat it.

Same recipe, one tab per platform. The prompt fetches the source and posts. Do not paste the sample numbers as live data.

Grok Bot

Click Use this recipe first so the board exists.
Paste this into Grok Bot. Set BOTOPTICON_TOKEN in its environment or secret store first.

1. Goal
Keep my Botopticon board "Stripe revenue" current with live Stripe data.
Any agent that can make HTTPS calls can do this. You report; I decide.

2. Connect
- Botopticon token (starts with bot_): Read BOTOPTICON_TOKEN from your environment or secret store. If it isn't set, stop and ask me. Never send the text $BOTOPTICON_TOKEN. If I paste a token in chat, save it as BOTOPTICON_TOKEN and don't repeat it.
- HTTP (works everywhere): POST https://www.botopticon.com/api/ingest
  Headers: Authorization: Bearer <token>, Content-Type: application/json
- MCP (optional, same token): https://www.botopticon.com/api/mcp, tool post_tile. If an MCP tool returns HTML or an error, use HTTP.

3. Source access
Stripe: read STRIPE_API_KEY from your environment (Stripe restricted key, Read on 5 resources). If it isn't set, ask me.
In the Stripe Dashboard open Developers, then API keys, then Create restricted key. Start from zero permissions and name it Botopticon board. Set Read on Charges, Customers, Subscriptions, Products, and Prices. Leave every other resource at None and never pick Write (Write includes Read). Copy the key once (it starts with rk_live_). Stripe answers a missing permission with an error, so a read-only key can't change anything. Never use a full secret key (sk_live_).
Scopes: Charges: Read, Customers: Read, Subscriptions: Read, Products: Read, Prices: Read.
If the agent already has Stripe MCP, give it the same restricted key, not a secret key.
Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.

4. Board
Send "board": "Stripe revenue" on every post. On a Free workspace with one board, posts land on that board, and the reply warns board_ignored_free when the names differ.

5. Tiles
Bot "Stripe" on every tile. Never change the tile keys.
- mrr-now, kpi, "MRR". Sum active and past_due subscription items: unit_amount x quantity, monthly as-is, yearly / 12. States: value = MRR in dollars. delta only when you stored yesterday's value. Skip metered prices and trials. Subtitle says before discounts. ttl_seconds 86400. needs_you stays false.
- mrr-week, trend, "MRR 7d". States: One point per day from your stored daily MRR. Start with today and let it grow. Never backfill a day you didn't store. ttl_seconds 86400. needs_you stays false.
- new-cust, kpi, "New customers". States: value = customers created in the last 24 hours. needs_you stays false. ttl_seconds 86400.
- failed-pay, kpi, "Failed payments". Charges with status failed in the last 24 hours. Charges only, so one failure counts once. States: value = failed Charges in 24h. Above 0 -> needs_you with needs (kind "issue"). 0 -> needs_you false, no needs. Subtitle from the numbers, e.g. "of 41 charges · 24h". 401 or permission error -> needs kind "blocker": Replace STRIPE_API_KEY. ttl_seconds 43200 idle, 900 while busy. When a person must act: needs_you true and needs {"who":"Stripe","kind":"issue","ask":"3 payments failed in 24h. Retry or contact the customers?","link":"https://dashboard.stripe.com/payments"}.
- pay-feed, feed, "Recent payments". States: Label "<amount> · <product> · <ch_ id>". No emails or names. tone: failed "warn", succeeded "ok", refunded "idle". props.state "blocked" if a failed charge is listed, else "idle". ttl_seconds 43200 idle, 900 while busy. needs_you stays false.
- by-product, leaderboard, "By product". States: Rank Products by MRR from their subscription items. Ranking only, never completion. ttl_seconds 86400. needs_you stays false.

6. Fetch notes
Read the current Stripe API docs. Objects: Subscription, Charge, Customer, Product, Price.
MRR. Sum every subscription with status active or past_due: for each item, price.unit_amount x quantity, monthly as-is, yearly / 12, weekly x 52 / 12. Skip metered prices and trialing subscriptions. Coupons are not subtracted; say "before discounts" in the subtitle. delta only when you stored yesterday's value.
MRR 7d. You can't rebuild past days cheaply, so store one MRR value per day (UTC) and post the stored points. Start with today's point and let the series grow to 7. Never backfill a day you didn't store.
New customers. Customers created in the last 24 hours. value is a number, subtitle "Last 24 hours".
Failed payments. Count Charges with status failed in the last 24 hours (Charges only: a PaymentIntent and its Charge are the same failure). Subtitle from the numbers, e.g. "of 41 charges · 24h". Above 0 -> needs_you true and needs {"who":"Stripe","kind":"issue","ask":"<n> payments failed in 24h. Retry or contact the customers?","link":"https://dashboard.stripe.com/payments?status[0]=failed"}. At 0 -> needs_you false, no needs. A 401 or permission error -> needs {"who":"Stripe","kind":"blocker","ask":"Replace STRIPE_API_KEY"}.
Recent payments. Newest 10 Charges. Label "<amount> · <product or plan> · <ch_ id>", time HH:MM in my timezone. No emails, names, or card details: this board can be on a TV. tone: failed "warn", succeeded "ok", refunded "idle". props.state "blocked" if a failed charge is listed, else "idle".
By product. Rank Products by the MRR of their subscription items. Ranking only.
- MRR and By product: GET https://api.stripe.com/v1/subscriptions?status=all&limit=100&expand[]=data.items.data.price; follow has_more with starting_after. Keep active and past_due.
- Failed payments and Recent payments: GET https://api.stripe.com/v1/charges?limit=100&created[gte]=<now-24h>; follow has_more.
- New customers: GET https://api.stripe.com/v1/customers?limit=100&created[gte]=<now-24h>; follow has_more.
- Product names: GET https://api.stripe.com/v1/products?active=true&limit=100, once per run.
- Look-back: Each run, read charges created since your last run (created[gte] = last run time) so a payment that failed and was retried between checks still counts. Times are Unix seconds, UTC; show HH:MM in my timezone.

7. Posting rules
Fields: bot, tile, type, title, subtitle, props, needs_you, needs, ttl_seconds, board, brief (link optional). Send the full body each time; a post without needs or link clears it.
needs is required whenever needs_you is true: {"who","kind":"task|issue|question|blocker|approval","ask"} (link and detail optional).
Limits: title shows 24 characters (max 80). Subtitle shows 48 (cut at 80). Row labels 64. Feed labels 280. needs.ask 140 on one line. needs.who 48.
Post a tile only when its body changes. Do not invent numbers. Do not post the same body again just to keep a tile fresh.

8. Verify on the first run
a) GET https://www.botopticon.com/api/catalog with the token -> 200. A 401 means the token is wrong, revoked, or still the placeholder.
b) POST each body to https://www.botopticon.com/api/ingest?dry_run=1 (or post_tile with dry_run true). On board_not_found, stop and ask me; don't switch boards. On a validation error or warning (title or subtitle too long, weak title), fix that body and dry-run it again.
c) Post for real. Each reply has ok true, a pane_id, and board_name "Stripe revenue".
d) Call list_tiles (or open the board): 6 tiles on "Stripe revenue", none stale.
e) Then tell me those four results in one short message.

9. Keep it current
Write a small script (no LLM in the loop). Run it every 5 minutes for payments, once an hour for MRR and products. Use cron or a loop that holds a lock. It keeps a hash of each body, posts only the tiles that changed, retries once on 429 or 5xx, stops re-posting a body that got a 4xx, reads BOTOPTICON_TOKEN and STRIPE_API_KEY from the environment, never logs them, and has a --dry flag.
Don't set up an LLM routine that runs every few minutes; it spends my usage and adds nothing.
On the board, a quiet tile with an old "updated" time is normal. A stale tile means your script stopped.

10. Report back
One short message: the token check, the dry-run result, each pane_id, the board name, and the schedule you chose.

FAQ

Which pane turns amber?
Failed payments. When any charge failed in the last 24 hours, the agent sets needs_you with an ask: retry or contact the customers. At 0 it clears. The feed shows amounts and products, never emails or card details.
Does this run on the Free plan?
Yes. Every tile in this recipe is a Free type. A Free workspace still has one board and 8 live tiles. Using this recipe adds the sample tiles to that board.
Does Botopticon store the Stripe key?
Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.
How does the board stay current?
A small script fetches the source and posts a tile only when its body changes. A quiet tile is fine: nothing changed. A stale tile means the agent stopped checking. Fifteen minutes after a tile goes stale it leaves the board, and it comes back on the next post.
Why did a tile leave the board?
Three reasons. A progress tile with every row finished leaves 5 minutes later. A status tile set to done leaves 5 minutes later. A stale tile leaves 15 minutes after it goes stale. The next post brings it back.