Run the same playbook on every site you manage

MaintenanceIntermediate~15 min

Before you start

Plugin version 1.10.1 or newer on each site, with each site connected to your agent as its own connection. Playbooks belong to one site, so add the same playbook (same title) on every site's Playbooks tab and set it Active. Switch on the two playbook tools and the playbook's own tools per site. Use a read-only playbook for this, such as Weekly content report.

When you look after a handful of client sites, the work you want from an agent is usually the same on every one: the weekly report, the content check, the shop tidy-up. Playbooks make that repeatable, and since each site keeps its own copy, a small difference between copies can slip in unnoticed.

Run one read-only playbook across every connected site, check the copies match, and get one table at the end.

The prompt
I manage several sites and want the same read-only playbook run on each.
Do not change anything on any site.
For each site you are connected to, in turn:
1. Confirm the site name and URL, and label everything below with it.
2. List the Active playbooks and find [Weekly content report]. If it is
missing, say so and move to the next site.
3. Load it. Note its last updated date and whether its steps match the
copy on the first site. If they differ, quote the differing lines.
4. List any of its tools this connection cannot use.
5. If the connection reports it is paused, note "paused" and move on.
6. Run the playbook. Skip steps whose tools are unavailable, with a note.
If any step would write, skip it and tell me.
Then give me one table with a row per site: site, playbook found (yes or
no), copy matches (yes or no), tools unavailable, and the headline result
from the playbook's own report. Put the full per-site reports below it.

Why this is safe to run

The prompt keeps to reads and tells the agent to skip any step that would write, so a playbook that turns out to have a write step does nothing on any site. Each site is checked against its own connection, which means each site’s switches, access preset and role apply separately. What one connection can do says nothing about the next.

Playbooks live on each site, so the copy on the third client site may still be last quarter’s. Quoting the lines that differ tells you which site to update on its Playbooks tab.

Already connected to your sites? Ask your agent to run your playbook on every site and compare, and keep it to read-only playbooks.

How it works

  1. Name each connected site so results never get mixed up.
  2. Check each site has the playbook and compare the versions.
  3. Report which of the playbook's tools each connection cannot use.
  4. Run the playbook on each site in turn, read-only.
  5. Combine the results into one table, one row per site.

Questions

Can one playbook cover all my sites?
No. A playbook is stored on one site, in that site's own database. You add it on each site. The prompt checks the versions match, so a site with an older copy shows up.
Why only read-only playbooks?
Running a write across many sites in one go multiplies any mistake. Run read-only ones across sites and do writes one site at a time, with the checkpoints from the single-site recipe.
What if one site's connection is paused?
Since 1.10.1 a paused connection still lists tools, and each call returns an error saying the connection is paused. The agent reports that site as paused and moves on.