Skip to content

Weekly

Draft blog posts from products, tracked in a sheet

Each week one product gets a blog draft in Shopify, and your content sheet records the title, date and link.

Runs
Weekly
Apps
Google Sheets, Shopify
AI
Yes, uses the built-in AI allowance
Access
Shopify read_products, write_content; Sheets read+write

Send this to your assistant

Create a ClickRuntime automation: every week, pick a Shopify product that isn't in my Content sheet yet, draft a blog post about it on my store blog, and add a row to the sheet with the title and date.

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 outdoor gear shop plans its content in a shared spreadsheet so the owner and a freelance writer can see what has been covered. Keeping the list current is manual, and posts get written twice or forgotten.

Drafting one post a week and logging it in the same sheet keeps the plan and the blog in step. The writer edits drafts instead of starting from scratch, and the sheet always shows what exists and what is left.

What you get out of it

  • One list everyone can see

    The sheet shows every post drafted, its date and the product it covers. Owner and writer work from the same plan.

  • No product covered twice

    Products already in the sheet are skipped. Your blog grows across the range instead of repeating itself.

  • Drafts, not published posts

    Every post is saved hidden for review. Nothing appears on the store until someone has checked it.

  • Easy to add status columns

    Because the log is a sheet, you can add columns for edited, published or shared on social. It becomes your content calendar.

How it works

What happens, step by step

  1. Once a week, ClickRuntime reads the list of products already covered in your Content sheet.

  2. It picks an active Shopify product that is not on the list yet.

  3. AI writes a blog post about the product from its title and description.

  4. The post is saved as a hidden draft on your store's blog.

  5. A new row is added to the sheet with the date, product, title and a link to the draft.

Before it runs live

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

What you get

RunsWeekly
Draft blog posts from products, tracked in a sheettoday, 9:00Succeeded
Google Sheets · Content2026-10-15 | Trail 30L daypack | How to pack a daypack for a full day on the trail | draft

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 Shopify 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.
blog_content_from_shopify_products_tracked_in_a_sheet.pyexample
from datetime import date
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai

STORE = "your-store.myshopify.com"

def gql(query, variables=None):
    resp = http.post(f"https://{STORE}/admin/api/2025-07/graphql.json", json={"query": query, "variables": variables or {}},
                     headers={"X-Shopify-Access-Token": credentials.connection("shopify", "store")})
    return resp.raise_for_status() or resp.json()["data"]

SHEET_ID, BLOG_ID = "your-spreadsheet-id", "gid://shopify/Blog/123456789"
SCHEMA = {"type": "object", "properties": {"title": {"type": "string"}, "html": {"type": "string"}}}

@on_trigger
def run(event):
    sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    done = {r[1] for r in sheets.spreadsheets().values().get(spreadsheetId=SHEET_ID, range="Content!A2:B").execute().get("values", []) if len(r) > 1}
    products = gql('{ products(first: 100, query: "status:active") { nodes { title description } } }')["products"]["nodes"]
    product = next((p for p in products if p["title"] not in done), None)
    if not product:
        return {"written": None}
    post = ai.generate(f"Product: {product['title']}\n{product['description'][:2000]}", json_schema=SCHEMA, max_output_tokens=1500,
                       system="Write a helpful 600-word blog post about this product. Return a title and an HTML body.").json
    article = gql("""mutation($a: ArticleCreateInput!) { articleCreate(article: $a) { article { id } } }""",
                  {"a": {"blogId": BLOG_ID, "title": post["title"], "body": post["html"], "isPublished": False, "author": {"name": "Store team"}}})
    article_id = article["articleCreate"]["article"]["id"].split("/")[-1]
    sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Content!A:D", valueInputOption="USER_ENTERED",
        body={"values": [[str(date.today()), product["title"], post["title"], f"https://admin.shopify.com/store/your-store/content/articles/{article_id}"]]}).execute()
    return {"written": product["title"]}

FAQ

Common questions

Can I choose which product comes next?
Yes. Add product names to a To write tab in the order you want, and the automation will take the next one from that list instead of choosing itself.
What does the sheet row contain?
The date, product name, draft title and a link to the draft in your Shopify admin. You can add your own columns to the right.
Can I remove a product from consideration?
Yes. Add it to the sheet with a note such as skip, and it will be treated as already covered.
What permissions does it need?
Shopify read_products, write_content; Sheets read+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 (weekly). 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 “Draft blog posts from products, tracked in a sheet” from your assistant

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