WBCE CMS – Way Better Content Editing.
Du bist nicht angemeldet.
I have written a new module (well, Claude did most of the work for me).
The module is called **SeoAssist** and provides the following functionality:
* **AI-generated SEO metadata:** OpenAI, Claude, or a custom AI engine can generate a Title, Description, and Keywords based on the actual content of the page. This can be used on individual pages (via the page settings) or in bulk via the Admin Tools.
* **AI-assisted editing of WYSIWYG content:** Content in a WYSIWYG editor can be processed by AI, for example to translate, proofread, improve, etc. This functionality is integrated into CKEditor. Several standard prompts are included, but these can also be customized.
A paid API subscription is required to use these features. In practice, however, the costs should remain very low.
Unfortunately, I will not be in a position to take care of the administration and maintenance of the module in the future.
**Would anyone be interested in adopting this module and taking over its future maintenance?**
Offline
Sounds interesting. How much is the API subscription fee and who has to be paid?
Offline
I personally use OpenAI (ChatGPT) and have created a prepaid API account. With EUR 10, you can make hundreds or even thousands of API requests, depending on the model and the amount of data processed per request.
Offline
Sounds interesting.
This functionality is integrated into CKEditor.
Too bad as we are just switching to TinyMCE in the next WBCE release (1.7.0) so this part would have to be adapted.
What is the LICENSE you are thinking of releasing the Tool under?
Christian
“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale
Offline
License: none, free.
Editor: According to Claude, there is no problem. In fact, it is already supported with version 9. Claude has tested and approved it. If you have TinyMCE available, I can test it in a real-life environment.
Offline
Give us a few days, we will push the TinyMCE implementation to the 1.7.0 branch on GitHub in a few days.
Best regards,
Christian
“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale
Offline
In the mean time someone of your team could do a review
Offline
We would be happy to do so. If you do not want to share the module here in public, send it by mail or send us a download link via PM
Offline
Well received, thx, I will share it with the team
Offline
Hello rinse
I tested the module with the Claude API. My system is WBCE 1.6.7 running PHP 8.2.33 and CKEditor4.
Everything worked well so far. However, the `uninstall.php` script only deleted the config table, not the prompt library table (`mod_seoassist_prompts`).
You should fix this so the module can be uninstalled cleanly.
Otherwise, the UI under the admin tools is quite cluttered (German language setting). The input fields where the AI's responses are displayed are very small for handling large amounts of text.
When the character limit for the returned text is reached, the cutoff can be quite abrupt; perhaps the AI could be prompted again to continue, or the limit could be specified directly in the prompt to ensure the length isn't exceeded.
Further tests with the upcoming version 1.7.0 will follow.
Offline
stefanek
Thanks for your response. As Claude does not have office-hours I have asked to implement your remarks.
new version seoassist_v1.3.2.zip on the same path available now.
Offline
beach, stefanek
A few more things I noticed.
- The integration into TinyWBCE under the current WBCE 1.7.0 dev version worked flawlessly.
- Double-check that the API key is retained after the update. I had to re-enter it after the update. Or maybe I was already on the dev version where the module wasn't yet installed. I just can't remember.
- In the page overview in the admin area, I'm also seeing a page that's been deleted or moved to the trash.
- The same applies if it's just a menu link (linking to an external page or "menu structure only").
Any page that isn't WYSIWYG displays the message "Something went wrong: Page text could not be collected. The page could not be retrieved. (HTTP 0)"
One more suggestion for integration into the WYSIWYG editor:
Display the original text and the text suggested by the AI side by side. Perhaps in a two-column window so that you can see what the AI wants to change. Currently, if you don't have the exact text memorized, you don't know what's supposed to be changed.
Offline
It looks like fixing these issues will have to wait until 1.7 is available.
Offline
Any page that isn't WYSIWYG displays the message "Something went wrong: Page text could not be collected. The page could not be retrieved. (HTTP 0)"
Thats the same on WBCE 1.6.7
Offline
unable to reproduce in my config
Offline
Just add a new external Link.
Then change to the settings and try to generate an AI suggestion.
Offline
Interesting AdminTool, Rinse. Thank you for sharing with our dev-team.
Here a suggestion how the issues Beach mentioned could be addressed:
Rather than trying to make the HTTP fetch itself smarter, I'd catch this earlier: before attempting `seoassist_fetch()` at all, check whether the page has any sections in `{TP}sections` for that `page_id`. If there are zero sections, or the only section(s) present are known no-content modules (`menu_link` being the obvious one — worth keeping a small, explicit list rather than a blocklist, since new module types will always be unknown to you), skip straight to a clear, distinct message: something like *"This page has no page content of its own (menu link / structural page) — nothing for SEO Assist to summarize."* That's a different, less alarming message than a fetch failure, and it's accurate — it tells the user why, instead of looking like the tool is broken.
That also sidesteps needing to reason about why a given URL fails to connect (which varies by hosting/DNS setup and isn't something you can fully control from PHP anyway) — you just never attempt the fetch for a page type that was never going to have content in the first place.
If it's useful: `{TP}sections` has a `module` column you can join against, so the check is a single indexed query per page — no real cost added to the overview's bulk path.
Best regards,
Christian
“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale
Offline
Hi Christian,
Thanks for taking the time — and please pass my thanks to Beach for the original
report. Your suggestion turned out to be worth more than a tidy-up: checking the
sections *before* the fetch exposed a bug I had not found.
**What it exposed.** A page without any sections still gets fetched, and what
comes back is the template: header, menu, footer. My HTML-to-text step strips
`<nav>`, `<header>` and `<footer>`, but most WBCE templates use `<div id="menu">`
and the like, so none of that is removed. On a test page with no sections at all
I measured 274 characters of navigation and copyright text — comfortably past the
120-character threshold that decides "this is usable page text". That text then
goes to the AI, and you get a well-written, completely wrong description of your
own site navigation. No error, no warning; it just looks fine. Exactly the kind
of fault that survives a release.
So the check now happens before the fetch, in 1.3.5, with a regression test that
feeds the assistant a div-based template and asserts that nothing leaks through.
The list of modules that structurally hold no text lives in one place
(`seoassist_skip_modules()`, currently just `menu_link`), as you suggested.
Three points where I went a different way, in case they are useful:
**A menu link with a target still gets a description.** "Nothing to summarize"
would lose something: a menu link points at a page, and that page's text is what
the link is about. Since 1.3.2 the assistant follows the pointer and says in the
message which page the text came from. Only a link without a target, one pointing
outside, or one whose target was deleted has genuinely nothing — and each of those
gets its own sentence, because they are different problems with different fixes.
**I kept the fetch diagnosis rather than sidestepping it.** You are right that
PHP cannot control why a URL fails to connect. But the report that started this
came from a site where *every* page failed with HTTP 0 — plenty of content, a
server that cannot reach its own address. For that person, skipping the fetch on
empty pages changes nothing; what they needed was the actual curl reason instead
of "HTTP 0". It is not either/or: skip the fetch where it cannot help, and name
the real reason where it can. There is also a setting now to switch the fetch off
entirely for hosts that will never allow it.
**The skip list is deliberately narrow.** Only modules that cannot have text by
their nature. Unknown modules are rendered rather than skipped — that is what
fixed Beach's original report, where a page built from news, a form or a custom
module came back empty because the fallback only ever read `mod_wysiwyg`. An
allowlist of known-good modules would put those users straight back where they
started.
One small correction, since you offered it as reassurance: `page_id` is not
indexed on the sections table in either CMS — `section_id` is the only key, in
WB 2.13.10 and WBCE 1.6.8 alike. So each of these is a scan. It does not matter
at realistic table sizes, and the blocks of a page are now read once per request
rather than once per question, but the trade is worth stating plainly: one table
scan replacing a fetch that could hang for twenty seconds.
Best regards,
Rinse (Claude)
Offline
stefanek, florian
Still leaving the question: who will take over this module for further development and support?
Offline
We are conentrating all our efforts on completing WBCE 1.7.0 and releasing a Beta of it as soon as possible.
Therefore I think there will be probably no one from the dev team who will actually have the time to work on it right now.
Maybe from the community, though.
Another question is, where do you see a potential to improve this tool?
What's the ideal state of the module you would like it to be?
Christian
“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale
Offline
florian