TechEarl

AI for WordPress Agencies: Workflows, Review, and Budget

A practical role-by-role plan for using AI in a WordPress agency: developer, SEO, content and agency-operations workflows with prompts, data boundaries, a pilot budget and checks before publication.

Ishan KarunaratnePublished ⏱️ 17 min readUpdated
Share thisCopied
AI for a WordPress agency, role by role: developers, sysadmins, SEO, content, agency ops, business ops. Concrete tooling, real prompts, what to never delegate.

To use AI in a WordPress agency, start with one bounded workflow whose output an experienced person can check: a draft ACF field group, a log-triage report, a content-refresh brief or a proposal outline. Record how long the task takes, how much correction it needs and whether the final result is usable. Expand only after that pilot works.

For a small WordPress agency, I would organize the work by role. The same tool can help several roles, but a developer reviewing code and an account manager reviewing a proposal need different evidence and acceptance criteria. There is no dependable universal “twice the client capacity” multiplier to put in a business plan.

Each role below starts with the boundary and review rule, and the four busiest roles (development, SEO, content and agency operations) get a deeper section with the prompts I actually use.

One rule for every role

Give the assistant a clear task, an approved information boundary and an explicit deliverable. Name the person who reviews the result and the checks that must pass before it affects a client or a live site.

Keep secrets, personal data and client-confidential material out of unapproved tools. Verify provider retention, access and contractual arrangements before using real client data. A subscription name alone does not establish that a workflow is suitable for a particular client.

Role 1: Developer

Useful tasks include scaffolding an ACF field group, drafting a small plugin, preparing a migration, explaining an unfamiliar code path and proposing tests for a specific bug.

text
Using this approved field schema and the repository conventions, draft
an ACF field group registration. Identify ambiguous field types first.
Include validation and escaping in the rendering example, and describe
how to test it with empty values and malformed input on staging.
Do not modify production or use real customer records.

Review field keys, data shapes, compatibility and escaping. A generated file is a draft until it runs correctly in the supported WordPress/PHP environment. wp-env or another local fixture can help test it before staging.

WP-CLI can execute the reviewed operation, but the command still has the privileges of its account and database connection. A migration needs a verified backup, dry-run output, a complete change log and a tested restoration path. See AI-assisted WP-CLI workflows.

For custom must-use plugins, WordPress automatically loads PHP files directly in mu-plugins; code inside a subdirectory needs a loader. Do not assume saving a command beneath mu-plugins/cli-commands/ registers it by itself.

Security-sensitive code, such as authentication, payments and uploads, needs a reviewer who understands the threat model. Looking for eval or base64_decode in one plugin file is a triage clue, not a complete security review.

AI workflows for WordPress developers

I treat the assistant as a fast, well-read junior developer who has never seen this codebase. It knows WordPress, ACF, WP-CLI, PHP, JavaScript and CSS; it does not know the conventions, the client quirks or the months of context behind an oddly structured file. It becomes useful when I give it the conventions (in CLAUDE.md or the prompt), a scope-limited task with explicit success criteria, and the same review I would give a junior's pull request. It becomes dangerous when it gets no context, no review, or destructive access to production.

ACF field group scaffolding. Describe the schema in plain language and get acf_add_local_field_group PHP back. For a new post type, let it read the post type registration first. To add one field, give it the group's JSON export so it matches the conventions. To refactor (split a group, rename a field, move a Repeater to its own post type), ask for the migration script alongside the new registration. Include your ACF field naming conventions in the prompt and it will follow them. The longer walkthrough is in Using Claude CLI to Manage WordPress Sites.

Diagnose before edit. For plugin and theme bugs, ask for the theory first:

text
The [feature] is [misbehaving in this way]. The relevant code is at
[file path]. The error in debug.log is [error message].

Read the file, trace the logic, tell me where you think the bug is
and why. Do not edit yet.

Making it articulate the diagnosis lets me accept or correct the theory before anything changes. An assistant that jumps straight to edits often fixes the wrong thing, and even a wrong diagnosis usually narrows my own next read.

WP-CLI with checkpoints. Multi-step operations run on staging with approval gates on every write:

text
On staging:

1. Take a database snapshot.
2. [READ-ONLY step: count something].
3. [READ-ONLY step: list something].
4. [WRITE step: do something based on what we learned].
5. [VERIFY step: confirm the write took effect].

