Success Story: A Governed AI Editorial Suite on Databricks
For a publisher, a piece of content isn’t ready when the text is. It still needs a title, a summary, a URL, a description, tags, internal links and an image. Then each social platform needs its own caption, and often a branded image to go with it. Multiplied across every piece, that work decides how fast content reaches readers.
We built the AI tooling for that work inside the editor its writers already use, on Databricks.
The challenge
Metadata was mostly manual. Titles, summaries, URLs, descriptions, tags, links and image selection took editorial time on every piece and slowed time to publish.
Social copy didn’t scale by hand. Every piece needs posts for X, Facebook and Instagram, each in the platform’s format and the brand’s voice.
AI output needed a quality bar. Off-brand copy is a reputational risk for the publisher. The team needed a repeatable way to measure output quality before any change reached editors.
What we built
The suite is a full-stack Databricks App. Writers and editors work in a Next.js editor backed by a FastAPI service, and suggestions stream into the editor as they are generated. Claude-based agents produce the metadata, links, tags, image suggestions, and style and grammar edits, and they ground their answers in the publisher’s own content through Vector Search. Editors review every suggestion and publish from the same screen. Nothing the model writes goes out without an editor’s approval.
| Component | Role in the solution |
|---|---|
| Databricks Apps | Hosts the editor and the API, inside the same governance boundary as the data. |
| Lakeflow Declarative Pipelines + Delta Lake | Bronze, Silver and Gold pipelines for content, tags, images, video and content-quality metrics. |
| Vector Search | Retrieval over the publisher’s archive, so suggestions draw on what it has already published. |
| Unity Catalog + Prompt Registry | Versioned prompts and models, grants and lineage in one place. |
| Model Serving | Serves the models behind the agents, with scale-to-zero endpoints to keep idle cost down. |
| Lakebase | Managed Postgres for the application’s operational state. |
Social copy and branded images
Per-platform social copy is built on the same stack as the rest of the suite. For branded social images, we built the templates into the back end as a deterministic composition service, with the fonts vendored into the build. The same input renders the same image, byte for byte, across operating systems and library versions, and golden-image tests check it on every change. Brand images have to look right every time, and a deterministic renderer is one you can test.
A quality gate on every prompt change
The unit of change is a prompt version. A new version is evaluated offline against the current champion and promoted only if it passes a non-inferiority test: it must be no worse than what editors are using today.
Cost and usage attribution
Model calls through the gateway are attributed to the piece of content and metadata they produced, alongside content-quality metrics. An interim attribution method already covers about 87% of traffic, and exact attribution comes once each gateway request carries its own ID.
The results
- The metadata module is in production, used by the publisher’s writers and editors from inside their editor.
- Social copy generation was validated end to end on Databricks, with live, serving and end-to-end test suites passing.
- Generated media is reproducible: byte-identical renders across environments on serverless compute.
- About 87% of traffic is attributed to its model usage, so the publisher can see what AI costs per piece of content and per feature.
- The codebase is covered by about 2,000 tests: around 490 for the back end and more than 1,500 for the GenAI components.
How we delivered it
One team owns the whole chain. The same team owns the data pipelines, retrieval, prompts and models, serving, and the editor UX, so output-quality decisions are made in one place.
Release discipline for a live publishing operation. The main branch deploys straight to production, so nothing reaches it directly: features land on an integration branch first, and Databricks Asset Bundles deploy the app, data, GenAI and document-processing components the same way in every environment.
The editorial team owns the rules. Editorial constraints and examples come from the publisher’s editors, who stay the source of truth for brand voice.
AI in our own delivery. The team used Claude Code with project memory and a Databricks MCP connection to build pipelines, templates and the evaluation harness, write tests and keep documentation current. It also cut the time to get productive in a large, multi-language codebase. [CONFIRM: any hours-saved figure the team tracked.]
Four lessons
- Version prompts and gate them like code. A prompt version as the unit of change, with a non-inferiority test, turns “the new prompt seems better” into a decision the team can defend.
- Make generated media deterministic. Golden-image tests only work if the same input renders the same image every time.
- Put AI inside the existing workflow. Editors get suggestions in the editor they already use, and they stay the ones who publish.
- Log a request ID from the first call. Attribution after the fact works for most traffic, but exact cost per piece of content needs the ID at the source.
Where else this applies
The same approach fits any team that produces a lot of brand-sensitive content with a review step: media and publishing companies, marketing teams writing campaign and social copy, retailers writing product content, and financial firms with strict review rules. Put the content, the models and the quality gate under one governance model, and keep a person on the publish button.
Want to explore what this could look like for your team? See how our Agentic Factory builds production AI agents on Databricks.
-
What does the AI editorial suite do?
It suggests titles, summaries, URLs, descriptions, tags, internal links, images, style and grammar edits, and per platform social copy inside the publisher’s editor. Editors review every suggestion and publish from the same screen.
-
How are prompt changes controlled?
Each prompt version is the unit of change. A new version is evaluated offline against the current champion and promoted only if it passes a non-inferiority test, so it is never worse than what editors use today.
-
Why make branded social images deterministic?
The same input renders the same image, byte for byte, across operating systems and library versions. That makes the renderer testable with golden-image tests on every change.
-
Which Databricks components does the solution use?
Databricks Apps, Lakeflow pipelines on Delta Lake, Vector Search, Unity Catalog with the Prompt Registry, Model Serving and Lakebase.




