Docs · Workflows

Custom triggers

Send an email when any event you choose happens.

On this page
  1. 1

    Create it

    In Workflows, open the Trigger Library and click Custom Event. Type an event name such as invite_sent and click Create Automation.

  2. 2

    Send the event

    Add one line where it happens in your app, or send it with the server API.

    JavaScript
    window.Atlis.track("invite_sent");
  3. 3

    Write the email and switch it on

    Custom workflows start as Draft, like all others.

  • Names use lowercase letters, numbers and underscores. Other characters become _.
  • You can't reuse a built-in trigger name.
  • Custom triggers send every time the event happens.

Key page workflows

To email people who visit one of your key pages, open Custom Event in Workflows and pick the page under Or when someone visits a key page. It's added as a draft named Visited and the page name, for example Visited Pricing. No code is needed: Atlis already records key page visits from page views (sub-pages count too, and single-page apps need a page view on each route change). Each person gets it once. For a pricing, plans or upgrade page, the draft waits 1 day and stops if they start paying or upgrade, so you can write "Visited pricing but didn't upgrade". Change the wait, Stop if they do and Only send when like any workflow. Removing the key page in Settings stops its workflow. Pages with cancel or downgrade in the path or name aren't offered: use the built-in Cancellation Page Visited or Downgrade Page Visited workflow and track cancellation_page_visited or downgrade_page_visited when that page opens, so the visit also counts as a churn signal (health score, at risk, owner alerts).

Segment workflows

To email people when they join a segment, open Custom Event in Workflows and choose one of your saved segments or a smart segment under Or when someone joins a segment, then click Set up. You can also click Email people when they join on a segment in Segments. The workflow is named Joined and the segment name, for example Joined Loyal, and starts with a ready-written email you can change.

  • Atlis checks who is in the segment once a day, so the email goes out within a day of someone joining. No code is needed.
  • Each person gets it once. People who are already in the segment and pass your Only if rules the first day it's on don't get it; to email them too, send them a broadcast. Someone in the segment who doesn't pass the rules that day gets it on the first day they do.
  • Follow-up emails stop once the person leaves the segment. If the segment is deleted, the workflow stops sending.
  • Only if rules, follow-ups, versions and the Button link work like any other workflow.
  • Ideas: Loyal → ask for a review, Unhappy → a personal check-in, Churned: Too complex → offer to set it up with them, your own "Paying, health at risk" segment → a check-in from you.

Recipes

In the Custom Event window, Or start from a recipe adds a ready-written workflow as a draft. Send its event from your app, review the email, set its Button link, then switch it on.

RecipeEvent to sendWhat it does
Usage limit approachingAtlis.track("usage_limit_approaching", { used: 950, limit: 1000, limit_name: "contacts" })Invites them to upgrade before they're blocked. Stops if they upgrade.
Usage limit reachedAtlis.track("usage_limit_reached", { limit: 1000, limit_name: "contacts" })Tells them right away how to keep going. Stops if they upgrade.
Checkout started, not paidAtlis.track("checkout_started")Waits 3 hours, then reminds them, unless they paid (subscription activated, plan upgraded or payment method added). Works with any billing provider.
Stripe checkout expired, not paidNothing to send: Stripe sends checkout_abandoned when a Checkout expires unpaid (select checkout.session.expired)Reminds them right away. It isn't sent if they paid after opening that checkout, and stops if they upgrade. The email can use {{amount}}, {{plan}} and {{recovery_url}} (Stripe's link back to the same checkout, when you turn on recovery in Stripe).

Usage limit emails use {{used}}, {{limit}} and {{limit_name}} from the event, so send those details with it. For a win-back with a discount, set the Subscription Cancelled workflow's Button link to your billing or pricing page with your coupon code in it.

Try it in your own workspace

Start with a 14-day trial with Growth features. No credit card needed.

Start free