The moment it happens
Get a first draft as a Google Doc from a brief
Send a topic or brief and get a structured draft saved as a new Doc in your folder.
- Runs
- The moment it happens
- Apps
- Google Docs
- AI
- Yes, uses the built-in AI allowance
- Access
- read+write (target folder shared with the service account)
Send this to your assistant
Create a ClickRuntime automation: give me a link. When I send a keyword and an audience, write a 1,200-word blog draft with headings and save it as a new Google Doc in my Drafts folder, then email me the link.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small publisher needs a 3,000-word ebook draft, a cover letter for a grant, and a video script by Friday. Staring at a blank Google Doc, the writer spends the first two hours on structure and the first awkward paragraphs. The brief already exists as a few lines in a message, but turning it into an outline, then sections, then a formatted Doc is slow, repetitive work that delays the real editing.
You send a topic or brief to a ClickRuntime trigger link. Its built-in AI drafts an outline first and then writes each section, a new Google Doc is created, the text is inserted with proper headings, and you receive an email with the link. You open a finished first draft instead of an empty page.
Marketers, consultants and course creators use it to start articles, letters, scripts and handbooks.
What you get out of it
You start editing, not staring at a blank page
A complete first draft with headings gives you something concrete to improve. Most writers find editing a draft far faster than composing from nothing, so the hours before a deadline go to quality instead of getting started.
Structure is decided before the writing
The AI produces an outline first and then writes to it, so the sections follow a logical order. That avoids the rambling feel of a draft written in one pass, and makes it easy to reorder parts in the Doc.
Every document type from one link
The same trigger can produce an article, an ebook chapter, a letter or a script, depending on the brief you send. One setup covers the whole range of writing a small team does in a month.
Drafts land where you already work
The result is a normal Google Doc in your Drive, ready for comments from colleagues. You can share it, edit it and track changes, and nothing needs to be copied out of a chat window.
Briefs can come from anywhere
A form, a spreadsheet row or a phone shortcut can send the brief. That means ideas are captured when they occur and drafted while you do other work, so a topic list turns into documents.
How it works
What happens, step by step
When you submit a brief with a topic and audience, ClickRuntime receives it straight away.
AI writes a full first draft with an outline and sections.
The draft is saved as a new Google Doc with proper headings in your Drafts folder.
You get an email with a link to the Doc.
Before it runs live
- Connect Google Docs
- Paste your automation's link into the other app's webhook settings
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 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_event, credentials, ai, notify
DRAFTS = "drafts-folder-id"
@on_event
def handle(event):
brief = event.json or {}
creds = Credentials(credentials.connection("google", "work"))
drive = build("drive", "v3", credentials=creds, cache_discovery=False)
docs = build("docs", "v1", credentials=creds, cache_discovery=False)
text = ai.generate(f"Write a 1,200-word blog draft for {brief['audience']} about '{brief['keyword']}'. "
"Use plain-text headings on their own lines.", max_output_tokens=2048).text
doc = drive.files().create(body={"name": f"Draft: {brief['keyword']}", "parents": [DRAFTS],
"mimeType": "application/vnd.google-apps.document"}, fields="id").execute()
docs.documents().batchUpdate(documentId=doc["id"], body={"requests": [
{"insertText": {"location": {"index": 1}, "text": text}}]}).execute()
link = f"https://docs.google.com/document/d/{doc['id']}/edit"
notify.email_me(f"Draft ready: {brief['keyword']}", link)
return {"doc": link}FAQ
Common questions
How long a document can it write?
Will the draft sound like me?
Where does the new document get saved?
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
Turn a video into a summary Doc
Send a video link and get a summary and social posts in a Google Doc.
See how it worksGet a company analysis Doc from a URL
Send a website and get a report with a customer profile and page gaps in a Doc.
See how it worksTurn meeting transcripts into summary Docs
A transcript you send becomes a Doc with a summary, decisions and action items.
See how it worksKeep exploring
Set up “Get a first draft as a Google Doc from a brief” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.