Databricks Voices content is authored and published by Databricks employees that want to share their own individual learnings and Databricks knowledge. This content supplements the official Databricks product documentation found in other sections of this site.
How we use AI on Databricks to write documentation
What does technical writing become in the age of AI? Our team didn't wait to find out. AI systems run on instructions, and writing clear instructions is our craft. This is how our team of technical writers went from artisan sentence-crafters to the managers of a documentation factory powered by AI.
Documentation has a context problem. The context is split between the people who build a feature and the people who explain it. At the pace of AI-driven development, the old way of knowledge transfer in one-on-one discussion no longer scales.
So our writers built a factory that encodes our questions, style, and knowledge into its structure, and the people with the context feed their inputs into it. Most of it runs on the Databricks products we document.
How we built the factory, one step at a time
Encode taste in a writing agent
A basic model writes fine, but it doesn't write like a professional. Our first job was to teach our agents to write like us. Four pieces do most of that work. Think of them like the training manual you'd receive on your first day on the job. For example: Teaches an agent the docs project's site structure, technical implementation, and content types. For example: A short index of best-in-class examples of our content types. We use them as few-shot examples for the agent: For example: The style guide and word lists
A docs project primer
A golden corpus
Drafting rules and anti-AI slop filters
These skills live as "primers" that our agent reads whenever the project loads, so it starts from the same context each time.
Now we have a simple content writer. It writes in our style, but it knows nothing about the product.
Give it the right context
The best source of context for a new feature is the person who built it, so intake is designed for busy engineers. It accepts a context dump of information from engineers, so they can let the agent work in the background.
Then a research step digs through source code, pull requests, design documents, Slack, Jira, and Confluence to find the answers that a technical writer would ask.
All of this runs on governed infrastructure. Our agents reach Claude and GPT models from Foundation Model APIs through Unity Gateway with workspace identity, and connect to services such as GitHub, Glean, and Slack through a mix of Unity Catalog connections and Model Context Protocol (MCP) servers, including Databricks-provided MCPs.
Now we have a writing agent with good taste and access to the right context.
Verify against the code
AI can still get things wrong, and context can change, so the agent must verify before it writes.
Our rule is that code is ground truth. The agent checks every claim against the source code and gives it one of three statuses:
- High confidence: The code directly supports the claim.
- Low confidence: The claim appears only in a design document or pull request description.
- Conflicts with code: The code contradicts the claim.
The verified facts go into a docs spec, and drafting continues from that spec instead of the raw sources.
After drafting, an agent attempts to run instructions from the docs changes against a live Databricks workspace.
Add final reviews
A verified draft can still have a broken anchor or an unanswered reader question, so we add multiple rounds of reviews.
- Self-review: Our first line of defense. A fast gate with more than 20 checks for clear blocking issues.
- Generative engine optimization (GEO): Edits that help people and AI assistants find and retrieve chunks on the page.
- Full review: Gets called for significant changes. A deeper pass with more verification steps.
- Review as a user: Gets called for changes that cross multiple pages and need to be explored the way a reader would, to find deeper issues.
We also benchmark how AI assistants answer questions our docs should cover. The results land in a Unity Catalog volume and a Delta table, so we can compare runs over time.
Now we have a writing agent that can look things up and check its own work.
Make it a composable workflow
We could have built one long pipeline. Instead, we have multiple workflows made up of smaller composable skills for planning, drafting, review, and change management. Because workflows share building blocks, one skill fix improves them all.
Our main workflow, the docs factory, takes someone from "I shipped a feature" to an open pull request in five phases. The workflow is intelligent: it skips steps based on how complex the change is.
See the full docs factory workflow

There are other workflows for specific content types, like release notes, and for specific products, but they all use the same base skills.
We manage skills like software. We have skills organized into versioned plugins. Each workflow records which plugins and skills it ran. Context-heavy steps, such as researching the codebase, run in sub-agents that return only their result.
This follows Anthropic's guidance on Agent Skills. Because ours are small and discoverable, agents can also choose which skills to load and compose their own workflows.
Call workflows from anywhere
A workflow only helps if people can reach it, so we expose the factory through several surfaces.
- Skills invoked by an engineer's coding agent: Engineers install our plugins, and their agents choose when to invoke our skills.
- A Slack bot: A dedicated Slack channel lets anybody in the company suggest doc fixes. An always-on bot responds to requests and creates PRs autonomously.
- Email and tickets: Feedback emails land and tickets get triaged on a scheduled basis.
Here's an illustration of the Slack bot fixing a report.

Now we have an automated factory that plugs in anywhere.
Scale it with parallel sessions
The next limit was running enough agents at the same time.
Most of our team now runs their agent work in Omnigent. Omnigent gives us:
- One view to manage parallel tasks: An interface that lets us manage multiple parallel conversations.
- Multiple coding agents: A supervisor agent splits a task across coding agents such as Claude Code, Codex, and Pi.
- Cross-vendor review: A model from a different vendor reviews each change, which catches mistakes that the first model family repeats.
- Automation scheduling: We can automate scheduled tasks like automatically updating llms.txt or generating release notes.
Here's an illustration of our Omnigent board on a typical day.

Several agent sessions on one laptop slow each other down, so we run them on Databricks Sandbox, which provides isolated serverless compute. Omnigent launches each task on its own sandbox, which stops automatically after inactivity.
Now the factory can run many tasks in parallel.
Report on it with Genie
To improve our factory, we need observability. Skill usage is logged in a central Databricks workspace, so we can ask Genie One natural-language questions and report on the adoption and impact of our docs factory.
For example, we asked Genie One how our pull request volume has changed:
Show me how docs PR volume has grown over the past year, broken down by who’s writing them: Content Engineering, engineers and PMs, the Slack bot, and other bots.
Here's an illustration of what Genie returned.

Improve the factory with a feedback loop
We use pull request review comments to improve our skills. A feedback-analysis skill reads the comments on merged pull requests, traces recurring problems back to the skill that caused them, and proposes a fix. A person approves every change before it ships.
Now we have a docs factory that gets better with every review.
What our day-to-day looks like
- We no longer write our own pull requests. Engineers, product managers, and automated processes create them.
- We review the pull requests that the factory and the Slack bot open.
- We run several Omnigent sessions in parallel, each on its own sandbox.
- We spend our time increasing quality, improving skills, adding observability and metrics, automating more pipelines, and finding ways to reduce human approval and review.
What we learned
- Prototype fast and start building: In the world of AI, no one really knows what's possible or what the best practices are. The best way to learn is to start building things and gather data as you go. The cost of iteration is low with AI development tools, so you don't have to be committed to every decision you make.
- Treat context as its own entity: Figure out which person or which agent has the right context for each step and work backwards from there.
- Make skills small, composable, and centralized: Centralize your skills so that all of your writers work with the same tools. This makes it much easier to identify what works consistently.
- Build separately, then consolidate: It's okay for people to build things on their own. It's the fastest way to explore. But you need a consolidation phase to rein in duplicate work.
- Adopt engineering AI tools, but make them your own: Most coding agents are built for coding, and writing is a different practice. It takes time to figure out how to adapt developer tools for writing.
The tools we use
- Claude Code, Codex, and Pi: The coding agents we tend to work with.
- Omnigent: Persistent, shareable sessions and cross-vendor review.
- Databricks Sandbox: Isolated compute for each task.
- Unity Gateway and Foundation Model APIs: Model access.
- Unity Catalog connections and Databricks-provided MCPs: Tools and knowledge.
- Genie One and AI/BI dashboards: Reporting.