Skip to content

Every 15 minutes

Turn sheet briefs into AI drafts reviewed in Teams

Add a brief to your sheet and an AI draft is written into the row and posted to your Teams channel for review.

Runs
Every 15 minutes
Apps
Google Sheets, Microsoft Teams
AI
Yes, uses the built-in AI allowance
Access
Sheets read+write; ChannelMessage.Send

Send this to your assistant

Create a ClickRuntime automation: when I add a row to my Briefs sheet, write the draft with AI, save it in the sheet, and post it to our Teams channel for review.

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 recruitment team writes job descriptions all week, and a small marketing team writes social posts from short briefs. The briefs already hold the facts: role, level, location, key points. Turning each one into a first draft is repetitive, and drafts sit in someone's documents where reviewers never see them.

This automation takes each new brief row, has AI write a draft in your house style, saves it back in the row and posts it to a Teams channel. Reviewers comment in Teams, and the sheet keeps the brief and the draft side by side.

What you get out of it

  • First drafts in minutes

    A brief added in the morning has a draft waiting by the time you check Teams. Writers spend their time improving drafts, not starting them.

  • Review where the team already talks

    Drafts land in a Teams channel the reviewers already follow. Feedback happens in the thread, not in long email chains.

  • Brief and draft side by side

    Each draft is saved in the same row as its brief. Anyone can check the draft against what was asked for.

  • Consistent tone across writers

    Your style notes go into every draft. Job ads and posts sound like one company even when different people write the briefs.

How it works

What happens, step by step

  1. Every 15 minutes, ClickRuntime reads your Briefs sheet and finds rows that do not have a draft yet.

  2. AI writes a draft for each new brief, following your style notes.

  3. The draft is saved into the row next to its brief.

  4. Each draft is posted to your Teams channel so reviewers can comment on it.

Before it runs live

  • Connect your Google Sheets account and pick the spreadsheets it may use
  • Connect Microsoft Teams

What you get

RunsEvery 15 minutes
Turn sheet briefs into AI drafts reviewed in Teamstoday, 9:00Succeeded
Teams · Content reviewDraft for review (job description, row 14): Contoso is hiring a Warehouse Team Lead in Leeds...

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 Sheets and Microsoft Teams 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_drafts_from_sheet_rows_shared_in_teams_for_review.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai, report_fetched

SHEET_ID = "your-spreadsheet-id"
TEAM_ID, CHANNEL_ID = "your-team-id", "your-channel-id"
STYLE = "Plain, friendly, specific. No buzzwords. Job ads under 300 words, posts under 60."

@on_trigger
def run(event):
    values = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets().values()
    rows = values.get(spreadsheetId=SHEET_ID, range="Briefs!A2:C").execute().get("values", [])
    new = [(n, r) for n, r in enumerate(rows, start=2) if len(r) >= 2 and r[1].strip() and len(r) < 3]
    report_fetched(len(new))
    if not new:
        return {"new": 0}
    for n, (kind, brief) in new[:10]:
        try:
            draft = ai.generate(f"Write a {kind}.\nBrief: {brief[:2000]}", system=STYLE, max_output_tokens=700).text
        except ai.AIError:
            break
        values.update(spreadsheetId=SHEET_ID, range=f"Briefs!C{n}", valueInputOption="RAW", body={"values": [[draft]]}).execute()
        http.post(f"https://graph.microsoft.com/v1.0/teams/{TEAM_ID}/channels/{CHANNEL_ID}/messages",
                  headers={"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"},
                  json={"body": {"contentType": "text", "content": f"Draft for review ({kind}, row {n}):\n\n{draft}"}})
    return {"new": len(new)}

FAQ

Common questions

What should a brief row contain?
A type (for example job description or social post) and the key facts in a few columns or a short paragraph. The more specific the brief, the less editing the draft needs.
How does it know which rows are new?
Rows with an empty draft column are treated as new. Once the draft is written there, the row is not picked up again.
Can I set a house style?
Yes. A few lines of style notes, such as tone, length and words to avoid, are included with every brief.
What permissions does it need?
Sheets read+write; ChannelMessage.Send. 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 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 “Turn sheet briefs into AI drafts reviewed in Teams” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.