Beyond Analytics: Building Operational Workflows with Databricks Genie and Lakebase
Time Date

Imagine a regional retail manager discovering that sales have dropped across 15 stores. The data team investigates and identifies a possible issue. A report is shared, emails go back and forth and someone is asked to look into stock availability. Two weeks later, the same problem appears again. The data was available. The issue was identified. But was anything actually done about it? And if action was taken, did it make a difference?
This is a familiar challenge I have seen across enterprise data environments. Enterprises have become good at collecting and analysing data, but connecting those insights to operational decisions remains a largely manual process. I attended the Databricks Data + AI World Tour in London earlier this month and two technologies stood out as particularly relevant to this challenge: Genie and Lakebase.
Problem 1: How Can Business Users Investigate Data Without Waiting for an Analyst?
Consider our retail example. The regional manager wants to know, "Which stores have seen the biggest sales decline over the last two weeks and is stock availability contributing to the problem?" The underlying information already exists in Databricks. But finding the answer still involves navigating multiple dashboards or raising a request with the analytics team. A Genie Agent gives the regional manager a way to investigate the issue without relying on the analytics expert. One thing I've observed is that enterprises often focus on enabling users to ask questions in natural language. The real benefit is allowing business users to investigate their own data without waiting for an analyst or navigating multiple BI tools. But I believe the greater priority should be ensuring that the AI generated answers are grounded in trusted business definitions and the user's authorised data.
For this use case, I would:
Define Key Measures Using Unity Catalog Metric Views: Establish agreed business metrics for sales, stock availability, lost sales estimates and other relevant measures.
Build the Genie Agent Around those Views: Keep its scope focused on store and product performance.
Add Verified Answers: Start with questions the business regularly asks and establish trusted answers for them.
Test with Actual Business Users: Check the results, generated SQL and follow-up questions before wider adoption.
With the right foundation, the regional manager can investigate the issue independently and identify which stores need attention. But that's only half the problem.
Problem 2: How Can Teams Turn an Analytical Insight into an Operational Action?
Let's say the manager identifies 15 stores with recurring stock availability issues. What happens next? Someone needs to review the issue, decide whether replenishment should change, approve the adjustment and track whether it made a difference. That information doesn't necessarily belong in an analytical table. It belongs in an operational application where records can be created, updated and managed as the process progresses.
Lakebase is Databricks' OLTP (Online Transaction Processing) database engine, designed to bring transactional and analytical workloads closer together. It provides a foundation for building data driven and AI enabled applications that work with data in the lakehouse while supporting operational transactions. Its architecture leverages open formats and separates compute from storage, so compute and storage can scale independently. Instead of exporting data to another system or maintaining a separate integration for every workflow, we can build an application using Databricks Apps and Lakebase.
In this example:
The lakehouse holds sales analysis and replenishment recommendations.
Synced tables make the relevant lakehouse data available in Lakebase for low latency application reads.
Managers can use a Databricks App to review recommendations and approve or reject them.
Separate writable Lakebase tables store the decisions, statuses and approval history.
One important distinction here is that the synced tables are managed copies of lakehouse data and should be treated as read only. The application writes operational records to its own Lakebase tables.
How Do Genie and Lakebase Work Together in an Operational Workflow?
Here's how I would approach the build.

