4 weeks ago
Hi
We are opening up the Genie AI to the business users. The Genie One seems to be a good fit, but the problem I noticed is the Guardrails and influence over the single orchestration. All the questions have been nicely interrupted by Genie one and works with agents, tables from all schemas, notebooks, etc. My issue here is that I want to prioritize the search to go on the agents first, Clarifying questions for underspecified prompts than assuming the metrics, categories and date ranges. I feel like that's possible by creating the persona via the skill under Genie One, and customize with guardrails. Is that a right approach?
4 weeks ago
Hi @SenthilKrishna,
Iโd use a skill for a reusable workflow, but Iโd start with workspace instructions and the individual Genie Agents for the behavior you describe.
A useful detail: Databricks documents that Genie One already searches available Genie Agents first. If it finds no matching agent, it searches other data assets. So the distinction here is between agents first and agents only. I couldnโt find a documented setting that guarantees agents-only routing or disables that fallback.
For clarification behavior, Iโd configure two places:
Genie One chat: Workspace admins can add instructions in /Workspace/.genie_workspace_instructions.md. These apply automatically to every chat in the workspace.
Each Genie Agent: Add the clarification rules to its own instructions, because workspace chat instructions do not apply to Genie Agents.
Skills load when Genie One considers them relevant, or when explicitly invoked, so I wouldnโt rely on a persona skill alone for a workspace-wide rule.
For example, Iโd try: โWhen a sales question does not specify the metric, category breakdown, or date range, and the missing details are not established in the conversation, ask for clarification before generating SQL. Do not silently choose defaults.โ
Databricks explicitly recommends defining the clarification trigger, missing details, and expected question, and placing these rules at the end of the agentโs general instructions.
Iโd then test ambiguous prompts through both Genie One and the agent directly. That should help distinguish routing issues from how the selected agent handles missing information. Iโd treat the instructions as guidance to validate, rather than a guaranteed orchestration guardrail.
References:
https://docs.databricks.com/aws/en/genie-one/chat#how-chat-works
https://docs.databricks.com/aws/en/genie-one/chat#skills
4 weeks ago
Thanks for the details. I have few follow up questions. Although I have well instructed Genie Agents, the questions asked at Genie One chat will assume certain metrics(Year, Sale, Brand, etc) before submitting the catered questions down to Agents. I do not have workspace admin access, I created a skill with all guradrails around asking the clarifying questions, and strictly go in sequence. which does the job. am I doing right here? example guardrails added to the skills
Marketer Persona
You are acting as a data analyst for a marketing team. Your job is to answer business questions about sales, customers, products, campaigns, loyalty, email engagement, store performance, compliance, and demographics โ accurately and only from verified sources.
Clarifying questions for underspecified prompts
When a user's question is missing one or more of the following key elements, ask a brief clarifying question before generating SQL โ do NOT silently assume defaults:
Metric โ If the user doesn't specify what to measure (e.g., revenue, orders, units, return rate, basket size, open rate), ask: "Which metric would you like to see?" and suggest the most relevant options based on context.
Dimension / Breakdown โ If the user asks for "performance" or "trends" without specifying how to slice the data (e.g., by brand, category, store, channel, customer segment), ask: "How would you like this broken down?" and list applicable dimensions.
Time Range โ If the user doesn't specify a date range, quarter, month, or relative period (e.g., "last 3 months", "Q2 2025", "YTD"), ask: "What time period should I analyze?" Do not silently default to 12 months.
Filter Context โ If the question is broad and could apply to a specific channel (online vs in-store), brand, product category, business unit, or store location, ask whether they want to filter to a specific scope or see all.
Combine missing elements into a single clarifying response โ do not ask one at a time. For example: "To answer this, I need to know: (1) which metric โ revenue, orders, or units? (2) what time period? (3) any specific channel or brand filter?"
Exception: If the user's intent is unambiguous and only one reasonable interpretation exists, proceed without asking.
Source Priority (STRICT)
Answer questions using only these sources, in this priority order:
Priority 1 โ Genie Agents (always prefer these first)
Priority 2 โ Schema1
Priority 3 โ Schema2, etc...
4 weeks ago
I ran a small POC with Genie One, two curated Genie Agents (Sales and Contact Analysis), and a personal Genie One Skill to explore below.
1. Clarification before querying
Under Genie Agent โ Configure โ General instructions, I added:
When users request best-selling products without specifying the ranking metric or reporting period, ask for clarification before running SQL. Don't assume revenue or the latest available period.Using the below prompt, both the Genie Agent and Genie One asked for clarification.
Show me the top 5 best-selling productsInterestingly, Genie One had retrieved an Ontology definition associating best-selling with SUM(totalPrice), but still asked which metric and period to use (clarification).
A separate below prompt, also triggered clarification questions despite available Ontology definitions.
Compare sales performance across franchises2. Genie One Skills : A practical approach without admin access
I also created a personal marketing-analytics-guardrails Skill with clarification, source-priority, and fallback instructions.
A few observations:
So your approach of using a personal Skill makes sense, particularly without workspace admin access.
3. Agent-first vs agents-only routing
One limitation worth highlighting: even after explicitly loading the Skill with Source Priority (STRICT), Genie One executed SQL directly against an accessible Unity Catalog table for a table-count request, without visible delegation to the available Contact Analysis Agent or fallback explanation.
That was an explicitly table-oriented question, so I'd treat it as a boundary test rather than proof that all marketing questions bypass the Skill.
My takeaway: Skills and Genie Agent instructions can improve clarification and source preferences, but they're behavioural guidance rather than deterministic enforcement.
I would retain your combined clarification questions and exception for unambiguous requests. For critical workflows, explicitly invoke the Skill rather than relying entirely on automatic selection.
If the requirement is to always route queries through approved Genie Agents, Skills alone may not guarantee that. This would likely need additional access controls or a controlled agent-based interface, rather than relying solely on prompt instructions.
Hope these test observations help.
4 weeks ago
Thanks, that helps me understand what youโre seeing. If Genie One is filling in details before passing the question to an agent, Iโd try addressing that in the skill too. Given that you donโt have workspace admin access and youโre already seeing better results, this seems like a reasonable approach.
Databricks supports skills for customizing Genie One chat. They can load automatically when relevant, but while testing Iโd invoke yours explicitly with /skill-name. That removes some uncertainty about whether it was selected.
Your clarification rules look sensible. The part Iโd change is โbefore generating SQL,โ because the assumptions youโre describing happen earlier. Iโd try something like:
โBefore submitting a question to a Genie Agent or querying data directly, ask for any missing information that would materially change the answer. When forwarding the question, preserve the metric, dimensions, filters, and time range confirmed by the user. Do not add unconfirmed assumptions.โ
Iโd also tighten the exception about โone reasonable interpretation.โ What seems obvious to the model might still differ from what the business user intended.
For source priority, Iโd spell out when fallback is allowed. For example: โIf no suitable Genie Agent is found, ask the user before searching Schema1 or Schema2.โ Thatโs an instruction Iโd test, rather than a documented routing control.
I couldnโt find a documented guarantee that a skill enforces a strict execution sequence or schema priority. Iโd keep refining yours and test it in fresh conversations, particularly with ambiguous questions and questions that donโt match any agent.
One detail for the business rollout: skills are personal by default, so creating yours doesnโt automatically apply those instructions to everyone.
4 weeks ago
Short answer: instructions alone are guidance, not hard routing, so the reliable fix is to make the right answer the easiest one for Genie to find.
What worked for me:
1. Build a benchmark first: 20โ30 real questions, 2โ4 phrasings each, one correct SQL per question.
2. Tune in this order and re-run the benchmark after each step: table/column descriptions โ join relationships โ SQL expressions โ example SQL โ text instructions last.
3. For "ask before assuming," write a trigger-style instruction: "If the user asks for <metric> without a date range, ask which period before querying."
4. Put must-be-right questions behind example SQL so Genie isn't guessing the metric.
On one benchmark this took accuracy from 85.7% to 100%. Full tuning log with each step's score change:
https://saurabhanilagrawal.medium.com/how-do-i-get-a-genie-agent-above-90-accuracy-a-benchmark-drive...