Publish workflow
publish_workflowPublish a tested workflow from this chat to the public library at emero.studio/workflows and add it to today's email digest draft. Live immediately. Calling again with the same slug replaces that post.
You write the words; the server fills every fact. Never write a model name, a cost, or a prompt in the body: each {{gen:...}} token becomes the media plus its model, real cost and exact prompt.
Media tokens (each sits alone on its own line in the body; images render inline, videos as an inline looping player):
A generation: {{gen:job:#}}, with the id generate / check_generation returned (#n = which output, #0 for a single one). Shows the media plus its model, real cost and exact prompt.
An upload (the user's own file, e.g. original source footage, or a file rendered outside emero and added with request_upload): {{upload:}}, with the id request_upload returned (upload:). If the upload holds several files, name one: {{upload:#}} (0-based, in the order they were added; inspect(upload:, include_details:true) lists them). Shows the media and its alt text only, no model, cost or prompt. Use it for before/after: the upload, then the generation made from it.
alts: one entry per token, keyed by the token's id without the braces: "job:#" for a generation, "upload:" (or "upload:#") for an upload.
cover: any token's id in the same form, generation or upload; for a video, a still is taken from it. A bad id, or one from another account, is refused and nothing is published. Example body lines and alts: {{upload:9b1c0f2e-1a2b-4c3d-8e9f-0a1b2c3d4e5f}} {{gen:job:3e6bb619-7a5d-47e8-bec4-6d841e941634#0}} alts: { "upload:9b1c0f2e-1a2b-4c3d-8e9f-0a1b2c3d4e5f": "The original phone clip of the man sitting on the floor", "job:3e6bb619-7a5d-47e8-bec4-6d841e941634#0": "The same shot as a trapped miner in a sinking concrete room" }
slug: [use-case]-[model], lowercase-hyphens, e.g. "jewelry-video-ad-seedance". Never change it after publishing.
title: models first, then the use case. Comparing models: "Seedance 2.5 vs MiniMax H3 - jewelry ad from two photos". One model: "GPT Image 2.5 - photo to ink illustration in five styles". Use the model names the generations show.
seo_title: max 60 chars. Lead with the model people search for, then the outcome, e.g. "Seedance 2.5 Jewelry Video Ad from 2 Photos: Prompts + Cost", "Kling 3.0 Fashion Ad: Ostrich Hands Over a Bag".
summary: max 100 chars, one plain sentence on what the workflow does. No terminal period.
Brands: never put a real brand or its trademarks in the slug, title, seo_title, summary or teaser: no house names (Gucci, Prada, Louis Vuitton) and no product marks (Damier, Intrecciato, GG, Kelly). Describe the look instead: "orange monogram bucket hat", "woven leather bag". In the body, name a brand only where the workflow needs it, never as if the post were their ad. Every post shows a no-affiliation disclaimer.
teaser: a short noun phrase with its article for the email, e.g. "a 10 second jewelry ad from two photos".
body: markdown only (## headings, paragraphs, lists, bold, links), no HTML. Open with why the approach works, then "## 1. " per step, each step a short paragraph followed by its token (see Media tokens). End with "## Why it works".
alts: alt text per token (keys above): what the media shows, e.g. "Emerald ring and necklace on black velvet". On a generation the model name is appended automatically.
cover (optional): the id of the token that represents the post in share previews, the library card and the top of the post. Pick the strongest single frame, e.g. the delivery shot of a fashion spot, not the empty background plate. Must be one of the body's tokens. A video works, a still is taken from it. Omitted = the first generation in the body. To change the cover later, publish again with the same slug and the new cover.
replaces (optional): when you publish a post under a NEW slug to rename an existing one, pass the old slug here. The old post is taken down and its URL redirects to the new one, keeping its date. Never publish a renamed post without it, or the library shows the post twice.
Voice: concise, first person, plain words, no em dashes. Show the user the full post and get their go before calling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"title": "<title>",
"seo_title": "<seo_title>",
"summary": "<summary>",
"teaser": "<teaser>",
"body": "<body>",
"alts": "<alts>"
},
"name": "publish_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alts | Yes | ||
| body | Yes | ||
| slug | Yes | ||
| cover | No | ||
| title | Yes | ||
| teaser | Yes | ||
| summary | Yes | ||
| replaces | No | ||
| seo_title | Yes |