<?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 Re: How to Connect Google Gemini Agent to Data Bricks Genie Space in Databricks Free Edition Help</title>
    <link>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159454#M831</link>
    <description>&lt;P&gt;&lt;SPAN&gt;You can follow below to enable the Gemini agent (to detect when users ask data-related questions (invoice status, supplier details etc)) and route those queries to the Genie Space, then return the results in the Gemini chat window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Google Gemini Enterprise agent can call Databricks Genie Spaces via the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Genie Conversation API&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Create Tool/Function for Gemini Agent&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;You can define a function calling tool in the Gemini agent that triggers when users ask data-related questions&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Implement Genie API Integration&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;Create a backend service that connects Gemini to Genie.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Integrate with Gemini Agent&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;When Gemini calls the function, route to Genie.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Configure Gemini Agent Instructions&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;Add instructions to the Gemini agent to use genie function when users ask question about Invoice status etc&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;More details &lt;A href="https://docs.databricks.com/aws/en/genie/conversation-api" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2026 15:20:39 GMT</pubDate>
    <dc:creator>balajij8</dc:creator>
    <dc:date>2026-06-17T15:20:39Z</dc:date>
    <item>
      <title>How to Connect Google Gemini Agent to Data Bricks Genie Space</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159080#M823</link>
      <description />
      <pubDate>Mon, 15 Jun 2026 17:46:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159080#M823</guid>
      <dc:creator>VinodPitta</dc:creator>
      <dc:date>2026-06-15T17:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Connect Google Gemini Agent to Data Bricks Genie Space</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159153#M824</link>
      <description>&lt;P&gt;Hi, not sure whether there should have been more context in this post. Do you want to let me know what you were trying to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Emma&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2026 13:25:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159153#M824</guid>
      <dc:creator>emma_s</dc:creator>
      <dc:date>2026-06-16T13:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Connect Google Gemini Agent to Data Bricks Genie Space</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159194#M825</link>
      <description>&lt;P&gt;How to connect Google Gemini Enterprise agent to Genie Space&amp;nbsp;for natural language data querying in chatbots, applications, and AI agent frameworks. Today in Genie space , i can query for an invoice status and get more details conversation related to it , we want the same feature from Gemini Agent&amp;nbsp; i.e&amp;nbsp; When a user asks a question requiring database lookups (e.g., supplier details, invoice status, or invoice history ), you must use the Databricks Genie and provide the out come in Gemini Agent chat window.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2026 18:22:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159194#M825</guid>
      <dc:creator>VinodPitta</dc:creator>
      <dc:date>2026-06-16T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Connect Google Gemini Agent to Data Bricks Genie Space</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159453#M830</link>
      <description>&lt;P&gt;H&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm not an expert in what Google Gemini Enterprise agent supports, but there are a couple of options with Genie.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The easiest one is if Google Gemini Enterprise agent supports it, using the Databricks Genie MCP to add your MCP. However, I'm not sure whether the Gemini Enterprise agent has this capability of adding MCPs. Docs for this are here.&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/generative-ai/mcp/managed-mcp" target="_blank"&gt; &lt;SPAN&gt;https://docs.databricks.com/aws/en/generative-ai/mcp/managed-mcp&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If not, then you can use the Genie API, docs here &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/genie/conversation-api?language=Use+an+existing+space" target="_blank"&gt;&lt;SPAN&gt;https://docs.databricks.com/aws/en/genie/conversation-api?language=Use+an+existing+space&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You would register this as a google cloud function and then import this into your Gemini Enterpise Agent.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is some sample code of what the cloud function would look like.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import os
import json
import functions_framework
from databricks.sdk import WorkspaceClient


@functions_framework.http
def query_genie(request):
    try:
        body = request.get_json(silent=True)
        if not body or "user_question" not in body:
            return (
                json.dumps({"error": "Missing 'user_question' in request body"}),
                400,
                {"Content-Type": "application/json"},
            )

        user_question = body["user_question"]

        w = WorkspaceClient(
            host=os.environ["DATABRICKS_HOST"],
            token=os.environ["DATABRICKS_TOKEN"],
        )
        space_id = os.environ["GENIE_SPACE_ID"]

        response = w.genie.start_conversation_and_wait(
            space_id=space_id,
            content=user_question,
        )

        # Genie returns attachments in order: [query, suggested_questions, text]
        # Prefer the text attachment (human-readable answer); fall back to query description.
        answer = ""
        query_fallback = ""
        for attachment in response.attachments or []:
            if hasattr(attachment, "text") and attachment.text:
                answer = attachment.text.content
                break
            if hasattr(attachment, "query") and attachment.query and not query_fallback:
                query_fallback = attachment.query.description or attachment.query.query
        if not answer:
            answer = query_fallback

        return (
            json.dumps(
                {
                    "answer": answer,
                    "conversation_id": response.conversation_id,
                }
            ),
            200,
            {"Content-Type": "application/json"},
        )

    except Exception as e:
        return (
            json.dumps({"error": str(e)}),
            500,
            {"Content-Type": "application/json"},
        )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;For full disclosure the api currently only serves standard genie space responses not agent mode ones. You may also want to look at instead giving your business users access to Genie One. There is the ability in beta to connect this to google drive or office. Your users would then get Genie Agent mode properly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Emma&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2026 15:02:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159453#M830</guid>
      <dc:creator>emma_s</dc:creator>
      <dc:date>2026-06-17T15:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Connect Google Gemini Agent to Data Bricks Genie Space</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159454#M831</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You can follow below to enable the Gemini agent (to detect when users ask data-related questions (invoice status, supplier details etc)) and route those queries to the Genie Space, then return the results in the Gemini chat window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Google Gemini Enterprise agent can call Databricks Genie Spaces via the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Genie Conversation API&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Create Tool/Function for Gemini Agent&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;You can define a function calling tool in the Gemini agent that triggers when users ask data-related questions&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Implement Genie API Integration&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;Create a backend service that connects Gemini to Genie.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Integrate with Gemini Agent&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;When Gemini calls the function, route to Genie.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Configure Gemini Agent Instructions&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;Add instructions to the Gemini agent to use genie function when users ask question about Invoice status etc&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;More details &lt;A href="https://docs.databricks.com/aws/en/genie/conversation-api" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2026 15:20:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/how-to-connect-google-gemini-agent-to-data-bricks-genie-space/m-p/159454#M831</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-06-17T15:20:39Z</dc:date>
    </item>
  </channel>
</rss>

