Skip to main content

Agentic Support Console

End-to-end AI-powered support console combining Lakebase, Change Data Feed, a medallion pipeline, an LLM agent job, reverse sync, and a Databricks App with Genie analytics.

Agentic Support Console preview

Build with AI

  1. Copy the prompt below
  2. Paste into Cursor, Claude Code, Codex, or any coding agent
  3. Your agent builds it — asking questions along the way so the result is exactly what you want

New to templates? Learn more here

Includes a working starter app

Real, runnable code lives on GitHub. When you copy the prompt above, your coding agent clones it as the starting point and adapts it to your data and use case.

databricks/app-templates/agentic-support-console/
View on GitHub

This template brings together the full Databricks developer stack into a single operational data application: an AI-powered support console where every customer message is automatically triaged by an LLM, and support agents review, approve, or override the suggestion from a purpose-built internal tool.

Data Flow

Customer interactions flow from your application's OLTP database (Lakebase Postgres) through the lakehouse via CDC, get enriched by an AI agent, and are served back to the support console through reverse sync:

  1. OLTP writes land in Lakebase Postgres (users, orders, support cases, messages).
  2. Lakebase Change Data Feed (CDF) replicates every change into Unity Catalog as CDC history tables (bronze layer).
  3. A Lakeflow Declarative Pipeline transforms CDC history into current-state silver tables and analytical gold materialized views (daily revenue, support overview, user profiles, case context).
  4. A Lakeflow Job runs every minute, finds unanswered messages, builds rich context from gold tables, calls an LLM via AI Gateway, and merges suggested responses into a Delta table.
  5. Sync Tables (reverse sync) replicate gold tables back into Lakebase for sub-10ms reads.
  6. The Support Console (Databricks App) reads from both OLTP and synced gold tables to present cases, AI suggestions, and analytics.

What to Adapt

Provisioning (manual steps and SQL), seeding, pipeline deploys, reverse sync, and app deploy are documented in the repository’s README.md alongside the code.

To make this template your own:

  • Catalog: Set the catalog variable in each pipeline's databricks.yml to your Unity Catalog catalog name.
  • Lakebase: Point the app's databricks.yml at your own Lakebase project, branch, and database.
  • Tables: The seed script creates the OLTP schema. After seeding, configure Change Data Feed to replicate your public schema tables.
  • Sync Tables: Manually create the four reverse sync configurations (see the README for the exact table mappings).
  • AI Gateway: Set the endpoint variable to your preferred model serving endpoint.
  • Genie Space: Create a Genie space over your gold tables and set the genie_space_id in the app bundle.