Docs/Getting Started

Create a trigger

A trigger is Hermes' replacement for traditional campaigns. Instead of building segments, picking templates, and scheduling follow-ups manually, you describe what you want in plain English — and Hermes handles the rest.

How triggers work

When you create a trigger, Hermes generates a detection query from your description and runs it against your connected data source to find matching users. The query must return at minimum a user ID and an email address.

Example: what Hermes might generate
SELECT id, email
FROM users
WHERE created_at < now() - interval '14 days'
AND id NOT IN (
  SELECT user_id FROM team_members
);

Any valid query that returns a user ID and email address works — SQL for database and CSV sources, HogQL for PostHog, structured queries for Firestore and Stripe. You can also write your own.

Matching the query is not the same as getting an email. Each matched user goes through three stages:

  1. Evaluate. An AI evaluator decides, per person, whether now is the right moment — it sees what they've already received from this trigger, whether they replied, their engagement, and their unsubscribe status. It can decide to send now, wait and re-check later, or skip the person entirely.
  2. Draft. For everyone the evaluator green-lights, Hermes reads that user's actual data and writes a one-of-a-kind email — guided by your trigger prompt and by the evaluator's reasoning about why this moment matters.
  3. Send or review. Drafts either go to your review queue or send automatically, depending on the trigger's send mode.

This evaluation step is why "50 users matched but only 12 emails drafted" is normal — the rest were skipped or deferred on purpose, and every decision is logged.

The email prompt

The second half of a trigger is the prompt: a plain-language brief for what the email should accomplish. You're briefing a writer, not filling in a mail-merge — describe the intent, tone, and what to reference, and Hermes writes fresh copy per person.

Example prompt
Congratulate them on their first completed project. Reference what they
built specifically. Ask one short question about what they're planning
next. Keep it under 100 words, casual, no exclamation marks.

Types of triggers

Transactional

Triggered by a specific user action or event. Hermes evaluates each user individually and decides whether to send — so you are not just blasting everyone who matches a condition.

Examples:

  • User signs up → send a personalized welcome email referencing what they came to do
  • User has been inactive for 7 days → send a re-engagement email based on their last action
  • User hits a usage limit → send an upgrade email that explains exactly what they would unlock

Transactional emails are not subject to unsubscribe. They are sent regardless of marketing preferences because they are directly related to the user's activity on your platform.

Marketing

Ongoing campaigns that run continuously on a schedule. Hermes identifies matching users, drafts personalized emails from their data, and handles the compliance details — unsubscribe links, suppression, one-click opt-out — automatically.

Examples:

  • End of month round-up — summarize each user's activity over the past 30 days
  • Power users who haven't referred anyone — send a personalized referral ask
  • Users approaching their renewal date — highlight what they have used and what they would lose

Users can unsubscribe from marketing triggers. Hermes respects this automatically — anyone who has opted out will not receive marketing emails even if they match the query criteria.

Schedule and re-contact rules

SettingWhat it controls
Scan intervalHow often the detection query runs (default: hourly). Lower is more responsive; higher is lighter on your data source.
One-time vs. recurringBy default, each person can only ever receive a trigger's email once — even if they keep matching the query. Recurring triggers let people re-enter the funnel.
Recurrence cooldownFor recurring triggers: how many days after receiving the email a person is locked out before they can be detected again. This is how a "monthly usage recap" actually fires monthly without spamming.

You can also run any trigger immediately with Run now — from the dashboard, CLI (hermes triggers run), MCP, or API — and preview a trigger to see who the query matches before anything is drafted.

Auto-send vs. review mode

Every trigger has a send mode. We recommend starting in review mode for any new campaign — it lets you inspect each drafted email before it goes out.

ModeBehavior
Review modeHermes drafts emails and places them in your email queue for approval. Nothing sends until you approve it. Recommended for new triggers.
Auto-sendHermes drafts and sends automatically on schedule. Use this once you are confident in the output quality of an established trigger.

Sender and template

Each trigger picks which sender identity the email goes out as, and how the copy is presented — plain text, simple HTML, or a branded designed template. Both default to your organization's settings if you don't override them.

Managing your triggers

Triggers run indefinitely until you stop them. From the triggers dashboard you can pause, resume, or delete any trigger at any time, and see every run: when it scanned, how many people it detected, and any errors. Each trigger has a performance view showing delivery rates, open rates, and reply rates — so you can see what is working and adjust accordingly.

Not sure what to trigger on? Check your signals — Hermes periodically mines your data for cohorts worth reaching and hands you the campaign idea, evidence included.