CHATBOTS
Auto-assign tiered Discord roles from GitHub contribution volume
On a daily schedule, this tallies each member's merged PRs in your repo and promotes them through Discord role tiers (Newcomer, Contributor.
How it runs
The automated pipeline, trigger to output.
- TriggerDaily schedule
- ActionRead member-to-GitHub directoryPostgres
- ActionFetch merged-PR count per memberGitHub
- LogicMap count to role tier
- ActionApply tier role, remove lower tierDiscord
- OutputPersist updated tierPostgres
What it does
Keeps Discord roles in sync with how much each person has actually contributed. Once a day it pulls each linked member's lifetime merged-PR count from GitHub and assigns the matching tier role — promoting people automatically as they cross the next threshold, with no manual review.
When to use it
Use this when a single Contributor role is too blunt and you want recognition tiers (e.g. 1+ PRs = Contributor, 10+ = Trusted, 50+ = Core Maintainer) that update themselves as the community grows.
How it works
- 1A scheduled trigger runs the workflow once per day.
- 2A Postgres action reads the member directory mapping Discord IDs to GitHub usernames.
- 3The GitHub action fetches each member's merged-PR count in the repo.
- 4A logic step maps each count to its tier (Newcomer, Contributor, Trusted, Core).
- 5The Discord action applies the new tier role and removes any lower tier it replaces.
- 6The run writes the updated tier back to Postgres so promotions are auditable.
Set it up
What you configure once, before turning it on.
- 1Connect DiscordCommunity channels + voice + bots.
- 2Connect GitHubRepos, issues, pull requests, actions.
- 3Connect PostgresAny Postgres URL — query, write, migrate.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Chatbots workflows
Discord Onboarding Completion to CRM Sync
The moment a member finishes Discord onboarding, captures their submitted profile answers, creates or updates a contact in HubSpot.
Discord FAQ-Gated Role Concierge
Greets each new Discord member in a private onboarding thread, walks them through required FAQ steps one at a time.
Discord FAQ Free-Text Answer Grader
When a member submits a free-text answer in their onboarding thread, an agent grades it against the canonical FAQ knowledge base, replies with targeted feedback.
Discord verify-button onboarding via web form webhook
Receives a completed external verification form by webhook, matches it to the Discord account, grants the verified role, and confirms back to the member in Discord.
Discord intro-gated role granting concierge
Watches your #introductions channel, uses AI to confirm a new member's intro is genuine and complete, then auto-assigns the verified Member role and welcomes them.
Daily Discord Digest of Repeated WAF False-Positive Reports
Each morning, scans logged Discord WAF reports in Postgres, groups them by the Cloudflare rule that keeps firing.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
