Skip to content
Tinbox

Build · Custom UI

Put your own UI on your mail.

Render your components into named slots in the inbox app, back them with tools the assistant can call, show a card on the messages that matter — or skip our UI and build your own on the typed API.

Conceptual textless workspace panels show a queue, reading pane, and context.
A conceptual workspace illustration. Build your own views against Tinbox’s typed API.

Ask your agent.

“Add a panel beside each customer conversation showing their account, recent orders, and the actions our support team uses. Link it to our existing admin.”

What you get

An inbox view your team can work from without repeatedly opening the admin.

Your coding agent builds a view or plugin against your own systems, then you deploy it with Tinbox.

See how to wire it up

The problem

Every business reads its mail differently. The inbox UI never changes.

An order email should show the order. A customer thread should show their plan. A dashboard should show what this week's mail means. In a rented inbox, the screen is whatever the vendor ships.

In Tinbox the surface is yours: declarative slots, card ids, and agent tools you deploy as code, reviewable in a PR.

Honest scope. Views are deploy-time and declarative: the component has to exist in your deployed UI bundle (a built-in or one you vendored). There's no drag-and-drop or runtime view builder.

Tinbox lanes used

The parts, and where to read about each.

  1. 01UI slots

    plugin.ui renders a component id into dashboard, contact-card, inbox-card, message-actions, or thread-actions.

    Extend: Views
  2. 02Agent tools

    plugin.agentTools adds the query behind the view as a tool the assistant, MCP, and CLI share.

    The data side
  3. 03Message cards

    A parser names a card id — order-card, otp-quick-copy, or your own — and the message renders it inline.

    Rich cards
  4. 04Plugin routes

    Back a component with live data from a route under /plugins/<name>/*.

    Extend: Plugins
  5. 05SDK

    Build a separate front end entirely: tinbox/sdk exposes the manifest tools and the typed API.

    SDK reference

The sketch

Short enough to read in one sitting.

A dashboard tile plus the agent tool behind it, in one plugin — then compose it into config.plugins and redeploy. Or build your own front end on the SDK.

// plugins/weekly-pulse.ts
import { definePlugin } from "tinbox/cf/plugin";
import { agenticSkill } from "tinbox/cf/skills";
import { z } from "zod";

export default function weeklyPulse() {
  return definePlugin({
    name: "weekly-pulse",
    version: "1.0.0",

    // The data side — a tool the assistant, MCP, and CLI can all call.
    agentTools: [
      agenticSkill({
        id: "weekly-signups",
        label: "Weekly signups",
        description: "Count new audience signups in the last 7 days.",
        inputSchema: z.object({ audienceId: z.string() }),
        run: async ({ audienceId }, ctx) => {
          // your query — return model-facing data
          return { audienceId, added: 42, window: "7d" };
        },
      }),
    ],

    // The UI side — render a component id into a named app slot.
    ui: [
      {
        slot: "dashboard",
        component: "info-note",
        title: "Weekly pulse",
        props: { body: "42 new signups this week. Ask the assistant for the breakdown." },
        visibility: "ui",
      },
    ],
  });
}
// Or build a whole front end of your own on the typed API.
import { Tinbox } from "tinbox/sdk";

const tinbox = new Tinbox({ host: "https://mail.acme.com", apiKey: process.env.TINBOX_API_KEY });

// Manifest tools as calls — the same ones the in-app assistant uses.
const hits = await tinbox.tools.searchEmails({ query: "invoice overdue", limit: 20 });

// And the sending API, for anything your UI sends.
await tinbox.emails.send({
  from: "Acme <support@acme.dev>",
  to: "ada@example.com",
  subject: "Re: your invoice",
  text: "Sorted — the corrected total is on your account now.",
});
An unknown component id renders nothing — a slot pointing at a component your build doesn't have fails soft, never crashes the page.

Or we build it for you

Want a custom UI built on your mail?

We design and build the cards, dashboard tiles, and tools your team needs — or a separate app on the SDK — and ship them into your deployment.
Talk to us about it →

Build it on mail you own.

Free to install and use, even commercially — the CLI, SDK, and worker ship in one npm package. Deploy Tinbox on your own Cloudflare account and start from the sketch above — or have us build it with you.