Skip to content

RecipesIntercom

Intercom inbox

Free

Open conversations, the newest activity, and teammates. Your agent holds an Intercom read token. Botopticon is not affiliated with Intercom.

Access

Intercom access token, Read conversations and admins

Required. Env INTERCOM_ACCESS_TOKEN. Mode api_key.

  • Read conversations
  • Read admins

In Intercom open Settings > Integrations > Developer Hub and create an app on your own workspace named Botopticon board. Under Configure > Authentication, edit the permissions: keep only Read conversations and Read admins, and turn off every write permission (Write conversations can reply to and close threads). Read admins sits under the extended Workspace data permissions; the board only uses it for teammate first names. Then copy the access token from the same page. The token can only do what those permissions allow. Workspaces hosted in the EU or Australia use api.eu.intercom.io or api.au.intercom.io.

Intercom MCP is fine if the agent already has it. Ask it only to search and read.

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

Board

Sample · not your account.

Open

Sample · Open now · 4 snoozed

27open

Updated just nownowIntercom

Newest

Sample · 10 most recently updated

  1. 12:04#4182 · email · waiting 12m · Unassigned
  2. 11:51#4179 · chat · replied · Sam
  3. 11:20#4170 · chat · closed · Riley

Updated just nownowIntercom

Teammates

Sample · Open assigned

  1. 1Sam
    11open
  2. 2Riley
    8open
  3. 3Unassigned
    5open

Updated just nownowIntercom

Command Tiles

Pro

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

  • Poll faster while busy

    Needs you

    Sample data

    Approval · Intercom

    Open is up to 27. Check Intercom every 5 minutes until it drops below 20?

    The board reads Intercom only. It changes how often it checks, not the inbox.

    Updated just nownowIntercom

    Needs you
  • Newest: which channels?

    Needs you

    Sample data

    Question · Intercom

    Which channels should the Newest feed show?

    Updated just nownowIntercom

    Needs you

Tiles

  • Open
  • Newest
  • Teammates

    State map

    • Open. value = conversations with state open. Snoozed goes in the subtitle, not the count. needs_you stays false, except 401 -> needs kind "blocker": Replace INTERCOM_ACCESS_TOKEN.
    • Newest. Label "#<id> · <channel> · <waiting | replied | closed | snoozed> · <teammate>". No contact names, emails, subjects, or message text. tone: waiting "warn", replied "ok", closed or snoozed "idle". props.state "working" if a listed thread is waiting, else "idle".
    • Teammates. Rank admins by open conversations assigned (admin_assignee_id), first names only, plus Unassigned. Ranking only.

    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 "Intercom inbox".
    4. Call list_tiles (or open the board): 3 tiles on "Intercom inbox", 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 2 minutes for open threads and the feed, every 15 minutes for teammates. It posts to “Intercom inbox” only when a tile changes, and reads BOTOPTICON_TOKEN and INTERCOM_ACCESS_TOKEN from the environment.

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

    Setup

    1. 01

      Make an Intercom read token

      Intercom > Settings > Integrations > Developer Hub > New app on your workspace. Under Configure > Authentication keep only Read conversations and Read admins, turn off every write permission, then copy the access token. Keep it in INTERCOM_ACCESS_TOKEN on the agent or cron host. 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 Intercom 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 Intercom inbox board, and reports back.

    4. 04

      Let the script keep it current

      The agent writes a small script that checks every 2 minutes (teammates every 15 minutes) 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 "Intercom inbox" current with live Intercom 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
    Intercom: read INTERCOM_ACCESS_TOKEN from your environment (Intercom access token, Read conversations and admins). If it isn't set, ask me.
    In Intercom open Settings > Integrations > Developer Hub and create an app on your own workspace named Botopticon board. Under Configure > Authentication, edit the permissions: keep only Read conversations and Read admins, and turn off every write permission (Write conversations can reply to and close threads). Read admins sits under the extended Workspace data permissions; the board only uses it for teammate first names. Then copy the access token from the same page. The token can only do what those permissions allow. Workspaces hosted in the EU or Australia use api.eu.intercom.io or api.au.intercom.io.
    Scopes: Read conversations, Read admins.
    Intercom MCP is fine if the agent already has it. Ask it only to search and read.
    Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.
    
    4. Board
    Send "board": "Intercom inbox" 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 "Intercom" on every tile. Never change the tile keys.
    - open-conv, kpi, "Open". States: value = conversations with state open. Snoozed goes in the subtitle, not the count. needs_you stays false, except 401 -> needs kind "blocker": Replace INTERCOM_ACCESS_TOKEN. ttl_seconds 43200.
    - newest-conv, feed, "Newest". States: Label "#<id> · <channel> · <waiting | replied | closed | snoozed> · <teammate>". No contact names, emails, subjects, or message text. tone: waiting "warn", replied "ok", closed or snoozed "idle". props.state "working" if a listed thread is waiting, else "idle". ttl_seconds 43200 idle, 900 while busy. needs_you stays false.
    - teammates, leaderboard, "Teammates". States: Rank admins by open conversations assigned (admin_assignee_id), first names only, plus Unassigned. Ranking only. ttl_seconds 43200. needs_you stays false.
    
    6. Fetch notes
    Read the current Intercom REST API docs. Base https://api.intercom.io (EU: api.eu.intercom.io, AU: api.au.intercom.io), header Authorization: Bearer <INTERCOM_ACCESS_TOKEN>. Objects: Conversation (state open, closed, or snoozed; waiting_since; admin_assignee_id; updated_at), Admin.
    Open. value = conversations with state open (use total_count from search). Snoozed is not open; put it in the subtitle, e.g. "Open now · 4 snoozed".
    Newest. The 10 most recently updated conversations. Label "#<id> · <channel> · <waiting 12m | replied | closed | snoozed> · <teammate first name or Unassigned>", time HH:MM in my timezone. No contact names, emails, subjects, or message text: this board can be on a TV. tone: waiting "warn", open and replied "ok", closed or snoozed "idle". props.state "working" if a listed thread is waiting, else "idle".
    Teammates. Rank admins by open conversations assigned to them (admin_assignee_id), first names only, plus an "Unassigned" row. Ranking only.
    A thread is waiting when waiting_since is set: the contact replied last. Intercom has no "waiting on admin" state.
    No tile here asks a person to act. If Intercom answers 401, post Open with needs_you true and needs {"who":"Intercom","kind":"blocker","ask":"Replace INTERCOM_ACCESS_TOKEN"} and keep the last value.
    - Open: POST /conversations/search {"query":{"field":"state","operator":"=","value":"open"},"pagination":{"per_page":150}}; follow pages.next.starting_after.
    - Snoozed: the same search with state snoozed (total_count only).
    - Newest: POST /conversations/search on updated_at > <last run>, sort updated_at descending, per_page 10.
    - Teammates: GET /admins once an hour for names; count open conversations by admin_assignee_id.
    - Look-back: Threads can open and close between checks. Each run, search conversations with updated_at since your last run, so a thread that came in and was answered still shows in Newest. Counts come from total_count on each search.
    
    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 "Intercom inbox".
    d) Call list_tiles (or open the board): 3 tiles on "Intercom inbox", 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 2 minutes for open threads and the feed, every 15 minutes for teammates. 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 INTERCOM_ACCESS_TOKEN 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?
    None for normal traffic. Open turns amber only if Intercom rejects the token. Newest marks a waiting thread in the feed. The feed shows ids, channels, and teammate first names, never contact names or message text.
    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 Intercom 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.