Pause for approval between steps 1 and 2, and between 3 and 4.

Migration scripts follow the same loop: dry run on staging, real run on staging, verify the result, add checks based on what you saw, then ship through the normal PR and CI flow. The time saved is in the test cycles, not the typing; the production step does not get shorter. The pattern for field updates is in How to Update ACF Fields Programmatically.

Inherited plugins. Before relying on a custom or abandoned plugin on a site you just took over, get a triage report:

text
Read /wp-content/plugins/custom-plugin/custom-plugin.php and every
file it includes. Flag any code patterns that look suspicious:
- eval() or assert() calls on dynamic strings.
- base64_decode() of remote content.
- Remote includes via curl or file_get_contents.
- Custom update servers in non-trivial places.
- Direct $_POST or $_GET usage without sanitization.
- SQL queries built with string concatenation.
- File uploads without MIME validation.
- Capability checks that look suspect.

Output a report grouped by severity (critical, suspicious, worth-noting).

As noted above, this is triage, not a security review; anything in auth, payments, uploads or user data still gets a reviewer who understands the threat model.

Figma to component. The assistant proposes the structure (which ACF field types, which template-part conventions) and I iterate the CSS until it matches. It has the longest ramp on a new project because it has to learn the CSS conventions, any Tailwind config and the design tokens; after that, components come quickly. See Turning Figma Designs Into WordPress Components Using AI.

Senior review gets heavier, not lighter. Generated code goes through the same review as human code, read line by line, judged on "does this fit our patterns" and not only "does this work." More code arrives faster, so the review load rises. What I will not delegate: architecture (Repeater or separate post type, Flexible Content layout or custom block), ACF design for new content models, the senior review pass, production deploys without a reviewed PR, and security-sensitive code without line-by-line human review.

Role 2: Sysadmin and DevOps

Use timestamped logs and inventories to produce a diagnostic report, compare a deployment to its manifest, review configuration drift and draft an isolated test-restore plan.

text
Compare this sanitized post-deploy bundle with the expected release.
Mark each check PASS, FAIL or NOT CHECKED and link the evidence.
Separate observed errors from possible causes. Propose the next check,
then draft a summary for operator review. Do not send or apply anything.

An SSH account without sudo is not automatically read-only. It can still have writable files, network access and sensitive read permissions. Prefer approved diagnostic exports or a tested restricted collector. Backup file dates establish job evidence; a successful test restore establishes recoverability. The sysadmin guide covers both boundaries in detail.

Role 3: SEO

Bring actual evidence: a crawl with internal links, indexability and canonicals; Search Console query/page data; analytics landing pages; and the relevant content. A sitemap alone lists URLs and cannot establish which pages have incoming internal links.

text
Review this URL inventory, crawl graph and dated search/analytics data.
Separate keep, update, consolidation and removal proposals.
For each proposal, cite the observed intent, traffic history and content
issue. Treat absent metrics as unknown. For a merge, name the destination,
material to preserve and direct redirect required. Do not apply changes.

Assistants can draft titles, map redirects, identify potential overlaps and organize technical findings. They cannot establish a Google penalty from a traffic drop alone or guarantee recovery through a fixed article-count target.

Structured data must describe visible, accurate content and match the site's actual entity type. Passing a validator is not a guarantee of a rich result. Choose schema based on eligibility and meaning, not a promise of extra search real estate. The SEO workflows below cover schema, links and citability in more detail.

AI workflows for WordPress SEO

SEO work splits into technical automation that scales across a site, content judgment that stays human, and AI-search citability (being quoted by AI Overviews, ChatGPT search, Perplexity and Claude). The assistant is strongest on the first and useful as an auditor on the third.

Internal links and orphans. Give it the crawl graph, not just the sitemap, and ask for the 3 to 5 most related URLs per page, a natural anchor for each proposed link, and every URL with zero inbound internal links. On large sites that audit surfaces orphans and a prioritized retro-link backlog; the content team applies the links, or a script does when the anchor is mechanical. For new articles, decide which existing pages should link to it as part of publishing, so orphans never form.

Schema. It generates valid-looking JSON-LD from page content quickly:

text
Read the article at [URL] (or paste the article content). Generate
JSON-LD for:

- Article schema (with author, datePublished, dateModified, headline,
  image, description).
