Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every 10 minutes, ClickRuntime reads your Projects sheet.

  2. Rows that already have a channel ID are skipped.

  3. For each new project, a Discord text channel is created and a welcome message tags the listed members.

  4. 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

RunsEvery 10 minutes
Create a Discord channel for each new project in your sheettoday, 9:00Succeeded
Discord · #northwind-redesignWelcome to Northwind Redesign @Priya @Sam @Jordan

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
create_discord_channels_from_sheet_rows.pyexample
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?
As Discord user IDs, separated by commas, in a members column. User IDs are used because display names can change or be shared by several people.
Can new channels go into a category?
Yes, set a category ID and every new channel is created inside it. That keeps project channels grouped in your server's sidebar.
What permissions does the bot need?
Manage Channels to create the channel, and Send Messages to post the welcome. It does not need administrator rights.
What permissions does it need?
Discord Manage Channels; Sheets edit. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.