A Respira Playbook is a workflow your AI saves on your WordPress site, as one named tool any agent can run again. You teach the site the job once. After that, your comments teach the playbook, and acting on them costs one call per post.
What a playbook is
An agent creates a playbook with respira_create_playbook. It is a small typed JSON document stored
on the site: an id, a label, a description, an input_schema for what the caller must pass, ordered
steps, and an optional returns shape. Each step names a Respira tool, its arguments and a name to
capture its result under.
Templates connect the steps. {{input.title}} reads what the caller passed, and
{{post.post.id}} reads a field from an earlier step's result. A template that fills the whole
value keeps its type, so a list of category ids arrives as a list and an id as a number.
Once saved, the playbook registers itself as a WordPress Ability, respira-playbooks/<id>.
Any agent connected to the site, from Claude, ChatGPT or Cursor, runs it with
respira_invoke_ability in one call. The steps run on the server through Respira's own handlers,
with the same permissions, audit log and snapshots as if the agent made each call itself.
respira_list_playbooks shows each one with how often it ran and when it last did.
Playbook or skill
A playbook is predictable: the same inputs give the same writes. The part of the job that needs judgment does
not belong in JSON. For it, Respira has site skills: a Markdown recipe an agent saves with
respira_write_skill. The skill's name and description ride along in every future session's site
context, so the next agent knows it exists and opens it when the task matches.
- The playbook holds the site writes. Create the post, set the author, categories, tags, photo and SEO fields. The same every time.
- The skill holds the judgment. How to write it, in whose voice, which facts never to invent, where the pictures come from, what to check before publishing.
The first run on urbankid
urbankid.ro is the parenting magazine I started in 2009. It runs on WordPress with Divi and Polylang, in 8 languages. On 29 November I gave my AI two YouTube links, both episodes of Begin Again with Davina McCall: Dr. Karen Gurney on desire in long relationships, about 70 minutes, and Ryan Holiday on Stoicism and calm, about 58 minutes. I asked for two articles in my voice, as a father, with the videos embedded, in every language of the site, and a playbook so that next time I only send a link.
- Transcripts and drafts. YouTube blocks yt-dlp, so the transcripts came from a transcript API. Two writing agents, one per article, drafted the Romanian originals, then 7 translations each.
- Two playbooks. The agent saved
video-article-original, which creates the Romanian draft in 2 steps (respira_create_custom_post, thenrespira_update_postfor the Yoast fields), andvideo-article-translation, which fills one post in 1 step. - A failure, fixed once. The first run of the first playbook stopped at step 2 with
respira_playbook_missing_arg: the capture holds the post underpost.post.id, notpost.id. The step 1 draft stayed. One update fixed the playbook, and the second article ran clean. - Translations.
respira_create_translationjoined each language to the Polylang group, andvideo-article-translationfilled it. - Read back, then published. All 16 drafts were read back: 8 languages per group, author, category, photo, Yoast title and one embed each. Then they went live.
This is the translation playbook as it sits on the site, shortened:
{
"id": "video-article-translation",
"label": "Video article: fill one translation",
"input_schema": {
"type": "object",
"properties": {
"post_id": { "type": "integer" },
"title": { "type": "string" },
"content": { "type": "string" },
"categories": { "type": "array", "items": { "type": "integer" } },
"featured_media": { "type": "integer" },
"seo_title": { "type": "string" }
}
},
"steps": [
{
"tool": "respira_update_post",
"capture": "post",
"args": {
"id": "{{input.post_id}}",
"title": "{{input.title}}",
"content": "{{input.content}}",
"categories": "{{input.categories}}",
"featured_media": "{{input.featured_media}}",
"seo": { "title": "{{input.seo_title}}" }
}
}
],
"returns": { "url": "{{post.post.url}}" }
} What my review found
Then I read them. Two things on the page were not what I wanted. The pictures were generated, and I want pictures from the video, never generated ones. The heroes were replaced with each episode's YouTube thumbnail, shown whole, and the site rebuilt every share card from it. The YouTube player was also cropped, and one CSS rule on the site now keeps it at 16:9.
All 16 live posts were corrected by running the same video-article-translation playbook again,
once per post. Its one step is an update by post id, so it works on the Romanian originals as well as the
translations, and on a post that is already live. Nothing new had to be built to act on my review.
Then the lessons went into the site skill youtube-video-article, which holds the rest of the
recipe: where the transcript comes from, the voice rules, the category id for each language, publishing and the
gotchas. It now also carries the rule for pictures (the episode's own thumbnail, never a generated one), the
16:9 player and a review step. The next run starts where this one ended.
Comments from a phone
The review step uses Respira Murmur. After publishing, the agent creates a review link for each Romanian article. I open it on my phone, with no WordPress login, and a bar at the bottom of the page lets me tap any spot and leave a comment.
I tapped two spots on the desire article. Murmur saved each comment with a screenshot of the exact spot, marked with a green pin, and the text around it, so the agent knows which sentence I mean.
One comment asked for a missing word: the sentence now calls the subject not a safe one, where it had said
it is not safe. The other asked for that different verb. The agent read both comments back with
respira_list_review_comments, fixed the Romanian, ran the playbook on that post, and resolved
each comment with a note saying what changed.
Read the articles yourself: desire in Romanian and English, Stoicism in Romanian and English.
The counts
video-article-original ran 1 time successfully. video-article-translation ran 32
times: 1 to fill the first Romanian draft, 14 translation fills, 16 corrections and 1 Murmur fix. Each live page
has the player and 8 hreflang links, and search engines were told about all 16 through IndexNow.
More than half of the playbook's runs were corrections. That is the part I did not expect. The playbook did not make the articles right the first time. It made being corrected cheap: I wrote what was wrong, in a sentence or a tap, and the agent applied it everywhere with the same call it used to build the posts.
What else you can make a playbook for
- Case study pages. Client, problem, result, quote and photo into a post with a fixed structure, filed in the right category with its SEO fields, as a draft you read.
- A weekly digest. The week's picks into the digest post, with its category, tags and excerpt set the same way every week.
- A product launch page in every language. One call for the original, then one per language, the same pair as on urbankid.
- A recurring event post. Date, place, speaker and registration link into the same layout each month, with the event category and SEO fields.
How to start
Do the job once with your AI, the usual way, and check the result. Then say:
Save what you did here as a playbook on this site, and put the parts that need judgment in a site skill. The agent writes the JSON, so you never have to. When you review the result, tell it what is wrong, or leave comments on the page through a review link, and ask it to apply them with the playbook and add the lesson to the skill. The fields and templates are in the Playbooks docs.
Limits, honestly
- No destructive steps.
delete_*,restore_snapshotandapply_builder_patchare refused when the playbook is created. If a job needs one, the agent calls it directly, where you see it. - It does not write the words. A playbook carries the content it is given. Writing, voice, pictures and checks stay with the agent and the skill.
- It runs exactly what it holds. A wrong path in a template stops the run at that step, as on urbankid. Fix the playbook once and run it again.
- Live posts follow your site's setting. urbankid has direct editing on, so corrections went straight to the live posts. Without it, Respira puts each change on a draft duplicate for you to approve.
- It does not read your article. The human review is the part a playbook does not replace. Only you know the facts of your own life.
Questions
What is a Respira Playbook?
A typed JSON workflow an AI agent saves on a WordPress site with respira_create_playbook. It registers as a WordPress Ability named respira-playbooks/<id>, and any agent connected to the site runs it in one call with respira_invoke_ability. The steps run on the server through Respira's own handlers, with the same permissions, audit log and snapshots as direct calls.
What is the difference between a playbook and a site skill?
A playbook holds the repeatable site writes: the same inputs give the same writes. A site skill, saved with respira_write_skill, is a Markdown recipe for the judgment around them: how to write, in whose voice, which facts never to invent, which images to use and what to check.
Can a playbook delete content?
No. Destructive tools (delete_*, restore_snapshot and apply_builder_patch) are refused when the playbook is created.
Join the conversation
0 comments · Respira accountNo comments yet. Be the first to weigh in.