- BreadcrumbList schema based on the URL path.
- If the article describes a product/service/place, the relevant
  additional schema (Product, Service, LocalBusiness, etc.).

Output the JSON-LD ready to embed. Validate that all required fields
are present per Google's structured data documentation.

Run the output through Google's Rich Results Test before deploying; it occasionally invents a non-standard property. Remember the rule from Role 3: the markup must describe visible content, and a passing validator is not a rich-result guarantee. Backfilling hundreds of posts becomes a reviewed WP-CLI job (see AI-assisted WP-CLI workflows).

Content gaps. Give it competitor sitemaps or article lists and ask for topics they cover that you do not, with a suggested title, target keyword, intent and the competitor URL. That is an editorial backlog grounded in real data. Writers pick from it; nothing gets published straight from the list.

Redirect audits. From an exported redirect list (server rules or the redirect manager plugin), have it check that each destination returns 200, is not itself a redirect, is not part of a loop and does not 404. Chains accumulate over years, and this used to be an hour of clicking per project.

Titles and metas at volume.

text
Here is a CSV of our top 100 pages with current title and meta
description (attached).

For each page, propose an improved title (under 60 characters, with
the primary keyword near the start) and an improved meta description
(under 155 characters, with a clear value proposition).

Output a CSV I can hand to the SEO lead for review.

The SEO lead approves each line before a script writes them back, because titles are user-facing and brand-sensitive.

Technical sweep. A periodic checklist the assistant does not get bored of: robots.txt intent, sitemap reachability and contents, homepage and sample page canonicals, hreflang if international, Open Graph and Twitter Card tags, Core Web Vitals (LCP, INP, CLS) from a public test tool, mixed content, and 5xx responses among sitemap URLs.

AI-search citability. The patterns that make a page easy to quote: clear sentences with specific facts, a self-contained answer at the top of each H2, question-format headings where they fit, links to primary sources, a visible author byline with credentials, and Article schema with author.url and author.sameAs. Ask the assistant to score an existing page on each signal (direct answer in the first 60 words, question H2s, answer blocks per H2, specific facts, primary citations, byline, schema) when you refresh it.

What stays human: the final keyword strategy, disavow decisions (its "low quality link" judgment is not good enough), rewrites of brand-critical pages, site architecture, URL structure and internationalization strategy, and reading the Rich Results Test output before acting.

Role 4: Content

Use the tool to prepare a brief, identify unanswered questions, organize an interview transcript or list the concrete claims that need verification.

text
Review this article against its stated reader task and the supplied sources.
List outdated or unsupported claims, missing prerequisites and unclear steps.
Suggest an outline that preserves the author's useful examples.
Do not invent personal experience, quotes, measurements or source citations.

An editor still owns the argument, examples and factual checks. AI-assisted content is not automatically disallowed by Google; producing low-value pages at scale to manipulate rankings is the relevant policy risk. A concise, tested solution can be more useful than a longer generic article.

For refreshes, change the modified date when the article receives a substantive update. Preserve the honest original publication date. Do not make an old article look newly written by changing dates alone.

AI workflows for WordPress content teams

My rule for content: the assistant works on everything structural around an article, and the published prose is written by a person. That is an editorial choice about voice and accountability, not a claim that Google bans AI assistance (it does not, as Role 4 says). Outlines, briefs, titles, metas, refresh plans, format conversion and fact-check lists are fair game.

Briefs. The highest-value content workflow:

text
I am writing an article on [topic] for [audience]
(WordPress developers, agency operators, mid-to-senior level).

Generate a brief that includes:
- Primary search intent (informational / comparison / transactional).
- Suggested H1.
- 5-8 H2s with one-sentence summaries of what each section should cover.
- 3-5 facts the article should establish, each with the primary
  source that would need to confirm it.
- 2-3 opening hooks the writer could choose between.
- 5-8 internal links that would fit (from URLs I will provide separately).
- Suggested word count.

Output as a structured brief I can hand to the writer.

The writer keeps what fits and writes the piece in their own voice.

Refresh plans. Ask it to list everything in an older article that may have changed since publication (tool versions, pricing, API behavior and deprecations, evolving practice, stale statistics, broken links) and propose the update for each, without rewriting the article. The writer applies the changes and bumps the modified date, keeping the honest publication date.

Titles and metas. Five H1 variants under 60 characters with the primary keyword near the start, three meta descriptions under 155 characters, social title variants and a kebab-case slug, in the publication's register. The editor picks and tweaks.

Format conversion. Transcript to article draft, article to newsletter or LinkedIn post, internal memo to blog post. The instruction that matters: use the topic order from the source and do not invent points that were not discussed. The assistant does the extraction; the writer does the voice.

Fact-check lists. Before publication, have it extract every concrete, checkable claim (version numbers, prices, dates, API behavior, statistics) and say which source would confirm each. Then a person checks them against those sources. Its own confidence rating is not verification; the value is in not missing a claim.

Content QA. A pass/fail checklist against house standards: consistent first-person voice, the house punctuation rules, no fluff opening, specific examples, at least one table, list or data point where it helps, enough internal links, a populated and verified sources list, title and meta lengths, and image alt text that describes the topic rather than the picture.

What stays human end to end: the body prose of published articles, opinion pieces, personal anecdotes, case studies and client stories, newsletter prose, and any editorial position sharper than the assistant's anodyne default.

Role 5: Agency operations

A project brief can become a proposal draft, onboarding checklist or statement-of-work outline. A verified meeting transcript can become a decision log and action list.

text
Draft a proposal outline from this approved brief.
Keep scope, assumptions, exclusions, deliverables and open questions separate.
Leave prices and dates unfilled unless explicitly provided.
Do not turn an unresolved discussion into a client commitment.

The account owner verifies scope, price, responsibilities and delivery dates before sending anything. For meeting notes, someone who attended checks that decisions and owners are real. A generated SOP should be walked through by a person who does the task before it becomes the team's operating procedure.

AI workflows for agency operations

Agency operations is the most under-invested role and often the best return: proposals, statements of work, onboarding packets, SOPs, meeting recaps, status reports and internal docs are high-volume, low-complexity and universally disliked. The proposal-outline prompt is in Role 5 above; these are the rest of the set.

SOW from a discovery call.

text
Here is a transcript from a discovery call with a prospective client
(attached):
[transcript]

Generate a draft Statement of Work that includes:
- Scope of work (extracted from what the client described).
- Out-of-scope items (extracted from clarifications/exclusions).
- Deliverables (specific, with rough complexity estimates).
- Timeline (with major milestones).
- Assumptions and dependencies.
- Acceptance criteria per deliverable.

Pull directly from the transcript wherever possible; do not invent
scope items the client did not mention.

Review it against the actual call: add what it dropped and delete what it invented before anyone prices it.

Onboarding packets. Hand it the standard template plus the client's specifics (name, project, contact, start date, channel name) and ask it to replace the placeholders without changing the structure. It is search-and-replace with judgment, and every value still gets checked.

SOPs from walkthroughs. Most agency SOPs never get written. Record the person who does the task talking through it for 30 minutes, then:

text
Here is a transcript of [team member] walking through how they do
[process] (attached):
[transcript]

Convert it into a Standard Operating Procedure with:
- Purpose (1-2 sentences).
- When this SOP applies.
- Prerequisites.
- Step-by-step instructions.
- Common pitfalls and how to handle them.
- Acceptance criteria for "done."
- Who to contact if blocked.

Use the team member's actual workflow; do not improve on it or
suggest alternatives. The goal is to capture what they actually do.

The same person reads the draft and corrects the misunderstandings. Repeated across recurring tasks, that builds the handbook scaling depends on.

Weekly status reports. Feed it a week of commits and PRs, the client channel and time entries, and ask for 3 to 5 specific accomplishments, what is in progress, what is next, blockers needing client input, and a two-sentence health check in a calm, no-over-promising voice. Someone who knows the project edits it before it goes out.

Internal docs. Have it read the wiki and flag likely-stale versions and processes, references to people who have moved on, contradictions between documents, and placeholders (TBD, TODO). The output is a prioritized cleanup backlog: the cleanup still takes hours, but the debt is now visible.

Rules that protect client trust:

  • Nothing goes to a client without a person reading and editing it into their own voice, and nothing auto-sends. Drafts only.
  • Keep contracts and personal data out of tools whose retention and access terms you have not verified; otherwise redact first.
  • Saying "I use AI tools internally to speed up my workflows" is fine. Presenting a document as if no tool touched it when the client asked is not.
  • Check every quote in a meeting summary against the transcript; assistants sometimes put words in a client's mouth.

Role 6: Business operations

Useful preparatory work includes organizing receipts, classifying transactions for review, drafting invoices from approved time entries and extracting renewal dates from contracts.

text
Prepare a review table from this approved transaction export.
Keep source row IDs, proposed categories and uncertainty visible.
Do not infer missing tax treatment or change the underlying records.
Flag ambiguous items for the bookkeeper.

Reconcile totals to the source data. The responsible bookkeeper, accountant or business owner reviews financial and contractual decisions. Do not send invoices, pay vendors or file tax documents from an unchecked summary.

What to adopt first, and what to postpone

For a developer-led agency, a reasonable first pilot is one development task, one operational triage task and one content or proposal draft. Choose work with a visible result and a reviewer who can judge it.

Postpone a custom chatbot, a new vendor platform or fully automatic publication until there is a specific problem and a way to measure whether the investment solves it. They may be appropriate later; neither a universal conversion claim nor a blanket “all wrappers are overpriced” claim is a sound buying criterion.

Do not replace experienced review with tool access. A faster draft can create more checking work, and a failed migration can cost far more than the time saved preparing it.

Budget for a measured pilot

Vendor prices and usage limits change. Build the budget from current quotations and observed usage, not from a fixed per-seat price copied into an evergreen article.

CostWhat to record
Tool seatsNumber of users, monthly/annual commitment and included usage
API or batch workActual tokens/jobs, spending cap and overage rules
Research or specialist toolsWhich role needs the extra subscription and why
Setup and trainingTime to document the workflow and teach verification
Review and reworkTime spent checking output and correcting mistakes
Client requirementsApproved data handling, contractual terms and any additional controls

Avoid double-counting a chat subscription and a coding subscription when the selected plan already includes both capabilities. Equally, do not assume an API is included in a flat-rate seat. Check the actual agreement.

Compare the total pilot cost with the time and rework measured on comparable tasks. No measured saving means the workflow needs adjustment or should be dropped, even if the demonstration looked impressive.

Operational changes that make the workflow repeatable

Keep project conventions, supported versions, file locations and verification commands in the repository. For tools that read CLAUDE.md, that file can provide project context; other tools have their own mechanism. The content matters more than the filename.

Review changes in manageable units so a senior reviewer can understand the diff and its consequences. Require evidence for assertions such as “the migration succeeded” or “the deployment is live.” A tool's success message is not the application's acceptance test.

Base estimates and staffing decisions on measured delivery performance, including review time. Do not promise a week-long task in two days just because a draft appeared quickly. Hiring still needs domain knowledge and the ability to evaluate generated work.

A first-week rollout

  1. Choose one low-risk task and record its normal inputs, output and acceptance checks.
  2. Write the repository or role instructions and prepare sanitized fixtures.
  3. Run the workflow locally or on staging and review every consequential result.
  4. Try a second example, including a failure or ambiguous case.
  5. Compare time, correctness and rework with the baseline; keep, revise or stop the pilot.

The reusable asset is the workflow: its evidence, boundaries, review steps and tests. Keep that documentation independent enough that another tool or a human can perform the same task later.

See also

Sources

Authoritative references this article was fact-checked against.

TagsWordPressAIAgencyOperationsWorkflowSEOContentACFWP-CLI

Found this useful? Pass it on.

Copied

Ishan Karunaratne

Systems and Network Architect · Chief Technology Officer

Systems and network architect and Chief Technology Officer with more than two decades designing, building, and running production software, cloud and network architecture, Linux systems, and the bare metal underneath them, and lately working AI into the stack. A US Army veteran who served in Operation Iraqi Freedom. What I write here is drawn from the full arc of that work, across architecture, engineering, and operations, not any single job.

Keep reading

Related posts

Load WordPress secrets from a .env file with phpdotenv, keep it out of git and the web root, and harden wp-config.php with an annotated template.

Use a .env File for WordPress Config and Secrets

Keep API keys, database credentials, and SMTP secrets out of wp-config.php and out of git by loading them from a .env file with vlucas/phpdotenv, load Composer packages from a must-use plugin, then harden the rest of wp-config.php with an annotated template: file editing off, forced HTTPS, salts, debug logging, and permissions.