Skip to main content

Genie Multi-Space Selector

Add a space selector so users can switch between multiple AI/BI Genie spaces from a single page. Covers multi-alias server config, per-space bundle resources, and automatic conversation cleanup on space switch and redeployment.

Genie Multi-Space Selector 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

When done, you will have:

  • Multiple Genie spaces accessible from a single app
  • A dropdown selector for switching between named Genie spaces
  • Automatic conversation state cleanup when switching spaces
  • Server and client configuration supporting multiple space aliases

Prerequisites

This template upgrades an existing single-space Genie app to switch between multiple spaces. Verify these Databricks workspace features are enabled before starting. If any check fails, ask your workspace admin to enable the feature.

  • AI/BI Genie enabled. Run databricks genie list-spaces --profile <PROFILE> and confirm the command succeeds.
  • Two or more Genie spaces configured. The list above must return at least two spaces — one per entry you want in the selector. If you have fewer, create additional spaces in AI/BI Genie in the Databricks UI.
  • Databricks Apps enabled. Run databricks apps list --profile <PROFILE> and confirm the command succeeds.
  • A scaffolded AppKit app with the Genie feature. Complete the Genie Conversational Analytics template first. This template only covers the upgrade from one space to many — not the initial Genie wiring.

Explore more templates

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs