Skip to content

Automations — make Posthaste do things for you

Posthaste can react to your mail on its own: tag an invoice the moment it lands, ping you when your boss writes, run a little script of yours, or hand a message to your AI agent. This guide shows you how, in plain language, starting from the simplest thing that could work.

New here? Start with one question

What do you want to happen when a message arrives?

  • “Just tag / file / notify me.” You need a built-in rule. No code, no terminal — you build it in the app in a minute. → Automations

  • “Run my own logic.” You need a small script that Posthaste calls (or that watches for events). A copy-paste “hello world” gets you there. → Automations

  • “Let my AI agent handle it.” You need to plug your agent in — and there’s one thing almost everyone gets wrong the first time. We clear it up here. → Agents

If you’re not sure, start at the top of Automations: it opens with a short decision guide that points you to the right level.

The three pages

  • Automations — the main guide. The decision guide, built-in rules (no code), and running your own script. Read this first.
  • Agents — the headline: how to plug your AI agent into Posthaste without the usual confusion, with a full worked example.
  • Staying safe lives at the end of Automations — three rules a human actually needs.

Power users and protocol details

This guide is deliberately non-technical. If you want the exact endpoints, the event tap, tokens, and every flag: