← Back to Help

Admin Automations

Admin Automations fire system-wide notifications when events happen on the platform — like when a new user signs up or an account is cancelled. Only admins can configure them.

Creating an Admin Action

1. Go to Admin → Automations

2. Click New Action

3. Give it a name (e.g., "New User Alert")

4. Choose an event:

- User Signup — fires when anyone creates an account

- Account Cancelled — fires when a user deletes their account

5. Choose a channel:

- Webhook — POST to any URL

- Email — Send to an email address (requires SMTP configured)

- Discord — Send to a Discord webhook URL

- Telegram — Send to a Telegram chat ID

- Slack — Send to a Slack webhook URL

6. Write a payload template using variables (see below)

7. Click Create

Template Variables

| Variable | Description | Example |

|----------|-------------|---------|

| {event_type} | What happened | user_signup or account_cancelled |

| {email} | User's email | user@example.com |

| {user_id} | Clerk user ID | user_2abc... |

| {tier} | Plan tier | free or developer |

| {total_users} | Total user count after the event | 142 |

| {now} | Current timestamp | 2026-05-30 18:00 UTC |

Example Templates

Telegram/Slack notification:

`

🆕 New user signed up

Email: {email}

Tier: {tier}

Total users: {total_users}

`

Account cancellation alert:

`

❌ Account cancelled

User: {email}

Previous tier: {tier}

Remaining users: {total_users}

`

Webhook JSON:

`json

{

"event": "{event_type}",

"email": "{email}",

"user_id": "{user_id}",

"total_users": "{total_users}"

}

`

How It Works

When a user completes registration or deletes their account, all active admin actions with matching event types fire immediately. The dispatch is synchronous — notifications are sent in real-time during the request.

Account Cancellation Flow

When a user deletes their account (via Clerk's "Delete Account" in their profile):

1. Clerk sends user.deleted webhook

2. RSSFlux cancels any active Stripe subscription

3. All user data is removed from the database

4. Admin automations with account_cancelled event fire

The user cannot log in again — their Clerk account is revoked.

Future Events

| Event | Planned |

|-------|---------|

| feed_created | When a user creates a feed |

| payment_received | When a subscription payment succeeds |

| tier_changed | When a user upgrades or downgrades |