A brand site for Occollo with a Claude-powered editor built into Payload CMS — it drafts, translates and lays out pages, and never publishes on its own.

Visitors to occollo.cz — and the people at Occollo who have to keep it full of good copy.
Three developers, and I wrote most of the code. I owned the editorial side end to end: the AI plugin, the Lexical editor extensions and the block library.
A website is easy; keeping it alive is the hard part. Occollo needed a site plus an admin a non-technical team would actually enjoy writing in — in more than one language.
Payload CMS on Next.js, extended with an AI assistant that lives inside the admin. It reads the real collection schemas, drafts and translates copy, even reads uploaded PDF and Word briefs — and every change lands as a draft a human publishes.
The team writes, translates and restyles pages without touching the codebase.
The AI plugin and editor features became a reusable base for later Payload projects.
The assistant doesn't get a database handle — it gets typed tools with Zod schemas. Each one does one job, validates its input, and writes a draft. Hallucinate a field and the schema says no.
// Illustrative — a typed tool the editorial AI can call.
import { tool } from "ai";
import { z } from "zod";
export const translateDocument = (payload: Payload) =>
tool({
description: "Translate a page into another locale. Saves a draft — never publishes.",
inputSchema: z.object({
collection: z.enum(["pages", "posts"]),
id: z.string(),
targetLocale: z.enum(["cs", "en"]),
}),
execute: async ({ collection, id, targetLocale }) => {
const source = await payload.findByID({ collection, id, locale: "cs" });
const translated = await translateFields(source, targetLocale);
await payload.update({
collection,
id,
locale: targetLocale,
data: translated,
draft: true, // a human hits "Publish"
});
return { ok: true, locale: targetLocale };
},
});Clients send briefs as Word docs and PDFs, so the assistant reads them. A tiny extraction layer turns an upload into plain text the model can work with.
// Illustrative — feeding an uploaded brief to the assistant.
import mammoth from "mammoth";
import { PDFParse } from "pdf-parse";
export async function extractText(file: File): Promise<string> {
const buffer = Buffer.from(await file.arrayBuffer());
switch (file.type) {
case "application/pdf":
return (await new PDFParse({ data: buffer }).getText()).text;
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
return (await mammoth.extractRawText({ buffer })).value;
default:
return buffer.toString("utf8");
}
}Inside Payload it already knows the schema, the locale and the page being edited, so “translate this to English” needs zero extra context.
Generated copy is a suggestion. Routing every write through Payload drafts keeps an editor responsible for what goes live.
Raw HTML is the fastest way to break a design system. Lexical features keep styling inside a known set of options.
An AI assistant gets smarter when you stop describing the data and let it read the schema. Shorter prompt, fewer hallucinated fields.