<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How Can a Databricks App Render the Same Detailed Response as the Genie UI? in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/how-can-a-databricks-app-render-the-same-detailed-response-as/m-p/166840#M2034</link>
    <description>&lt;P&gt;I’m building a Databricks App with a Genie Space at the core and have run into a difference between the Genie UI and the Genie Conversation API.&lt;/P&gt;&lt;P&gt;For the same business question, the Genie web UI can produce a detailed response containing an executive summary, breakdowns, query-backed results, and visualizations.&lt;/P&gt;&lt;P&gt;When I invoke the same Genie Space from a Databricks App using the Databricks SDK (start_conversation_and_wait / create_message_and_wait), the returned narrative is often significantly shorter.&lt;/P&gt;&lt;P&gt;I also inspected the message attachments. In some Genie UI conversations, much of the detailed analysis appears to be represented through SQL/query/visualization attachments rather than a complete text attachment.&lt;/P&gt;&lt;P&gt;I tried retrieving query-attachment results through the Genie SDK/API, but I have not yet been able to reproduce the same detailed experience that is visible in the Genie web UI.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is the detailed narrative displayed in the Genie web UI always available through the Conversation API, or does the UI perform additional client-side synthesis/rendering?&lt;/LI&gt;&lt;LI&gt;What is the recommended API/SDK method for retrieving the &lt;STRONG&gt;result data&lt;/STRONG&gt; associated with every query attachment returned by a Genie message?&lt;/LI&gt;&lt;LI&gt;Can Genie-generated visualizations from the web UI be retrieved/rendered in a Databricks App?&lt;/LI&gt;&lt;LI&gt;Is there a supported way for a Databricks App to request the same detailed/deep-research-style response produced by the Genie UI?&lt;/LI&gt;&lt;LI&gt;For production Genie-powered Apps, what is the recommended pattern for presenting narrative + query results + visualizations while keeping Genie as the reasoning layer?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My goal is &lt;STRONG&gt;not to execute or reconstruct Genie's business logic separately in the application&lt;/STRONG&gt;. I want the App to faithfully present the answer and evidence generated by Genie.&lt;/P&gt;&lt;P&gt;Any guidance on the expected API behavior or recommended implementation pattern would be appreciated.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Aug 2026 22:35:05 GMT</pubDate>
    <dc:creator>gbhogle1789</dc:creator>
    <dc:date>2026-08-30T22:35:05Z</dc:date>
    <item>
      <title>How Can a Databricks App Render the Same Detailed Response as the Genie UI?</title>
      <link>https://community.databricks.com/t5/generative-ai/how-can-a-databricks-app-render-the-same-detailed-response-as/m-p/166840#M2034</link>
      <description>&lt;P&gt;I’m building a Databricks App with a Genie Space at the core and have run into a difference between the Genie UI and the Genie Conversation API.&lt;/P&gt;&lt;P&gt;For the same business question, the Genie web UI can produce a detailed response containing an executive summary, breakdowns, query-backed results, and visualizations.&lt;/P&gt;&lt;P&gt;When I invoke the same Genie Space from a Databricks App using the Databricks SDK (start_conversation_and_wait / create_message_and_wait), the returned narrative is often significantly shorter.&lt;/P&gt;&lt;P&gt;I also inspected the message attachments. In some Genie UI conversations, much of the detailed analysis appears to be represented through SQL/query/visualization attachments rather than a complete text attachment.&lt;/P&gt;&lt;P&gt;I tried retrieving query-attachment results through the Genie SDK/API, but I have not yet been able to reproduce the same detailed experience that is visible in the Genie web UI.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is the detailed narrative displayed in the Genie web UI always available through the Conversation API, or does the UI perform additional client-side synthesis/rendering?&lt;/LI&gt;&lt;LI&gt;What is the recommended API/SDK method for retrieving the &lt;STRONG&gt;result data&lt;/STRONG&gt; associated with every query attachment returned by a Genie message?&lt;/LI&gt;&lt;LI&gt;Can Genie-generated visualizations from the web UI be retrieved/rendered in a Databricks App?&lt;/LI&gt;&lt;LI&gt;Is there a supported way for a Databricks App to request the same detailed/deep-research-style response produced by the Genie UI?&lt;/LI&gt;&lt;LI&gt;For production Genie-powered Apps, what is the recommended pattern for presenting narrative + query results + visualizations while keeping Genie as the reasoning layer?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My goal is &lt;STRONG&gt;not to execute or reconstruct Genie's business logic separately in the application&lt;/STRONG&gt;. I want the App to faithfully present the answer and evidence generated by Genie.&lt;/P&gt;&lt;P&gt;Any guidance on the expected API behavior or recommended implementation pattern would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2026 22:35:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/how-can-a-databricks-app-render-the-same-detailed-response-as/m-p/166840#M2034</guid>
      <dc:creator>gbhogle1789</dc:creator>
      <dc:date>2026-08-30T22:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How Can a Databricks App Render the Same Detailed Response as the Genie UI?</title>
      <link>https://community.databricks.com/t5/generative-ai/how-can-a-databricks-app-render-the-same-detailed-response-as/m-p/166854#M2035</link>
      <description>&lt;P&gt;Checked the current Genie REST API reference for this rather than guessing, a few concrete answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query attachment result data: GET /api/2.0/genie/spaces/{space_id}/conversations/{conversation_id}/messages/{message_id}/attachments/{attachment_id}/query-result (SDK: getMessageAttachmentQueryResult). Returns a statement_response with manifest/schema plus result.data_array (and external_links/total_row_count/truncated for larger results). For bigger result sets there's also a generateDownloadFullQueryResult endpoint. So: iterate message.attachments, and for each attachment where the type is a query attachment, call this to get the actual rows, you don't need to re-run the SQL yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visualizations: these are very likely your missing piece. Message creation (create_message_and_wait / start_conversation_and_wait) takes an enable_visualization boolean, and it defaults to not generating them. If you're not passing enable_visualization: true, the API will legitimately return a shorter response than the UI, because the UI always requests them. With it set, messages can include a visualization-type attachment carrying a title and a query_attachment_id pointing back to the query attachment it's built from. One caveat from what's documented: that attachment gives you the title and the source query reference, not a ready-to-render chart spec or image, so your app still has to decide how to plot the underlying query-result data. It's parity on "a visualization exists and what it's based on," not a drop-in rendered chart artifact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the narrative length gap specifically: a text attachment's content field is described as the actual AI-generated message, not something the UI further synthesizes client-side, so if you're still short after adding enable_visualization, worth checking whether the UI conversation you're comparing against is actually running in Agent mode. That's a separate, still-Beta API surface (POST /api/2.0/genie/agents/{agent_id}/responses) with a different response model entirely, reasoning/function_call/function_call_output/message items instead of conversation attachments, and it's what produces the longer deep-research-style narratives with 5+ chained queries. If your UI comparison was an Agent mode conversation, the Conversation API you're calling isn't the same code path at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the "don't want to reconstruct Genie's logic, just present it faithfully" part of your ask: rather than hand-rolling the attachments-to-UI mapping, Databricks' own AppKit has a GenieChat React component (@databricks/appkit-ui/react) built exactly for this, wire a Genie plugin on the server, bind GenieChat to your space via an alias, and it handles the streaming/history/reconnection plumbing for you. I couldn't confirm from the docs alone whether it has full visualization parity with the standalone Genie UI, so worth a quick spike, but it's the officially maintained path rather than reimplementing attachment rendering from scratch.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2026 01:22:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/how-can-a-databricks-app-render-the-same-detailed-response-as/m-p/166854#M2035</guid>
      <dc:creator>DoTA</dc:creator>
      <dc:date>2026-08-31T01:22:09Z</dc:date>
    </item>
  </channel>
</rss>

