Skip to content

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.

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

  1. When you submit a brief with a topic and audience, ClickRuntime receives it straight away.

  2. AI writes a full first draft with an outline and sections.

  3. The draft is saved as a new Google Doc with proper headings in your Drafts folder.

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

RunsThe moment it happens
Get a first draft as a Google Doc from a briefjust nowSucceeded
Email · Draft ready: invoice automationhttps://docs.google.com/document/d/1DrAfTaBc123/edit

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
  • 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

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.
ai_drafted_document_from_a_brief.pyexample
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?
Length depends on how much you ask for. Writing the outline first and each section separately lets it produce long pieces, such as several thousand words, in parts. Very long works like a full book are best done chapter by chapter, with one brief each.
Will the draft sound like me?
The more detail in the brief, such as audience, tone and an example paragraph, the closer it gets. It will still read as a draft that needs your edit, especially for facts, names and figures, which the AI can get wrong without sources.
Where does the new document get saved?
It is created in the Google Drive account you connected, in the main folder or one you choose. You can ask for a specific folder, such as Drafts, and for the title to include the date or the topic so documents are easy to find later.
What permissions does it need?
read+write (target folder shared with the service account). Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run for each event the app sends.
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 “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.