Skip to content

RecipesSentry

Sentry errors

Free

Errors in 24 hours, the trend, unresolved issues, and new high-priority or fatal issues. Botopticon is not affiliated with Sentry.

Access

Sentry personal token, read scopes

Required. Env SENTRY_AUTH_TOKEN, SENTRY_ORG. Mode api_key.

  • org:read
  • project:read
  • event:read

In Sentry open the account menu (top left), then User Settings > Personal Tokens > Create New Token. Name it Botopticon board and tick only org:read, project:read, and event:read. Leave every write and admin scope off. Scopes can't be edited later; make a new token to change them. Organization tokens won't work here (their fixed CI scopes can't read issues). Put the org slug in SENTRY_ORG.

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

Board

Sample · not your account.

Errors 24h

Sample · Events, all projects

86events

+22%

Updated just nownowSentry

Error trend

Sample · Events per day, 7 days

86

min 38max 86

SunMonTueWedThuFriSat

Updated just nownowSentry

Unresolved

Sample · Open issues

14issues

Updated just nownowSentry

Command Tiles

Pro

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

  • Mute the TypeError

    Needs you

    Sample data

    Approval · Sentry

    Mute the checkout TypeError for 24 hours?

    fatal · checkout · TypeError on pay.

    Updated just nownowSentry

    Needs you
  • Treat this fatal?

    Needs you

    Sample data

    Question · Sentry

    A new fatal landed in the last hour. How should we treat it?

    Updated just nownowSentry

    Needs you

Tiles

  • Errors 24h
  • Error trend
  • Unresolved
  • New issuesneeds you
  • New issues. needs_you when an issue first seen in the last hour has priority high or level fatal.

State map

  • Errors 24h. value = error events in 24h (not issues). delta only when you stored the previous day. needs_you stays false.
  • Error trend. One point per day from events-stats (interval 1d). Post only days Sentry returns.
  • Unresolved. value = issues matching is:unresolved (X-Hits). needs_you stays false.
  • New issues. Label "<level> · <project> · <title>". tone "warn" for priority high or level fatal, else "idle". New high or fatal issue in the last hour -> needs_you with needs (kind "issue") and props.state "blocked". None -> needs_you false, state "idle". 401/403 -> needs kind "blocker". Needs you: New fatal issue in checkout: TypeError on pay. Triage it?

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 "Sentry errors".
  4. Call list_tiles (or open the board): 4 tiles on "Sentry errors", 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 new issues, once an hour for counts and the trend. It posts to “Sentry errors” only when a tile changes, and reads BOTOPTICON_TOKEN and SENTRY_AUTH_TOKEN and SENTRY_ORG from the environment.

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

Setup

  1. 01

    Make a Sentry personal token

    Sentry > User Settings > Personal Tokens > Create New Token. Name it Botopticon board and tick only org:read, project:read, and event:read. Scopes can't be edited later. Keep it in SENTRY_AUTH_TOKEN and your org slug in SENTRY_ORG. 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 Sentry 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 Sentry errors board, and reports back.

  4. 04

    Let the script keep it current

    The agent writes a small script that checks every 5 minutes for new issues (counts 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 "Sentry errors" current with live Sentry 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
Sentry: read SENTRY_AUTH_TOKEN, SENTRY_ORG from your environment (Sentry personal token, read scopes). If one isn't set, ask me.
In Sentry open the account menu (top left), then User Settings > Personal Tokens > Create New Token. Name it Botopticon board and tick only org:read, project:read, and event:read. Leave every write and admin scope off. Scopes can't be edited later; make a new token to change them. Organization tokens won't work here (their fixed CI scopes can't read issues). Put the org slug in SENTRY_ORG.
Scopes: org:read, project:read, event:read.
Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.

4. Board
Send "board": "Sentry errors" 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 "Sentry" on every tile. Never change the tile keys.
- err-24h, kpi, "Errors 24h". States: value = error events in 24h (not issues). delta only when you stored the previous day. needs_you stays false. ttl_seconds 86400.
- err-trend, trend, "Error trend". States: One point per day from events-stats (interval 1d). Post only days Sentry returns. ttl_seconds 86400. needs_you stays false.
- unresolved, kpi, "Unresolved". States: value = issues matching is:unresolved (X-Hits). needs_you stays false. ttl_seconds 86400.
- new-issues, feed, "New issues". needs_you when an issue first seen in the last hour has priority high or level fatal. States: Label "<level> · <project> · <title>". tone "warn" for priority high or level fatal, else "idle". New high or fatal issue in the last hour -> needs_you with needs (kind "issue") and props.state "blocked". None -> needs_you false, state "idle". 401/403 -> needs kind "blocker". ttl_seconds 43200 idle, 900 while busy. When a person must act: needs_you true and needs {"who":"Sentry","kind":"issue","ask":"New fatal issue in checkout: TypeError on pay. Triage it?","link":"https://sentry.io/"}.

6. Fetch notes
Read the current Sentry API docs. Base https://sentry.io/api/0, header Authorization: Bearer <SENTRY_AUTH_TOKEN>, org slug from SENTRY_ORG. Objects: Organization, Project, Issue, Event.
Errors 24h. Event count, not issue count: the events endpoint with count() over 24 hours, errors dataset. delta as a percent only when you stored the previous day.
Error trend. One point per day for the last 7 days from events-stats (interval 1d). Sentry stores these, so reading all 7 is fine.
Unresolved. value = unresolved issues (query is:unresolved); read the X-Hits header instead of paging.
New issues. Issues first seen in the last 24 hours, newest first, up to 10. Label "<level> · <project> · <title>", time HH:MM in my timezone. level (fatal, error, warning) and priority (high, medium, low) are different fields; don't mix them. tone: priority high or level fatal "warn", else "idle". An issue first seen in the last hour with priority high or level fatal -> needs_you true and needs {"who":"Sentry","kind":"issue","ask":"New <level> issue in <project>: <title>. Triage it?","link":"<permalink>"}. None -> needs_you false. props.state "blocked" when that needs is set, else "idle". Sentry answers 401/403 -> needs {"who":"Sentry","kind":"blocker","ask":"Replace SENTRY_AUTH_TOKEN"}.
- Errors 24h: GET /organizations/{org}/events/?field=count()&dataset=errors&statsPeriod=24h
- Error trend: GET /organizations/{org}/events-stats/?yAxis=count()&dataset=errors&statsPeriod=7d&interval=1d
- Unresolved: GET /organizations/{org}/issues/?query=is:unresolved&limit=1 (count from X-Hits).
- New issues: GET /organizations/{org}/issues/?query=is:unresolved firstSeen:-24h&sort=new&limit=10 (level, priority, permalink, project.slug).
- Look-back: Each run, read issues with firstSeen since your last run, so a fatal issue that appeared between checks still turns the feed amber. Times are 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 "Sentry errors".
d) Call list_tiles (or open the board): 4 tiles on "Sentry errors", 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 new issues, once an hour for counts and the trend. 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 SENTRY_AUTH_TOKEN and SENTRY_ORG 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?
New issues. When an issue first seen in the last hour has priority high or level fatal, the agent sets needs_you with a triage ask. The 24h count and the trend stay meters.
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 Sentry 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.