I’ve spent a good part of the last year wiring large language models into WordPress: an SEO plugin that writes meta descriptions, product copy and blog drafts with Google’s Gemini models, an outreach assistant that drafts personalised emails, and tools that turn Search Console data into recommendations. Some of it worked straight away. More of it taught me what not to do. These are the lessons I’d pass on to anyone building AI into a publishing workflow.
1. Draft, don’t publish
The single most important design decision: AI output lands as a draft or a suggestion, never live. My SEO plugin’s blog writer saves posts as drafts. Its other modules have three permission levels per action: run automatically, wait for approval, or never. Low-risk, reversible changes like image alt text can run on their own. Anything public-facing that makes claims waits for a human.
Models are fluent, and fluency is exactly what makes their mistakes dangerous. A wrong statement in perfect prose sails through a quick skim.
2. Ground every prompt in real data
The difference between generic AI filler and useful output is the data you put in. Instead of “write a meta description for this product”, my tools send the actual product attributes, the category and the real search queries the page already receives in Search Console. The model writes for searches people actually make.
The same goes for anything personal. My outreach assistant sends the model my real profile and real portfolio projects as ground truth, with an explicit instruction never to go beyond them. Without that, a model will happily invent a client, a result or a years-of-experience figure.
3. Tell the model what it may not say
Negative instructions matter as much as positive ones. Every prompt I ship includes rules such as: no invented statistics, no guarantees, no claims about materials or results that aren’t in the provided data, and use the brand name exactly as given. Where I can, I also check the output against those rules in code, not only in the prompt.
4. Make everything reversible
Any automated change keeps a backup of what it replaced, so one click restores the original. When you’re updating hundreds of product descriptions in a batch, the ability to roll back a bad batch is what lets you move quickly without being reckless.
5. Cache, batch and budget
- Cache responses keyed by the input. Regenerating identical content wastes money and creates confusing near-duplicates.
- Batch work in the background with WordPress cron instead of making an admin page wait 30 seconds for an API call.
- Respect rate limits with retries and backoff. You will hit them on large batches.
- Log tokens and calls so you know what each feature costs before the invoice tells you.
6. Plan for models changing under you
Model names are retired and new versions arrive every few months. Hard-coding one model ID is a time bomb. My plugins let the site owner pick the model from a live list fetched from the provider, with a sensible default and a field for a custom model ID. When a version is retired, it’s a settings change rather than a code release.
7. Keep keys and data safe
- Store API keys encrypted in the database, never in theme files or JavaScript.
- Make API calls from the server only. A key in the browser is a public key.
- Send the minimum data needed. Aggregated findings, not credentials or customer records.
8. Measure the result, not the output
It’s easy to be impressed that a tool wrote 200 product descriptions in an afternoon. The real question is whether those pages get more impressions, clicks and sales a month later. Compare before and after in Search Console and analytics, and drop the automations that don’t move anything.
The short version
Treat the model as a fast, tireless junior writer: give it real data and clear rules, review its work before it goes out, and keep the ability to undo. Used that way, AI saves an enormous amount of time on WordPress sites. Used as an autopilot, it fills your site with confident mistakes.
If you’d like AI built into your own WordPress workflow, take a look at my custom plugin development service or get in touch.