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.
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
Once a week, ClickRuntime reads the list of products already covered in your Content sheet.
It picks an active Shopify product that is not on the list yet.
AI writes a blog post about the product from its title and description.
The post is saved as a hidden draft on your store's blog.
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
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
- 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
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?
What does the sheet row contain?
Can I remove a product from consideration?
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
Log weekly Shopify sales to a sheet
Every Monday a new row in your sheet records last week's orders, revenue, average order value and top product.
See how it worksPlan reorders from Shopify sales in a sheet
Each morning your Reorders sheet shows every product's stock, daily sales rate, days left and how many to reorder.
See how it worksLog late Shopify orders to a sheet
Every hour, paid orders that have missed your dispatch time are added to a sheet, and you get a Slack alert for each new one.
See how it worksKeep exploring
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.