The text of the SkillPixel landing page moves from code files into the database. An admin edits it on a new screen. Each save updates the knowledge of the chat bubble, so its answers follow the page.
The chat bubble answers questions about SkillPixel from a knowledge base that someone wrote by hand. When the landing page changes, the chat bubble does not know. It can give an old answer that disagrees with the page.
The landing text also lives in code files. A text change needs a developer and a deploy. With this work, an admin changes the text on a screen, and the chat assistant learns the new text in the same step.
New tab "Text" under Admin, Homepage. One text box for each string, grouped by page section, for Vietnamese and English.
A new table stores one row for each tenant and language. After a save, the backend builds one document and sends it to the chatbot.
Stores the document as knowledge. A document can now belong to one environment, so beta text and production text stay apart.
The editor sends the full text of one language to the LMS backend.
It writes the text to the database and adds an audit entry with the user. The admin sees "Saved" at once. The save does not wait for the chatbot.
This runs in the background after the save is final. It turns the text into one document with section headings.
The document replaces the earlier one for the same environment and language. If the text did not change, nothing is sent.
The status near the language tabs reads "up to date", "updating", or shows the error text.
The landing page asks the backend for the saved text and shows it in place of the built-in text. Signed-in users who ask the chat bubble get answers from the new text.
Self-repair. A daily job at 06:30 Vietnam time sends again any language that is not in sync. A failed upload repairs itself by the next morning without action from anyone.
| Item | Where | Who changes it |
|---|---|---|
| Landing text, 282 strings for each language | LMS database | Admin, on the Text tab |
| Built-in text | Code | Developer. It is the default and the fallback. |
| Layout, images, section order | Code | Developer |
| Hand-written chatbot knowledge | Chatbot service, as before | Not changed by this work |
The beta LMS and the production LMS use the same chatbot service and the same chatbot database. Without a separation, an edit on beta would change the answers on production.
The beta LMS marks each request as beta. It stores one landing document for Vietnamese and one for English. Only chat on beta can read them.
The production LMS marks each request as production. It has its own two landing documents. Only chat on production can read them.
| Concern | How it is handled |
|---|---|
| Who can edit | Tenant admins only. The backend checks this. A hidden menu is not the only guard. |
| Tenant separation | The new table uses the same row-level security as the other tenant tables. |
| Bad input | Text only. Each string has a limit of 5,000 characters and the full payload a limit of 300 KB. |
| History | Each save writes an audit entry with the user. |
| Chatbot not available | The backend tries two more times. Then the error shows in the editor, and the daily job tries again. |
| Other tenants | The Text tab shows only for the SkillPixel landing design. Partner landing pages do not use this text. |
| Page speed | The landing page makes one more small request. The built-in text shows first, so the page does not wait. |
Tests so far. Chatbot: 35 tests pass against a real database, including one that proves a beta document is not visible from production. LMS backend: unit tests pass, and the full database test tier passed once on this branch (2,914 tests). LMS frontend: 581 of 582 test files pass. The one failure is a time limit on an existing landing test, and the cause is not yet known.
| Decision | Choice |
|---|---|
| Who can use the chat bubble | Signed-in users only. No guest chat. |
| Where the landing text is edited | In the database, through the admin screen. The code files stay as the default. |
| Which environments sync | Beta and production, each with its own documents. |
| Pricing | Not sent to the chat assistant until prices are approved. |
| Hand-written knowledge | It stays. The landing document wins when the two disagree. |
Images, layout and section order stay in code. To change them you still need a developer.
If not, friendly labels are possible but need more work for 282 strings.
You can still edit the pricing text for the page. The assistant does not learn it.
Today the document tells the assistant that the landing text is newer.
Only the SkillPixel home page. See "Known limits" for the pages that are not covered.
Someone must save both languages once before the production release.