# Email in, task out

Every ZenHero org now has an inbound address and webhook: forward an email or POST a payload and it lands in the Inbox as a task awaiting accept or turn down. Nothing sneaks into projects. The full flow, including the token model and Mailgun routing.

Canonical: https://zenhero.io/blog/email-in-task-out/
Last updated: 2026-11-30


A task manager that only takes tasks through the front door misses everything
that actually arrives by email: the customer thread you forward to yourself, the
contractor's quote, the 3am incident callback with the details. You type a proxy
of the email into your task tool, lose the body, and wonder why capture software
makes capture hard.

ZenHero orgs now get their own inbox — in the most literal sense: an address.

## The flow

```
you@company.com ──forward──▶ <your-org-token>@inbound…
                                    │
webhook / form / script ──POST──────▶  /api/inbound/<token>
                                    │
                                    ▼
                        Inbox task (projectless)
                        subject → title
                        body → description
                        sender → metadata
                                    │
                     ┌── accept ────┴──── turn down ──┐
                     ▼                                 ▼
              chosen project                    archived as cancelled
```

One POST — `/api/inbound/token` — provisions your org's token (long random hex,
stored on the org, stable once issued). From then on, anything forwarded to
that address or POSTed to the webhook arrives as a task in your Inbox.

## Inbox-first, by design

Things that arrive by themselves **wait in Inbox** — never in a project. That's
the Queues pattern we liked enough to steal explicitly: *"Your lists stay yours.
Nothing sneaks into Today."* The task exists, it's visible, it's counted — and a
human decides whether it's work:

- the ✓ accepts it, optionally straight into the project you're already
  filtering by;
- the × turns it down, archiving as `cancelled` — the record survives, and the
  activity log says who decided.

Forwarded email is triage; the tool shouldn't out-triage you.

## The parser underneath

Subjects become titles; the body becomes the description; the sender is stamped
into metadata (`capturedFrom: email_inbound`, plus the from address). Both
endpoints accept:

| Input | Shape |
|---|---|
| Mailgun route | form fields: `sender`, `subject`, `body-plain`, `stripped-text` |
| Plain JSON | `{ "subject": "…", "body": "…", "from": "…" }` |
| Generic webhook | `{ "title": "…", "body": "…" }` |

Tasks created this way flow through the same creation pipeline as everything
else — activity log entries, `task.created` wake events for connected agents,
and (if an agent is subscribed) a brief-ready trail for the catch-up summary.
Capture is not a side channel; it's the same front door.

## What it isn't

It isn't a signature-verified API. The token is a bearer credential, fine for
mail routes and internal scripts, rate-limited at the edge. If your threat
model wants HMAC-signed delivery, that exists on the outbound side (org
webhooks and agent triggers) — and for the *suite*, apps talk to each other
through the signed inter-app endpoints. Inbound is deliberately the low-friction
edge guarded by a human accept step.

## Suite note: the flywheel's mouth

SuperForm and SuperFeedback already push scored, structured signals into
ZenHero through the signed inter-app pipeline. The inbound address is for
everything that lands *outside* your tooling — it's the suite's intake edge for
reality. Forward, accept, and it joins the same backlog that the votes,
sentiment and churn-risk signals are already re-weighting.

*Related: [type it the way you'd say it](/blog/natural-language-quick-add/),*
*[when a checkbox turns into real work](/blog/split-out-as-task/).*

