Skip to content

Daily

Publish your sheet content plan to X

Posts planned in your Google Sheet are written up by AI and published on X on the day you scheduled them.

Runs
Daily
Apps
Google Sheets, X
AI
Yes, uses the built-in AI allowance
Access
Sheets edit; X tweet.write

Send this to your assistant

Create a ClickRuntime automation: every day at 10am, check my Content Plan sheet for rows due today, write an X post from each brief, publish it and mark the row Posted with 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 marketing team plans its social content in a shared sheet: dates, themes, product launches. The plan is good, but someone still has to log in and post every day, and when that person is off sick or busy with a launch, the calendar slips and the plan stops meaning anything.

Letting the sheet drive the posting keeps the plan and what actually happens the same. The team discusses and edits rows together, and the posts go out on the planned days whoever is around.

What you get out of it

  • The plan is what gets posted

    Posts go out on the dates in the sheet, so the calendar is something you can rely on, not just a wish list.

  • Briefs become finished posts

    A row only needs a short brief. AI turns it into a post that fits X's length and your tone, so planning stays quick.

  • One shared view for the team

    Everyone edits the same sheet they already use, and the Posted column shows at a glance what went out and when.

  • Posting doesn't depend on one person

    Holidays and busy weeks no longer stop your account. The schedule keeps running from the sheet.

How it works

What happens, step by step

  1. Every morning ClickRuntime reads your content sheet and finds rows due today that are not yet posted.

  2. AI turns each brief into a post that fits X's length limit.

  3. The post is published on your X account.

  4. The row is marked Posted with a link, so it is never posted twice.

Before it runs live

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

What you get

RunsDaily
Publish your sheet content plan to Xtoday, 9:00Succeeded
X · @northwindappShared dashboards are live. Pick a report, hit Share, and your whole team sees the same numbers. No more screenshots in chat.

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

  • 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 Google Sheets and X 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.
multi_network_posting_from_a_sheet_content_plan.pyexample
from datetime import date
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai

SHEET_ID = "your-spreadsheet-id"

@on_trigger
def run(event):
    sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets()
    rows = sheets.values().get(spreadsheetId=SHEET_ID, range="Plan!A2:C").execute().get("values", [])
    x = {"Authorization": "Bearer " + credentials.connection("x", "main")}
    posted = 0
    for n, row in enumerate(rows, start=2):
        if len(row) < 2 or row[0] != date.today().isoformat() or (len(row) > 2 and row[2]):
            continue
        text = ai.generate(f"Brief: {row[1]}", system="Write one X post under 260 characters, at most one hashtag.",
                           max_output_tokens=120).text.strip()[:280]
        resp = http.post("https://api.x.com/2/tweets", headers=x, json={"text": text})
        resp.raise_for_status()
        link = f"https://x.com/i/status/{resp.json()['data']['id']}"
        sheets.values().update(spreadsheetId=SHEET_ID, range=f"Plan!C{n}", valueInputOption="RAW",
                               body={"values": [[f"Posted {link}"]]}).execute()
        posted += 1
    return {"posted": posted}

FAQ

Common questions

What columns does the sheet need?
A date, a brief or finished text, and a status column. The automation fills the status with Posted and the post link once it goes out.
Can I write the exact text myself?
Yes. If the row's text is already under 280 characters and marked Final, it is posted as written without AI.
Can it also post to other networks?
This version posts to X. Your AI assistant can add LinkedIn or other networks you connect, from the same rows.
What permissions does it need?
Sheets edit; X tweet.write. 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 runs (daily). Checks that find nothing to do 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 “Publish your sheet content plan to X” from your assistant

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