OTHER

Grant Discord Role on Stripe Subscription Start

When a member completes a paid Stripe subscription, automatically assigns the matching Discord role so they get instant access to gated channels.

CategoryOther
Enginesim
Difficultyintermediate
Triggerwebhook
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerStripe subscription created webhookStripeStripe
  • LogicMap price ID to Discord tier role
  • ActionLook up member's Discord ID in PostgresPostgreSQLPostgres
  • ActionAdd tier role to Discord memberDiscordDiscord
  • ActionWrite grant to audit tablePostgreSQLPostgres
  • OutputDM member access confirmationDiscordDiscord

What it does

Listens for successful Stripe subscription events and grants the correct Discord role to the buyer the moment their payment clears, unlocking the channels that tier is entitled to. No manual role-handing in the server.

When to use it

Run this when you sell paid community memberships through Stripe and want access provisioned instantly instead of waiting for an admin to react to a screenshot of a receipt.

How it works

  1. 1A Stripe webhook fires on `customer.subscription.created` (or `checkout.session.completed`).
  2. 2The flow reads the price/product ID and looks up the matching Discord role in a tier map.
  3. 3A branch confirms the subscription is active and the price maps to a known tier; unknown prices route to a fallback notice.
  4. 4It resolves the buyer's Discord user ID from the linking record stored in Postgres.
  5. 5Discord's API adds the role to that member.
  6. 6The grant (customer, tier, role, timestamp) is written to a Postgres audit table and a confirmation DM is sent.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect StripeCustomers, subscriptions, payments.
  2. 2
    Connect DiscordCommunity channels + voice + bots.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.