Every 10 minutes
Create a Discord channel for each new project in your sheet
Add a project row to your sheet and a Discord channel is created, its members are tagged in a welcome message, and the channel ID is saved back.
- Runs
- Every 10 minutes
- Apps
- Discord, Google Sheets
- AI
- Not needed
- Access
- Discord Manage Channels; Sheets edit
Send this to your assistant
Create a ClickRuntime automation: every 10 minutes, for each new project in my Projects sheet, create a Discord text channel, post a welcome tagging the listed members, and write the channel ID back to the row.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A game studio runs each project's day-to-day chat in its own Discord channel. Project leads add new projects to a shared sheet, but someone with admin rights then has to create the channel and invite people. Projects start in general chat and the history ends up scattered.
Creating the channel from the sheet means a project gets its own space as soon as it is listed, with the right people already pinged.
What you get out of it
Every project has a home from the start
The channel exists within minutes of the row being added. Early decisions are made where the rest of the project's history will live.
No waiting for an admin
Project leads only need to edit the sheet. The channel is created for them without asking someone with server permissions.
Members know where to go
The welcome message tags each listed member. They get a notification that leads them straight to the new channel.
The sheet links to every channel
The channel ID written back to the row ties the project list to Discord. It also stops the same project getting two channels.
How it works
What happens, step by step
Every 10 minutes, ClickRuntime reads your Projects sheet.
Rows that already have a channel ID are skipped.
For each new project, a Discord text channel is created and a welcome message tags the listed members.
The new channel's ID is written back to the row.
Before it runs live
- Connect Discord
- Connect your Google Sheets account and pick the spreadsheets it may use
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Discord and Google Sheets steps into one automation
Under the hood
The code that runs this automation
import re
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, report_fetched
SHEET_ID = "your-spreadsheet-id"
GUILD_ID = "your-discord-server-id"
CATEGORY_ID = "your-category-id"
@on_trigger
def run(event):
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
rows = sheets.spreadsheets().values().get(spreadsheetId=SHEET_ID, range="Projects!A2:C").execute().get("values", [])
new = [(i + 2, r) for i, r in enumerate(rows) if r and r[0] and (len(r) < 3 or not r[2])]
report_fetched(len(new))
if not new:
return {"summary": "Nothing new"}
bot = {"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"}
for row, r in new:
name = re.sub(r"[^a-z0-9]+", "-", r[0].lower()).strip("-")[:90]
ch = http.post(f"https://discord.com/api/v10/guilds/{GUILD_ID}/channels", headers=bot,
json={"name": name, "type": 0, "parent_id": CATEGORY_ID}).json()
mentions = " ".join(f"<@{m.strip()}>" for m in (r[1] if len(r) > 1 else "").split(",") if m.strip())
http.post(f"https://discord.com/api/v10/channels/{ch['id']}/messages", headers=bot,
json={"content": f"Welcome to **{r[0]}** {mentions}"})
sheets.spreadsheets().values().update(spreadsheetId=SHEET_ID, range=f"Projects!C{row}",
valueInputOption="RAW", body={"values": [[ch["id"]]]}).execute()
return {"summary": f"{len(new)} channels created"}FAQ
Common questions
How are members listed in the sheet?
Can new channels go into a category?
What permissions does the bot need?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Post new and changed sheet rows to Discord
Whenever a row in your sheet is added or changed, a formatted message appears in your Discord channel.
See how it worksModerate a Discord channel against rules in a Google Sheet
New messages in your channel are checked against your rules sheet, and any that break a rule are logged and flagged to your moderators.
See how it worksExport Discord members with a role to Google Sheets
A sheet listing every member of your Discord server who has a chosen role, refreshed each day.
See how it worksKeep exploring
Set up “Create a Discord channel for each new project in your sheet” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.