1. Investigate with a Genie Agent
The regional manager asks which stores are experiencing stock related sales issues. A Genie Agent built on Unity Catalog metric views helps investigate the data and identify possible causes.
2. Bring Recommendations into the Application
A data engineering process uses recent sales, stock levels and supplier lead times to prepare replenishment recommendations in the lakehouse. Lakebase synced tables then make those recommendations available to the Databricks App without a separate custom reverse ETL pipeline.
3. Review and Record Decisions
The manager opens the Databricks App, reviews the recommendation and approves or rejects it. The application writes the decision into Lakebase, including the relevant store, product, action, status, user and timestamp. Once approved, the application can pass the action request to the existing stock management system through an API or agreed integration, then track whether the action was completed. I would use on-behalf-of-user authorisation for user specific Databricks access, with explicit application level approval checks and audit fields. The app's service identity alone shouldn't be treated as evidence of who approved the action.
4. Bring Operational History Back into the Lakehouse
Lakebase Change Data Feed, currently in Public Preview, can capture changes to the application records and make that history available in Unity Catalog as Delta tables. That gives engineering teams a managed way to bring operational changes back into the analytical environment.
5. Measure the Outcome and Ask the Next Question
Now we can combine the decision history with subsequent sales and stock availability. After preparing those outcome measures and adding them to the Genie Agent's trusted data sources, the manager could ask, "What did we do last time this happened and did it work?" This closes the loop between identifying a problem, recording the action taken and measuring its outcome.
What Engineering Considerations Matter Before Taking This Workflow into Production?
The architecture is straightforward on paper, but there are decisions I'd make before taking it into production.
Data Movement: Synced tables bring selected lakehouse data into Lakebase. Change Data Feed takes operational changes back out. These are different data flows and the application needs clear ownership of which system can update each dataset.
Change History: Lakebase CDF requires REPLICA IDENTITY FULL on participating PostgreSQL tables. Databricks also documents restrictions on row filters and column masks applied to CDF destination history tables. Security for the downstream consumption layer needs to be designed accordingly.
Testing: Lakebase branches provide isolated, writable database environments using copy-on-write storage. I'd test approval logic, failed transactions and changes to the application schema on a branch before production deployment.
Operational Readiness: I'd also check data freshness, access permissions, query performance and how the application behaves when a synchronisation process is delayed. These are all manageable engineering concerns, but they need to be addressed before the workflow moves into production.
Where Would I Start?
I wouldn't begin with a large programme to connect every business process. I'd start with one workflow where reliable analytical data already exists but action still depends on spreadsheets, emails or manual approvals. Measure whether connecting Genie and Lakebase to that process reduces the time between identifying a problem and resolving it.
At Cloudaeon, we focus on building Databricks solutions that work reliably in production, beyond individual use cases that demonstrate what's possible. For me, the real opportunity with Genie and Lakebase is connecting trusted data, business decisions and operational outcomes in one practical workflow.
If you're facing a similar challenge in your Databricks environment, I'd be happy to compare notes on how to approach it.
FAQ
What is Databricks Genie used for?
Databricks Genie lets business users ask questions about their data in natural language and investigate business issues without relying on an analyst for every query. In this workflow, a Genie Agent focuses on sales and inventory data and uses Unity Catalog metric views, trusted business definitions and verified answers to investigate questions such as sales declines and stock availability.
What is Databricks Lakebase?
Databricks Lakebase is an OLTP (Online Transaction Processing) database engine for transactional applications. In this workflow, Lakebase provides the operational data layer for an application that lets users review recommendations, record decisions, track statuses and maintain approval history alongside analytical data in the lakehouse.
How do Databricks Genie and Lakebase work together?
Databricks Genie and Lakebase connect business investigation with operational action. Genie investigates a business issue and identifies possible causes, while Lakebase provides the transactional layer for reviewing recommendations, recording decisions and tracking outcomes. Lakebase Change Data Feed can then bring operational history back into the lakehouse for analysis.
Why should a Genie Agent use Unity Catalog metric views?
A Genie Agent can use Unity Catalog metric views to ground business questions in agreed definitions for measures such as sales, stock availability and lost sales estimates. This gives the Genie Agent a defined set of business metrics to work with and reduces the risk of different users interpreting the same underlying data differently.
What is Lakebase Change Data Feed?
Lakebase Change Data Feed (CDF) captures changes to application records and makes that change history available in Unity Catalog as Delta tables. In this workflow, CDF brings operational records such as decisions and status changes back into the analytical environment so they can be analysed alongside sales and stock data. Lakebase Change Data Feed is currently in Public Preview.



