> Every event that can start a sequence, from Checkout Completed and Invoice Refunded to Cart Abandoned and your own webhook.

Source: https://plandalf.com/docs/automations/triggers

Automations

# Triggers

The trigger decides when a sequence runs. Pick **Plandalf** as the app for purchase and checkout events, or a connected app to start a sequence from something that happens there.

## Plandalf triggers

Every trigger here except **Webhook Trigger** has an **Offer** field. Pick one or more checkouts to limit the sequence to them, or leave it empty for all.

Trigger

Starts a sequence when

**Checkout Completed**

A customer completes a main checkout and the invoice is paid. Upsells don't count.

**Invoice Paid**

Any invoice is paid: checkouts, upsells, subscription renewals and invoices you send.

**Invoice Finalized**

A draft invoice is finalized and ready for payment.

**Invoice Voided**

An invoice is cancelled without payment.

**Invoice Refunded**

A refund on a paid invoice succeeds, including one you make in Stripe.

**Upsell Created**

An upsell invoice is created after checkout.

**Upsell Accepted**

A customer pays an upsell offered after their main checkout.

**Cart Abandoned**

A visitor gave their email at checkout but didn't pay.

**Cart Recovery**

A payment fails, such as a declined card or an abandoned 3D Secure check.

**Webhook Trigger**

Something sends a request to the trigger's own URL.

There's no trigger for a cancelled subscription. To act on cancellations, use the `subscription.canceled` webhook event; see [Webhooks and Zapier](https://plandalf.com/docs/automations/zapier).

### Invoice Refunded

**Full refunds only** is on by default, so Plandalf runs the sequence once the invoice is refunded in full and a partial refund leaves it alone. Turn it off to run on every refund, for example to tell your team. Besides the purchase fields, it gives later steps `refund_amount_formatted` (this refund, such as `29.70`), `refunded_total_formatted` (everything refunded so far), `is_full_refund`, `refund_id` and `offer_name`.

### Cart Abandoned

Choose how long to **Wait before sending**: 5 minutes, 30 minutes (the default), 1 hour, 6 hours, 24 hours, 3 days or 7 days. When the wait is over, Plandalf checks again and runs the sequence only if they still haven't paid. For a follow-up series, add **Delay** and **Send Email** pairs after the first email.

**Skip GDPR-region visitors** leaves out visitors whose IP address is in the EU, EEA or UK, and visitors whose country is unknown. Location alone isn't consent, so pair it with a consent checkbox on your checkout if you need one.

### Cart Recovery

The trigger includes `retry_url`, a Plandalf page where the customer can pay that invoice with another card. Add a **Delay** of an hour or more before the email, so the customer has time to retry first.

## Webhook Trigger

Use it to start a sequence from any tool that can send an HTTP request: your email platform, a form, Zapier or your own server.

1.  ### Save the trigger
    
    Choose **Plandalf** and **Webhook Trigger**, then save. On **2\. Config**, **Webhook URL** shows its address, which ends in `/hooks/catch/{sequence}/{trigger}`. Click **Copy**.
    
2.  ### Send a request
    
    Send a request with a JSON or form body to the URL. The body becomes the trigger's data, so a field called `email` is `{{trigger.email}}` in later steps.
    
    ```bash
    curl -X POST "YOUR-WEBHOOK-URL" \
      -H "Content-Type: application/json" \
      -d '{"email": "jane@example.com", "first_name": "Jane"}'
    ```
    
3.  ### Pick it as the sample
    
    On **3\. Test**, pick the request you sent. Plandalf lists the last five it received.
    

Plandalf answers `200` with `"Workflow started"`, or `"Webhook received but trigger was skipped"` when the sequence is off. A deleted sequence or trigger answers `410`, which tells a sending app to stop retrying.

**Keep the URL private**

The URL has no signature check. Anyone who has it can start the sequence.

A common use is enrolling people in a deadline timer when they join your email list: a Webhook Trigger, then **Enroll in Promo**. A deadline timer's **Emails** tab has **Create enrolment automation**, which builds that pair for you. See [Tiers](https://plandalf.com/docs/promos/tiers).

## Triggers from connected apps

App

Triggers

Setup

[Kit](https://plandalf.com/docs/automations/kit)

Subscriber Created, Tag Added to Subscriber, Subscriber Joined Form, Subscriber Unsubscribed

Automatic

[Drip](https://plandalf.com/docs/automations/drip)

Subscriber Created, Tag Applied to Subscriber, Subscriber Unsubscribed

Automatic

[Mailchimp](https://plandalf.com/docs/automations/mailchimp)

Contact Subscribed, Contact Unsubscribed

Automatic

[MailerLite](https://plandalf.com/docs/automations/mailerlite)

Subscriber Created

Automatic

[Circle](https://plandalf.com/docs/automations/circle)

Member Created

By hand in Circle

For the automatic ones, Plandalf adds a webhook to your account in that app when you save the trigger, and the trigger shows **Connected to Kit** (or the app's name). Deleting the trigger removes the webhook. If the app refuses, you'll see its reason and a **Try again** button. Plandalf skips repeated deliveries, so a retry from the app doesn't start the sequence again.

## Test purchases

Purchases and refunds made in test mode don't start sequences unless the sequence has **Run on test purchases** turned on in its **Settings**. It's off by default, so test checkouts don't pay commissions or email customers. The trigger data includes `mode`, `test` or `live`, if a step needs to tell them apart.

Something wrong or missing? Email [hello@plandalf.com](mailto:hello@plandalf.com).
