AUTOMATION SETUP — Daily blog auto-publish (10 articles/day at 10:00)

AUTOMATION SETUP — Daily blog auto-publish (10 articles/day at 10:00)

Create this scheduled task in the branch/chat where the Shopify connector IS connected (not the writing branch — the scheduler runs in the environment it's created in, and it needs the Shopify MCP).

How to set it up: open the connected branch and say —

"Create a recurring scheduled task, daily at 10:00 (cron 0 10 * * *), taskId daily-blog-publish-10, using the prompt in AUTOMATION-SETUP.md."

Notes before you create it: - The task runs only while the Claude desktop app is open. If the app is closed at 10:00, it runs on next launch. - It publishes a maximum of 10 articles per run and skips anything already live, so it safely drains the backlog (~29 remaining) over ~3 days, then keeps publishing any new clusters added later. - Schedule = daily 10:00 local time (America/Toronto).


Scheduled-task settings

  • taskId: daily-blog-publish-10
  • cronExpression: 0 10 * * *
  • description: Publish up to 10 ready blog articles to the bmmold.com Shopify blog daily at 10:00.

Prompt (paste verbatim as the task prompt)

Publish up to 10 not-yet-published blog articles to the bmmold.com Shopify blog using the connected Shopify MCP (Admin API). Run this once per invocation.

SOURCE Article folders live under: C:\Users\hello\Desktop\Projects\Bmmold.com - Блог - Статьи\Bmmold.com\ They are grouped in cluster folders named NN-... (e.g. 01-resin-for-beginners, 02-mixing-measuring, 03-silicone-molds, and any later 04-..., 05-... folders). Each cluster folder contains a PUBLISH-BRIEF.md that lists its articles with: handle, title, target published_at date, and which infographic file(s) are embedded in the body. Each article is at //.md ; its infographics are at //images/infographic-*.png .

STEPS (each run) 1. Read every PUBLISH-BRIEF.md (clusters in numeric order 01, 02, 03, ...). Build one ordered list of all articles sorted by their published_at date (earliest first). 2. Determine which are already live by checking the Shopify MCP (or fetching https://www.bmmold.com/blogs/news/). Skip any already published. The pillar "epoxy-resin-for-beginners" is already live. 3. Take the next UP TO 10 unpublished articles from the ordered list. Hard cap: never publish more than 10 in a single run. 4. For each of those articles: a. Read its .md. b. Upload its infographic image(s) from the article's images/ folder to Shopify Files and capture each CDN URL. c. Convert the markdown body to HTML. Remove the top "# Title" line and the trailing meta block (the lines starting with Meta title:, Meta description:, Suggested URL handle:). Keep the "— Nikolai" signature in the body. Replace every images/infographic-*.png reference with its uploaded CDN URL, keeping the markdown alt text as the . d. Create the article via the Shopify MCP with: blog = News (handle "news"); title and url handle from the brief; author = "Nikolai Botsman"; published = true; publishedat = the date listed in the brief for that article; bodyhtml = the converted HTML; SEO page title = the article's Meta title; SEO meta description = the article's Meta description (Shopify metafields global.titletag and global.descriptiontag). 5. Verify each newly created post loads at https://www.bmmold.com/blogs/news/. Then report: which articles were published this run, and how many unpublished articles remain in the queue. 6. If there are no unpublished articles left, do nothing and report "all caught up — nothing to publish".

CONSTRAINTS - Featured image must stay EMPTY (the owner adds real photos later). Do NOT use an infographic as the featured/cover image. - Never delete anything and never modify already-published posts. - Internal links in the bodies are absolute https://www.bmmold.com/blogs/news/ URLs and resolve as more articles go live. - This task REQUIRES the Shopify connector to be connected in this environment. If the Shopify MCP/tools are not available, do not attempt any workaround — stop and report that the Shopify connector needs to be connected for this scheduled task to run.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.