Hourly
Work through a content queue in Sheets and post results to Discord
Every hour, the next ready idea in your sheet becomes a draft script or caption, is saved back to the row and is posted to your Discord channel.
- Runs
- Hourly
- Apps
- Discord, Google Sheets
- AI
- Yes, uses the built-in AI allowance
- Access
- Sheets edit (only the sheets you pick when connecting); Discord bot send messages
Send this to your assistant
Create a ClickRuntime automation: every hour, take the next row marked 'ready' in my Content sheet, write the script or caption for it, save it to the row, set the status to 'done' and post it to my #content Discord channel.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small creator team keeps its content ideas in a Google Sheet: topic, platform, angle and a status column. Turning each idea into a first-draft script or caption is slow, and the queue grows faster than the drafts. The team chats in Discord, but has to open the sheet to find out what is ready to film or post.
This automation works through the queue one row at a time, writes a first draft for each ready idea, saves it in the sheet and posts it to Discord. The team wakes up to drafts to edit rather than blank rows.
What you get out of it
The queue keeps moving
One idea is drafted every hour, so a backlog of twenty ideas has drafts within a day. Writers spend their time editing, which is faster than starting from scratch.
The sheet stays the plan
Drafts are written back to the same row and the status changes to done. Anyone can see in one place what is drafted and what is still waiting.
The team sees drafts where they talk
Each draft is posted in your Discord channel, ready for reactions and comments. Nobody has to remember to check the sheet.
You stay in control of what is drafted
Only rows you mark as ready are picked up. Ideas that need more thought can stay in the sheet without being touched.
How it works
What happens, step by step
Every hour, ClickRuntime looks in your Content sheet for the first row marked ready.
AI writes a draft script or caption from that row's topic, platform and notes.
The draft is saved into the row and its status is changed to done, so it is not picked up again.
The draft is posted to your #content channel in Discord.
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
- Run it at a different time, more or less often, or only on weekdays
- Change what the AI looks for, or how it writes the result
- 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
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai
SHEET_ID = "your-spreadsheet-id"
CHANNEL_ID = "your-discord-channel-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="Content!A2:E").execute().get("values", [])
for i, row in enumerate(rows, start=2):
row = (row + [""] * 5)[:5]
topic, platform, notes, status = row[0], row[1], row[2], row[3]
if status.strip().lower() != "ready":
continue
draft = ai.generate(f"Write a {platform} script or caption.\nTopic: {topic}\nNotes: {notes[:1500]}",
system="Friendly, direct, no hashtags unless asked.", max_output_tokens=600).text.strip()
sheets.spreadsheets().values().update(spreadsheetId=SHEET_ID, range=f"Content!D{i}:E{i}", valueInputOption="RAW",
body={"values": [["done", draft]]}).execute()
http.post(f"https://discord.com/api/v10/channels/{CHANNEL_ID}/messages",
headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"},
json={"content": f"**{topic}** ({platform})\n{draft}"[:2000]})
return {"drafted": topic}
return {"drafted": None}FAQ
Common questions
Why one row per hour instead of all at once?
How does it know the style to write in?
What happens if no rows are ready?
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
Export 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 worksWatch a list in Google Sheets and alert Discord when something changes
Sites, domains or prices you list in a sheet are checked every 30 minutes, the sheet shows the latest status, and Discord hears when one flips.
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 worksKeep exploring
Set up “Work through a content queue in Sheets and post results to Discord” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.