Every hour
Turn keywords in a sheet into article drafts in Google Docs
Mark a keyword Ready in your sheet and an outline appears in a new Google Doc, with the link written back to the row.
- Runs
- Every hour
- Apps
- Google Docs, Google Sheets
- AI
- Yes, uses the built-in AI allowance
- Access
- Sheet edit; Docs create
Send this to your assistant
Create a ClickRuntime automation: every hour, for each keyword marked Ready in my Content sheet, write an SEO outline in a new Google Doc, add the link to the row and mark it Drafted.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small content team keeps its keyword plan in a spreadsheet. Turning each row into a brief means opening a blank doc, researching headings and writing the structure, which is the part that keeps slipping when the week gets busy.
Having a first outline waiting in Docs for every approved keyword means writers start from a structure, not a blank page. The sheet stays the single place to see what is planned, drafted and published.
What you get out of it
No blank-page starts
Each writer opens a doc that already has headings and key points. Time goes into the writing and the expertise, not the scaffolding.
The plan stays in one sheet
Status and doc link are written back to the keyword row. Anyone can see at a glance what has been drafted.
Approval stays with you
Only rows you mark Ready are picked up. Nothing is written for keywords that have not been signed off.
Consistent briefs across writers
Every outline follows the same shape. Editing and reviewing several articles a week gets easier.
How it works
What happens, step by step
Every hour, ClickRuntime reads your Content sheet and looks for keywords marked Ready.
For each one, AI writes an outline with headings and key points.
The outline is saved in a new Google Doc named after the keyword.
The row is updated to Drafted with a link to the doc, so it is not picked up again.
Before it runs live
- Connect Google Docs
- 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
- 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 Google Docs 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, ai, report_fetched, log
SHEET_ID = "your-spreadsheet-id"
@on_trigger
def run(event):
creds = Credentials(credentials.connection("google", "work"))
sheets = build("sheets", "v4", credentials=creds, cache_discovery=False).spreadsheets()
rows = sheets.values().get(spreadsheetId=SHEET_ID, range="Content!A2:C").execute().get("values", [])
ready = [(i + 2, r[0]) for i, r in enumerate(rows) if len(r) > 1 and r[1] == "Ready"]
report_fetched(len(ready))
if not ready:
return {"drafted": 0}
docs = build("docs", "v1", credentials=creds, cache_discovery=False).documents()
for row, keyword in ready[:10]:
try:
outline = ai.generate(f"Write an SEO article outline with H2/H3 headings and bullet points for: {keyword}", max_output_tokens=900).text
except ai.AIError as e:
log.warning("AI unavailable", {"code": e.code})
break
doc = docs.create(body={"title": keyword}).execute()
docs.batchUpdate(documentId=doc["documentId"], body={"requests": [{"insertText": {"location": {"index": 1}, "text": outline}}]}).execute()
sheets.values().update(spreadsheetId=SHEET_ID, range=f"Content!B{row}:C{row}", valueInputOption="USER_ENTERED",
body={"values": [["Drafted", f"https://docs.google.com/document/d/{doc['documentId']}"]]}).execute()
return {"drafted": len(ready[:10])}FAQ
Common questions
Does it write the full article or just an outline?
Where are the docs saved?
Can I add notes for each keyword, like audience or angle?
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
Summarise new Google Docs into a sheet
Every new document in your folder gets a short summary added to a Google Sheet, with its title and link.
See how it worksTurn companies in a sheet into research briefs in Google Docs
Add a company to your sheet and a research brief appears in a Google Doc, with the link written back into the row.
See how it worksDraft a proposal Google Doc from each new client row
Add a client's scope and budget to your sheet and a drafted proposal from your template appears, linked in the same row.
See how it worksKeep exploring
Set up “Turn keywords in a sheet into article drafts in Google Docs” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.