<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Joon Solutions - Medium]]></title>
        <description><![CDATA[We are a team of data fanatics. We eat, sleep, and dream data. If you are looking to upskill or just keep up to speed with the insanely rapid growth in the data industry follow us for weekly updates! - Medium]]></description>
        <link>https://medium.com/refined-and-refactored?source=rss----7f72b309e802---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Joon Solutions - Medium</title>
            <link>https://medium.com/refined-and-refactored?source=rss----7f72b309e802---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:59:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/refined-and-refactored" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Writing Agent-Ready LookML for Looker Conversational Analytics]]></title>
            <link>https://medium.com/refined-and-refactored/writing-agent-ready-lookml-for-looker-conversational-analytics-32a004f873ce?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/32a004f873ce</guid>
            <category><![CDATA[looker]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[conversational-ai]]></category>
            <dc:creator><![CDATA[Alice Bui]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 01:08:40 GMT</pubDate>
            <atom:updated>2026-07-29T10:08:06.213Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 1 of a series on rolling out Looker Conversational Analytics — 7 best practices with LookML examples.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YeOUp4izKBALODKZPZmzLg.png" /><figcaption>Writing Agent-Ready LookML for Looker Conversational Analytics</figcaption></figure><p>Most Looker teams already have Conversational Analytics. Few trust it. The gap almost always traces back to LookML — labels, synonyms, hidden fields — done carelessly or skipped.</p><p>Google actually documents the core of this well. Its Conversational Analytics best-practices guide lists five key LookML takeaways: precise labels, synonyms &amp; descriptions for mapping, centralized calculations, hiding technical fields, and optimizing suggestions for fuzzy search. What it doesn’t give you is LookML examples. This post walks through those five, plus a couple of adjacent practices, each with the actual LookML.</p><h3>1. Business-friendly labels</h3><p>Conversational Analytics maps natural language to field names — if your labels are internal shorthand, every question starts at a disadvantage. Labels should read the way a business user would say them out loud, not the way an engineer named the column.</p><pre>dimension: rfm_segment {<br>  type: string<br>  sql: ${TABLE}.rfm_segment ;;<br>  label: &quot;Customer Segment&quot;        # not &quot;rfm_segment_cd&quot;<br>}</pre><p><strong>Demo — before/after.</strong> A field labeled rfm_segment will rarely get picked when someone asks &quot;who&#39;s at risk of churning.&quot; Labeled label: &quot;Customer Segment&quot;, it&#39;s a near-exact string match.</p><h3>2. Synonyms &amp; descriptions for field mapping</h3><p>These two parameters do different jobs, and mixing them up is the most common LookML mistake for CA. synonyms handles general vocabulary variations Gemini should map without being told twice — &quot;revenue&quot; to &quot;sales,&quot; for instance. description anchors the field&#39;s exact math and boundaries — not more vocabulary.</p><pre>measure: total_net_revenue {<br>  type: sum<br>  sql: ${TABLE}.gross_revenue - ${TABLE}.refunds ;;<br>  label: &quot;Total Net Revenue&quot;<br>  synonyms: [&quot;sales&quot;, &quot;top line&quot;, &quot;net sales&quot;]<br>  description: &quot;Aggregates gross revenue minus processed refunds. Excludes promotional credits. Used for official GAAP financial reporting.&quot;<br>}</pre><p>synonyms catches the vocabulary variation. description keeps the definition airtight — what&#39;s included, what&#39;s excluded, which reporting standard it maps to — so the agent doesn&#39;t quietly redefine &quot;revenue&quot; when it summarizes results.</p><p>For fields where a business phrase doesn’t map to a single value but to a <em>combination</em>, that logic can’t live in a synonym — it belongs in Agent Instructions instead. LookML’s job here is making the individual fields unambiguous; instructions handle compound terms like “High-Value + At-Risk customer.”</p><h3>3. Centralized measures &amp; dimensions</h3><p>Conversational Analytics can’t compute custom fields on the fly. If a metric isn’t defined once in LookML, the agent can’t produce it consistently — it’ll either refuse or, worse, approximate it differently across conversations.</p><p>In some scenarios, you will need to build a PDT for new measures or dimensions.</p><pre>view: clv_prediction_pdt {<br>  derived_table: {<br>    sql: SELECT customer_id, predicted_clv_90d<br>         FROM ${clv_model.SQL_TABLE_NAME}<br>    ;;<br>    datagroup_trigger: daily_etl<br>  }<br>  dimension: predicted_clv_90d {<br>    type: number<br>    sql: ${TABLE}.predicted_clv_90d ;;<br>    label: &quot;Predicted 90-Day CLV&quot;<br>  }<br>}</pre><h3>4. Hide internal and technical fields</h3><p>Every field Conversational Analytics can see is context it has to reason over on every question. Fields with no business meaning — join keys, ETL metadata, internal flags — should be hidden so they don’t compete with the fields that actually answer questions.</p><pre>dimension: internal_customer_key {<br>  hidden: yes<br>  type: string<br>  sql: ${TABLE}.internal_customer_key ;;<br>}</pre><p><strong>Demo.</strong> In one explore we curated, hiding 14 of 40 fields (join keys and ETL metadata) was the single change that moved a batch of ambiguous test questions from “agent grabs the wrong column” to passing — no instruction changes required.</p><h3>5. Suggestions and suggest_explore for fuzzy search</h3><p>By default, Looker generates suggestions by querying the field’s own explore for distinct values. When users reference specific values by name — a segment, a campaign, a product line — suggestions gives Conversational Analytics a controlled list to match against, rather than triggering a live database lookup on every guess.</p><pre>dimension: rfm_segment {<br>  type: string<br>  sql: ${TABLE}.rfm_segment ;;<br>  suggestions: [&quot;Champion&quot;, &quot;Loyal&quot;, &quot;At-Risk&quot;, &quot;Hibernating&quot;, &quot;Promising&quot;, &quot;Need Attention&quot;, &quot;New Customers&quot;]<br>}</pre><p>That’s fine for a handful of RFM segments, but expensive and messy against a campaign_name or SKU field with tens of thousands of rows — especially if the underlying table has typos, deprecated entries, or duplicate casing sitting in it. suggest_explore and suggest_dimension redirect that lookup to a separate, smaller table you control — typically a clean lookup or dimension table — instead of querying the raw fact table directly.</p><p>Two concrete gains from that: the suggestion query runs against a much smaller, indexed table instead of scanning millions of fact rows, and the values CA is matching against are the ones you’ve deliberately curated as correct — not whatever variant happens to exist in raw transactional data.</p><p>For high-cardinality fields where a static list isn’t practical (product SKUs, campaign names), point CA at a dedicated suggest explore instead:</p><pre>dimension: campaign_name {<br>type: string<br>sql: ${TABLE}.campaign_name ;;<br>suggest_explore: campaign_lookup<br>suggest_dimension: campaign_lookup.campaign_name<br>}</pre><p>Here, campaign_lookup is a small, clean explore — one row per campaign, current values only — separate from the fact table campaign_name actually lives on. This is the difference between the agent silently misreading “Win-Back” as a filter on the wrong column, versus matching it correctly against a known entity list — and it’s faster, since it skips a live sample-data query against the full fact table.</p><h3>6. Aggregate awareness for response speed</h3><p>Conversational Analytics queries run in a conversational context — a 15-second wait breaks the experience in a way it wouldn’t in a scheduled dashboard. Aggregate tables let Looker route a query to a pre-aggregated table when the requested grain allows it.</p><pre>aggregate_table: rollup_by_segment_month {<br>  query: {<br>    dimensions: [rfm_segment, order_month]<br>    measures: [repeat_revenue, order_count]<br>  }<br>  materialization: {<br>    datagroup_trigger: daily_etl<br>  }<br>}</pre><p>The exact aggregate table shape should be tuned to your own explore’s grain and query patterns — this is the general pattern, not a copy-paste fit for every model.</p><h3>7. Extended explores</h3><p>Conversational Analytics doesn’t need the full analyst-facing explore. An extends explore lets you expose a lean, high-signal subset purpose-built for conversational use, without duplicating the underlying view. Google&#39;s docs mention this as an optional step for explores with a lot of fields — worth calling out on its own since it&#39;s an easy one to skip.</p><pre>explore: clv_rfm_predict_ca {<br>  extends: [clv_rfm_predict]<br>  # CA-facing view — only fields relevant to segment &amp; CLV questions<br>  fields: [ALL_FIELDS*, -internal_customer_key, -etl_batch_id, -legacy_score_v1]<br>}</pre><p>This keeps your analyst explore untouched — full field set, full flexibility — while Conversational Analytics gets a version scoped tightly to the six or so decision areas it’s actually meant to answer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32a004f873ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/writing-agent-ready-lookml-for-looker-conversational-analytics-32a004f873ce">Writing Agent-Ready LookML for Looker Conversational Analytics</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Dashboard to Action: Predictive RFM Inside Looker]]></title>
            <link>https://medium.com/refined-and-refactored/from-dashboard-to-action-predictive-rfm-inside-looker-89501df081ad?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/89501df081ad</guid>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[looker]]></category>
            <dc:creator><![CDATA[Alice Bui]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 01:55:12 GMT</pubDate>
            <atom:updated>2026-06-04T09:51:21.049Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve all seen this lifecycle in modern analytics.</p><p>A data team builds a brilliant machine learning model. They publish a beautiful dashboard. The marketing team reviews it, says “that’s nice,” and immediately asks for a manual CSV export so they can upload it to their email tool. By the time the campaign actually launches, the data is stale, the data boundary has been broken, and the friction has delayed revenue generation.</p><p>We decided to fix this. By unifying a native BigQuery ML (BQML) predictive engine with Looker’s semantic layer and Action Hub, we built a <strong>closed-loop customer scoring system </strong>that refreshes daily and lets marketers <strong>trigger targeted campaigns with a single click.</strong></p><h3>1. The Strategy: RFM + Predictive CLV</h3><p>Traditional RFM (Recency, Frequency, Monetary) is purely historical. It tells you who was a loyal customer three months ago, but fails to forecast future risk. A standalone CLV model gives you a predicted dollar amount but misses the customer’s current behavioral state.</p><p>Combining them unlocks a <strong>2D Action Matrix</strong>. The intersection of a customer’s RFM state and their predicted 12-month value dictates the exact recommended marketing play:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4aFWn9CJqNASrJHYuLmtA.png" /><figcaption>2D Action Matrix</figcaption></figure><p>Instead of guessing, marketers see native fields like <em>Recommended Action</em> and <em>Action Priority</em> generated automatically by the matrix. A customer flagged as High CLV but At-Risk triggers an immediate <strong>Urgent Retention</strong> action — no analyst interpretation needed.</p><h3>2. The Brains: BigQuery ML Under the Hood</h3><blockquote>If you’re primarily interested in the marketing activation story, skip ahead to Section 3.</blockquote><p>The Looker deployment manages training and daily scoring natively through BigQuery ML using four key view files: clv_features_training.view.lkml, clv_models.view.lkml, clv_rfm_predict.view.lkml, and clv_eval_*.view.lkml for evaluation metrics.</p><p>Every day, three specialized BQML BOOSTED_TREE models evaluate each customer against 8 core behavioral features — including frequency, recency, days since last order, and average order value:</p><ul><li><strong>The Classifier</strong> (clv_fit_classifier): Predicts the probability a customer will purchase in the next 90 days.</li><li><strong>The Count Regressor</strong> (clv_fit_count_regressor): Forecasts total expected purchases over that window.</li><li><strong>The AOV Regressor</strong> (clv_fit_aov_regressor): Predicts expected average order value.</li></ul><p>These outputs combine into a final annualized value formula:</p><blockquote><strong><em>Predicted CLV (12m) = P(purchase) × Expected Purchases × Predicted AOV × 4.06</em></strong><em> </em>(4.06 = annualization factor for a 90-day prediction window, i.e. 365/90)</blockquote><p>To ensure stability as the customer distribution shifts over time, Looker uses APPROX_QUANTILES to dynamically recalculate CLV Tiers (High / Mid / Low) as daily percentiles — Top 20%, Next 30%, Bottom 50% — rather than fixed dollar thresholds.</p><h3>3. The Interface: Dashboards for Two Audiences</h3><p>To bridge analytics and operations, the deployment features two distinct dashboard spaces — one built for marketers, one for data teams.</p><h3>For Marketing: Business Activation</h3><p>Marketers don’t see raw SQL or model weights. They get clear behavioral buckets and immediate tactical answers. Using the RFM — Predictive CLV Segment Explore, they can answer business questions instantly:</p><ul><li><strong>Geographic Value:</strong> Where are our highest-value customers located?</li><li><strong>Acquisition Health:</strong> Which channels bring in the most valuable cohorts?</li><li><strong>Product Correlation:</strong> Which product categories scale with High CLV tiers?</li></ul><p>Rather than surfacing every available metric, the dashboard points marketers to what actually moves the needle. It’s built as a top-down funnel — three pages, three jobs: understand the full picture, drill into what matters, then act on it.</p><h4>Page 1: Segment Overview</h4><p>This is the landing page. It answers one question: <em>where do our customers stand right now?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oYXg3PZiwzOqpfsVk8qulQ.png" /><figcaption><em>Customer Segment Overview — Landing Page</em></figcaption></figure><p>The centerpiece is an RFM scatter plot — X axis is days since last order, Y axis is average order value, bubble size is customer count. Champions cluster top-left. Hibernating customers drift to the bottom-right. Any audience can read it in ten seconds.</p><p>The supporting charts answer the follow-up questions: How much revenue is concentrated in each tier? How has spending shifted over time? Which segments are growing, which are shrinking?</p><p>A KPI row at the top — total customers, total revenue, average order value, average days since last order, all with period-over-period comparison — gives the marketer a baseline before they ask their first question.</p><p>The color palette was tailored to the audience’s own brand. Each segment gets a distinct color derived from brand assets, applied consistently across every chart on every page. The dashboard feels like a single designed product, not a collection of charts.</p><h4>Page 2: Segment Deep-Dive</h4><p>Once you know which segment needs attention, the questions start stacking up. <em>Who exactly are these customers? What do they buy? Where are they? How close are they to converting again?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVrw5RraEH8chTDfOb0JzA.png" /><figcaption><em>Segment Deepdive — Granular View</em></figcaption></figure><p>This page answers all of it. RFM scores for the filtered segment sit side by side so you can see immediately whether the problem is recency, frequency, or spend. A product category breakdown shows what this segment actually buys. Gender and age distributions round out the behavioral picture, and a benchmark bar compares the segment’s purchase probability against the sitewide average — so the audience knows how urgent the situation actually is.</p><p>The page closes with a heatmap showing customer density by region. High-value customers concentrate in predictable markets; at-risk customers spread thin elsewhere. That’s what a well-built map does: it tells a story that a table never could.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q8QKt1pjcXxtKYuqy0g7rw.png" /><figcaption><em>A Heatmap Showing Customer Count &amp; Revenue</em></figcaption></figure><h4>Page 3: Action Center</h4><p>This is where the dashboard stops being a report and becomes a tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsMP20QQiqG4aZk9LfgGJg.png" /><figcaption><em>Action Center — Data-driven Recommended Actions</em></figcaption></figure><p>Four KPI tiles at the top frame the urgency: high-value “need attention” segment customer count, revenue “need attention”, average days since last order for the segment, average purchase probability. All filtered to the “need attention” segment by default. The numbers are alarming by design.</p><p>Below that, a segment action table sorted by priority — Urgent Retention at the top. Each row shows the segment, audience size, predicted CLV, purchase likelihood, and a recommended action computed by the model. Click the recommended action column, a form opens pre-filled with campaign type and segment context. Hit send. The data goes directly to the marketing automation platform.</p><p><strong>No CSV. No copy-paste. No analyst in the loop. The workflow takes under 30 seconds.</strong></p><p>A revenue trend line and traffic source chart round out the page — giving the marketer enough context to understand <em>why</em> a segment is declining before they send the campaign.</p><p><strong>Design decisions that mattered:</strong> Visual consistency was non-negotiable. Every chart shares the same background, grid style, typography, and tooltip treatment. Filters were wired with intent — not every tile should respond to every filter. The dashboard was built entirely on a single explore: one query surface, three pages, consistent filter behavior throughout.</p><h3>For Data Teams: Model Trust and Evaluation</h3><p>A predictive model is only useful if it’s trusted. The evaluation dashboard exposes model health parameters, class weights, and calibration data directly to analysts — giving full visibility into when models automatically retrain each quarter and flagging drift before it affects campaign quality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QposZrJqiVMtfFdbzLmBDg.png" /><figcaption>Dashboard for Model Evaluation</figcaption></figure><h3>4. The Closer: One-Click Execution via Looker Actions</h3><p>This is where the closed loop completes. A marketer targeted a customer segment that need ‘Protect &amp; Delight’ on the dashboard and see the following actions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ijYh97WWzG805dHXqOZiCA.png" /></figure><p>Instead of copying rows or pulling a CSV, the marketer clicks the native Looker Action dropdown and sends the segment directly to an automated email flow in SendGrid, Klaviyo or Resend, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGDGBZR-JewGQi7Y9FJ-Sw.png" /></figure><p>The customer receives a personalized coupon within seconds. The data never leaves the secure boundary of the data warehouse. And marketers can track the request status, whether the email is successfully sent to the customer or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2l2UTA_On7EWfLI8Y6Zc8w.png" /></figure><h3>Analytics Made Operational</h3><p>By moving the predictive logic into BigQuery with BQML and serving it through Looker’s semantic layer, we’ve transformed the traditional dashboard from a passive chart into an active operational engine.</p><ul><li>Marketing teams move faster with pre-built action recommendations.</li><li>Data scientists retain full model governance through the evaluation dashboard.</li><li>The business actively prevents churn before it happens — no CSV required.</li></ul><blockquote><strong><em>Want to see it for yourself? Walk through the dashboards and see the actions fire in real time. Get in touch, and we’ll set up a session: </em></strong><a href="https://joonsolutions.com/">https://joonsolutions.com/</a></blockquote><p><em>This blog is co-written by </em><strong><em>Alice</em></strong><em>, </em><strong><em>Ted</em></strong><em>, and </em><strong><em>Duc</em></strong><em> — Analytics Engineers at </em><a href="https://joonsolutions.com/"><em>Joon Solutions</em></a><em>. We specialize in building end-to-end data and analytics solutions that turn raw data into operational tools.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89501df081ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/from-dashboard-to-action-predictive-rfm-inside-looker-89501df081ad">From Dashboard to Action: Predictive RFM Inside Looker</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Salesforce Dashboard to SQL: A Practical Reverse-Engineering Guide with the Help of Gemini]]></title>
            <link>https://medium.com/refined-and-refactored/from-salesforce-dashboard-to-sql-a-practical-reverse-engineering-guide-with-the-help-of-gemini-fb6cebf2e132?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/fb6cebf2e132</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <dc:creator><![CDATA[Duong VU Ta]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 09:21:35 GMT</pubDate>
            <atom:updated>2026-02-11T09:21:34.401Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>From Salesforce Dashboard to SQL: A Practical Reverse-Engineering Guide with the help of Gemini</strong></h3><p><strong>How to map frontend metrics to backend tables when there’s no documentation</strong></p><h3>Salesforce Dashboard to SQL</h3><p>Recently, I was given a task:</p><blockquote><strong>“Study the client’s Salesforce dashboard beforehand so we can speed up data mapping with the client during the migration.”</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pCWRjFFLSSvZPourwS-wTA.png" /></figure><p>Sounds simple, right? Identify the source logic, match it to the warehouse fields, and the mapping is complete.</p><h4>Except this dashboard was built entirely in Salesforce using drag-and-drop:</h4><ul><li>No SQL scripts</li><li>No backend queries</li><li>No documentation</li><li>Only friendly labels and aliases</li></ul><p>So you’re stuck in email threads asking:</p><p><em>“Hey… where does this metric come from?”</em></p><p>Back and forth. For days. There has to be a better way. Right? RIGHT!</p><h3>The solution: Inspect Element is your best friend 🦸</h3><p>Even though Salesforce hides the logic, the browser doesn’t.</p><p>Every dashboard component ultimately pulls data through:</p><ul><li>Network API calls</li><li>JSON payloads</li><li>Report metadata</li></ul><p>If you can read that, you can uncover:</p><ul><li>Real object names</li><li>Field API names</li><li>Calculated column logic</li><li>Filters and aggregations</li><li>The exact report powering the chart</li></ul><p>No SQL required.</p><h3>Step 1 — Open the underlying report</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vzMwTu4xoy2JJa4XWuGxEg.png" /></figure><p>From any Salesforce dashboard:</p><ol><li>Find the chart or table you care about</li><li>Click <strong>“View Report”</strong></li></ol><p>This opens the actual report behind the visualization — the true source of the metric.</p><h3>Step 2 — Inspect the network traffic</h3><h4>2.1 Open DevTools</h4><ul><li>Right-click → <strong>Inspect</strong></li><li>Or use:</li><li><strong>Ctrl + Shift + C</strong> (Windows) or <strong>Cmd + Option + C</strong> (Mac)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PMg592O5ZdQ8AWb6o0zjJQ.png" /></figure><h4>2.2 Go to the Network tab</h4><p>This is where Salesforce loads the report data as JSON.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8uy6k9TIH2FOqBLm8l_dPw.png" /></figure><p>You’ll usually see two situations:</p><ul><li>✅ Too many requests</li><li>❌ No requests yet</li></ul><p>If it’s messy → hit <strong>Clear</strong> 🧹</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXq9_2SQ5ZMph4ViiqzUsg.png" /></figure><p>Then interact with the report (sort a column, change a filter) to trigger a fresh API call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvvmM4LiagTG4cGKhyxnDA.png" /></figure><h4>2.3 Find the correct payload</h4><p>Open the latest network request → <strong>Preview</strong> tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_eMD2Sk2XeLO372RC7WsJA.png" /></figure><p>Search inside the JSON using <strong>Ctrl + F </strong>(Windows/Linux) or <strong>Cmd + F</strong> (Mac):</p><ul><li>reportMetadata</li><li>reportExtendedMetadata</li></ul><p>These contain everything:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*2o8IHQmfMAXAi1ZDbOTcgQ.png" /></figure><p>Now you finally see the <strong>real API field names</strong> behind those friendly dashboard labels.</p><h4>Grouped columns</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsuCbcQmq_Vue1-HGf6JKQ.png" /><figcaption>The column colored in gray is the grouped column, these column can be located in the <strong>groupingColumnInfo</strong></figcaption></figure><h4>Normal columns</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08zwLoCzPFhgO6ixz_znww.png" /><figcaption>The column colored in white is the normal column, these column can be located in the <strong>detailColumn</strong> or <strong>detailColumnInfo</strong> looking in the later will give you the exact matching when looking at the label.</figcaption></figure><h4>Custom formula field</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xMKQ4Y2l9JeIjU0wOJrK5A.png" /><figcaption>Custom column has a Fx symbol next to them, the formula for this can be located in the <strong>customDetailFormula</strong> and check the label for the correct name on the report.</figcaption></figure><h4>Filters</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yokSYJkPP_Kasrcxv4k6Xg.png" /><figcaption>Filter can be located in the reportFilters and the standardDateFilter</figcaption></figure><h3>Step 3 — Translate to SQL</h3><h4>Example 1 — Simple field</h4><p><strong>Salesforce field:</strong></p><pre># Example table and column<br>Table__t.Col_name__c </pre><p><strong>SQL:</strong></p><pre>select tt.col_name_c<br>from `{schema}.{dataset}.table_t` tt</pre><h4>Example 2 — Lookup / Join</h4><p><strong>Salesforce:</strong></p><pre># Example table and column<br>Table__t.New_Table__t.Col_name__c</pre><p>This means:</p><ul><li>Main table → Table__t</li><li>Foreign key → New_Table__t</li><li>Target column → Col_name__c</li></ul><h4>How to identify the correct join target</h4><p>Salesforce doesn’t explicitly show the join table name in the UI, but there are <strong>two reliable tricks</strong>:</p><p><strong>1. Check the JSON metadata</strong></p><p>Inside the network response, look for: lookupEntityName</p><p><strong>2. Read the ID prefix</strong></p><p>Every Salesforce ID starts with a 3-character object prefix:</p><ul><li>Example: <strong>003XXXXXXXXXXXX</strong></li><li>Prefix <strong>003 = Contact</strong></li></ul><p>(<a href="https://help.salesforce.com/s/articleView?id=000385203&amp;type=1">Use any Salesforce prefix decoder for full mapping</a>)</p><p>If it is not in the list, most likely it is a custom object.</p><h4>Two types of joins you’ll encounter</h4><ol><li><strong>Join to another Salesforce object</strong></li></ol><p>Most lookups reference a standard Salesforce table such as Contact, Account, User, etc. (<strong><em>You’ll recognize these by their Salesforce ID prefixes</em></strong>)</p><pre>select<br>  tt.new_table_t as fk_id,<br>  c.col_name_c,<br>from `{schema}.{dataset}.table_t` tt<br>left join `{schema}.{dataset}.contact` c<br>  on tt.new_table_t = c.id</pre><p><strong>2) Join to a custom table</strong></p><p>Sometimes the lookup points to another custom Salesforce object that has also been ingested into your data warehouse.</p><pre>select<br>  tt.new_table_t as fk_id,<br>  ntt.col_name_c<br>from `{schema}.{dataset}.table_t` tt<br>left join `{schema}.{dataset}.new_table_t` ntt<br> on tt.new_table_t = ntt.id</pre><h4>Example 3 — Multi-level joins</h4><pre># Example table and column<br>Table__t.New_Table__t.Newer_Table__t.Col_name</pre><p>Becomes:</p><pre>select<br>    t.col_name_c<br>from `{schema}.{dataset}.table_t` tt<br>-- Custom object example<br>left join `{schema}.{dataset}.new_table_t` ntt<br>    on tt.new_table_t = ntt.id<br>-- Salesforce object example<br>left join `{schema}.{dataset}.team` t<br>    on ntt.newer_table_t = t.id</pre><h4>Important: exclude deleted records</h4><p>Salesforce reports seem to automatically ignore deleted rows.</p><p>Your SQL should do the same:</p><pre>where is_deleted = false</pre><p>Otherwise counts will not match the dashboard.</p><h3>Speed this up with AI 🤖</h3><p>A practical workflow:</p><ol><li>Copy all within:</li></ol><ul><li>reportMetadata</li><li>reportExtendedMetadata</li></ul><p>2. Paste into Gemini with:</p><blockquote><em>“Convert this Salesforce report JSON into BigQuery SQL with joins and filters.”</em></blockquote><p>3. Validate the result against Salesforce totals.</p><p>AI won’t replace understanding — but it saves hours of manual mapping.</p><h3>Final thoughts</h3><p>With this approach, you can reverse-engineer almost any Salesforce dashboard:</p><ul><li>Even with little to no documentation</li><li>Even years after it was built</li><li>Without admin access</li></ul><p>The same technique can work for other web-based dashboards — if you can read the network payload, you can uncover the truth behind the chart.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb6cebf2e132" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/from-salesforce-dashboard-to-sql-a-practical-reverse-engineering-guide-with-the-help-of-gemini-fb6cebf2e132">From Salesforce Dashboard to SQL: A Practical Reverse-Engineering Guide with the Help of Gemini</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting VS Code to Google Cloud Shell with the remote SSH extension]]></title>
            <link>https://medium.com/refined-and-refactored/connecting-vs-code-to-google-cloud-shell-with-the-remote-ssh-extension-ca08258e6425?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/ca08258e6425</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[cloud-shell]]></category>
            <category><![CDATA[vs-code-setup]]></category>
            <dc:creator><![CDATA[Tuấn Kiệt Lưu]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 13:54:57 GMT</pubDate>
            <atom:updated>2026-02-09T13:54:57.494Z</atom:updated>
            <content:encoded><![CDATA[<p>As a someone who spends countless hours in code editors, VS Code is my go-to environment. I’ve been exploring ways to combine VS Code’s powerful features to interact with Google’s cloud shell’s editor to stream line the native desktop app experience. This blog, inspired by <a href="https://medium.com/@alex.burdenko/vs-code-happens-to-be-my-favorite-code-editor-and-ive-been-lucky-to-participate-so-many-diverse-952102856a7a">Alex Burdenko’s excellent article</a>, will guide you through setting up a development environment that leverages the free Cloud Shell VM from Google while using VS Code as your primary interface.</p><h3>Why Connect VS Code to Cloud Shell?</h3><p>Google Cloud Platform offers a free Cloud Shell VM that provides a powerful bash environment with 5GB of persistent storage. While Google offers a web-based editor, many developers (myself included) prefer using a dedicated application rather than a browser-based solution.</p><h3>What We’ll Accomplish</h3><p>This guide will help you:</p><ol><li>Edit code in VS Code that physically resides on your Cloud Shell VM</li><li>Access a Cloud Shell terminal directly within VS Code</li></ol><h3>Understanding Cloud Shell Limitations</h3><p>Before we begin, it’s important to note a few constraints:</p><ul><li>The VM automatically shuts down after periods of inactivity</li><li>The hostname changes each time you reconnect</li><li>Storage is limited to 5GB</li></ul><h3>Prerequisites</h3><p>You’ll need to install the following tools on your local machine:</p><p><strong>Important note for Windows/WSL users:</strong> Install gcloud within WSL by opening your WSL terminal, NOT PowerShell or CMD for ease of troubleshooting because we do most of our development work / gcloud commands in a linux environment.</p><ul><li><a href="https://cloud.google.com/sdk/docs/install">gcloud CLI</a></li><li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh">VS Code Remote-SSH extension</a></li></ul><h3>Step 1: Authentication</h3><p>Your gcloud needs to be authenticated to your account before triggering and commands first, authenticate your gcloud account:</p><p>gcloud auth login</p><h3>Step 2: Generate SSH Key Pair</h3><p>Generate an SSH key pair and register it with your Cloud Shell VM:</p><p>gcloud cloud-shell ssh --authorize-session</p><p>You’ll be prompted to create a passphrase. After completing this step, Google will create your Cloud Shell VM (if it doesn’t already exist) and register your SSH public key with the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*78kIksJU4OykWlr3i6Ongg.png" /></figure><h3>Step 3: Connect VS Code to Cloud Shell VM</h3><p>Now we need to configure VS Code to connect to your Cloud Shell VM. The process differs slightly depending on whether you’re using macOS or Windows with WSL.</p><h3>For macOS Users</h3><p>First, run this command to get your VM’s hostname:</p><p>gcloud cloud-shell ssh --authorize-session --dry-run</p><p>Note the hostname that’s under the line your_username@&lt;hostname&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lsu7FkwfIYmjeVehmMDtmg.png" /></figure><h3>For Windows/WSL Users</h3><p>When using Windows with WSL, there’s an important gap to address:</p><ol><li>Run this command to get your VM’s hostname and authorize the session:</li></ol><p>gcloud cloud-shell ssh --authorize-session --dry-run</p><ol><li>Similar to the above, note the hostname that’s under the line your_username@&lt;hostname&gt; .</li><li><strong>Important</strong>: When you run the above command, the SSH keypair is stored in <strong>WSL’s filesystem</strong> at /home/&lt;username&gt;/.ssh/, but VS Code&#39;s Remote-SSH extension uses Windows&#39; SSH configuration at C:\Users\&lt;username&gt;\.ssh\.</li><li>To bridge this gap, manually copy the generated key by either using windows file explorer or this command in wsl terminal :</li></ol><p>cp /home/&lt;username&gt;/.ssh/google_compute_engine /mnt/c/Users/&lt;username&gt;/.ssh/</p><p>replace &lt;username&gt; with your username on the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrVJYRkd17754AUSmzdpZQ.png" /></figure><h3>Step 4: Configure VS Code Remote-SSH</h3><p>Now that you have your Cloud Shell VM’s hostname and the SSH keys are properly set up:</p><ol><li>In VS Code, press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) to open the Command Palette</li><li>Type and select “Remote-SSH: Open Configuration File…”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*SY1HuSEhfKkX1p6CwjEspQ.png" /></figure><p>3. Add a host entry to the config file:</p><p>For macOS:</p><pre>Host cloud-shell<br>    HostName &lt;your-devshell-hostname&gt;<br>    User &lt;your-username&gt;<br>    IdentityFile ~/.ssh/google_compute_engine</pre><p>For Windows/WSL:</p><pre>Host cloud-shell<br>    HostName &lt;your-devshell-hostname&gt;<br>    User &lt;your-username&gt;<br>    IdentityFile C:\Users\&lt;username&gt;\.ssh\google_compute_engine</pre><h3>Step 5: Connect to Your Cloud Shell</h3><ol><li>In VS Code, press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) again</li><li>Type and select “Remote-SSH: Connect to Host…”</li><li>Select your “cloud-shell” host from the list</li></ol><p>VS Code will connect to your Cloud Shell VM and set up the necessary server components. Once connected, you can:</p><ul><li>Browse and edit files on your Cloud Shell VM</li><li>Open a terminal in VS Code that runs directly on the Cloud Shell VM</li><li>Install VS Code extensions that run on the remote machine</li></ul><h3>Conclusion</h3><p>You now have a powerful development environment that combines the convenience of VS Code with the scalability of Google Cloud Platform. This setup is particularly useful for Python development, data engineering tasks, and any projects that benefit from GCP’s ecosystem.</p><p>The best part? It’s completely free, making it an excellent option for learning, experimentation, and even production work within the provided resource limits.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca08258e6425" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/connecting-vs-code-to-google-cloud-shell-with-the-remote-ssh-extension-ca08258e6425">Connecting VS Code to Google Cloud Shell with the remote SSH extension</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Google Cloud Data Agents: One Resource to Rule Them All]]></title>
            <link>https://medium.com/refined-and-refactored/demystifying-google-cloud-data-agents-one-resource-to-rule-them-all-b01bac410f76?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/b01bac410f76</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[looker]]></category>
            <dc:creator><![CDATA[Tuấn Kiệt Lưu]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 13:54:09 GMT</pubDate>
            <atom:updated>2026-02-09T13:54:07.674Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A deep dive into Looker Agents, BigQuery Data Agents, and the Conversational Analytics API</em></p><h3>Intro</h3><p>If you’ve been following Google Cloud’s BI and analytics space lately, you’ve probably heard a flurry of terms thrown around: <strong>Looker Agents</strong>, <strong>BigQuery Data Agents</strong>, <strong>Conversational Analytics</strong>, <strong>Gemini in Looker</strong>… It’s enough to make anyone’s head spin 🌀</p><p>We recently took Google’s <a href="https://github.com/looker-open-source/ca-api-quickstarts">ca-api-quickstarts</a> repo for a spin — a Streamlit demo showcasing “conversational analytics” capabilities. What we discovered along the way was genuinely surprising: <strong>all of these “different” agent products are actually the same thing under the hood.</strong></p><p>That’s right. One API. One resource type. Multiple masks.</p><p>In this blog, we’ll walk you through our discovery journey and give you the practical guide we wish we had when we started. Whether you’re a consultant demoing this to clients, a developer building embedded analytics, or just someone trying to make sense of Google’s agent ecosystem — this one’s for you.</p><p><strong>A few disclaimers before we dive in:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1NNfnUa7LacebZkJGhGyWQ.png" /></figure><blockquote><em>⚠️ Some features are still in Preview, so things may evolve. We’ll do our best to keep this updated!</em></blockquote><h3>The “Aha!” Moment: One Resource, Many Masks</h3><p>Let’s cut to the chase with the biggest insight from our exploration:</p><blockquote><strong><em>“Looker Agent” and “BigQuery Data Agent” are marketing/UI terms for the same underlying technology.</em></strong></blockquote><p>The Conversational Analytics API creates DataAgent resources that can point to Looker Explores OR BigQuery tables. The BigQuery Console and Looker UI are just <em>different entry points</em> to the same API.</p><h3>The Unified Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dT7UiIYYGwX81coMGm2BkA.png" /></figure><p><strong>The only difference between a “Looker Agent” and a “BQ Data Agent” is the </strong><strong>data_source configuration field.</strong></p><p>Here’s what this looks like in code. Note how both use the exact same DataAgent class — only the datasource_references differ:</p><p><strong>Creating a Looker Agent:</strong></p><pre># Source: app_pages/agents.py<br># https://github.com/looker-open-source/ca-api-quickstarts/blob/main/app_pages/agents.py#L115<br>looker_explore_reference = geminidataanalytics.LookerExploreReference()<br>looker_explore_reference.looker_instance_uri = looker_instance_url<br>looker_explore_reference.lookml_model = looker_model<br>looker_explore_reference.explore = looker_explore<br>datasource_references.looker.explore_references = [looker_explore_reference]</pre><p><strong>Creating a BigQuery Agent:</strong></p><pre># Source: app_pages/agents.py<br># https://github.com/looker-open-source/ca-api-quickstarts/blob/main/app_pages/agents.py#L108<br>bigquery_table_reference = geminidataanalytics.BigQueryTableReference()<br>bigquery_table_reference.project_id = bq_project_id<br>bigquery_table_reference.dataset_id = bq_dataset_id<br>bigquery_table_reference.table_id = bq_table_id<br>datasource_references.bq.table_references = [bigquery_table_reference]</pre><blockquote><em>📚 </em><strong><em>Reference:</em></strong><em> </em><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/overview"><em>Conversational Analytics API Overview</em></a></blockquote><h3>The Visibility Paradox (Why You Can’t Find Your Agent)</h3><p>Here’s something that confused us for a while: We created an agent via the Python SDK, but it didn’t show up in the Looker UI. Ghost agent? Bug? Nope.</p><h3>The Three Entry Points</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZuLkmppiqK8tzLOWqI5cA.png" /></figure><h3>Visibility Matrix</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V942apOzXBOpcZBHX16yYQ.png" /></figure><p><strong>Key Insight:</strong> The UIs are <em>filtered views</em>. They only show agents created through their specific flows. The raw API (projects/*/locations/global/dataAgents) sees everything.</p><p>🔴 <strong>Gotcha for Developers:</strong> If you create an agent via SDK (like the demo app does), it’s a “headless” agent — fully functional but invisible in standard UIs. This is by design, not a bug.</p><blockquote><em>📚 </em><strong><em>Reference:</em></strong><em> </em><a href="https://cloud.google.com/bigquery/docs/create-data-agents"><em>Create Data Agents (BigQuery)</em></a><em> | </em><a href="https://cloud.google.com/looker/docs/conversational-analytics-looker-data-agents"><em>Looker Data Agents</em></a></blockquote><p>Here’s what the view would look like if we created it using Looker UI. <strong>The source is a Lookml explore :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*muny2QUIyi9v2zrVZmml4A.png" /></figure><p>… compared to agent created in Bigquery agents console. Notice the knowledge source is a <strong>native Bigquery dataset.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*in0OSnQV-7UeX88D1DWFXw.png" /></figure><p>… and finally, an agent created via the python sdk. You can still see this agent in Bigquery console, but <strong>there is no additional metadata you can inspect</strong> because it is not created using the native BQ UI.</p><p>To get the full metadata you must programmatically fetch the info using the sdk from the root endpoint itself i.e. <em>projects/my-project/locations/global/dataAgents/my-agent</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*33D0Z4NypDl7f9CxQP3HRA.png" /></figure><h3>When to Use What: The Decision Matrix</h3><p>Let’s make this practical. Here’s how to choose your approach:</p><h3>Looker Data Agent vs. BigQuery Data Agent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O1w3OUFXL1GSb-10rgFoKA.png" /></figure><p><strong>Our Recommendation:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4g4Iylr2-sHtrKaIMEfffQ.png" /></figure><h3>Entry Point Selection Guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRlvICitCREZMi_T1J6v-Q.png" /></figure><h3>The Technical Deep Dive: How Chat Actually Works</h3><p>For the developers in the room, here’s what happens under the hood when you send a message:</p><h3>The Chat Execution Flow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kV1J_lsFTERyf6yO_tSvSQ.png" /></figure><h3>The Critical Code Path</h3><p>Here’s the exact code from the demo app showing how a chat request is constructed:</p><pre># Source: app_pages/chat.py (Lines 119-131)<br># https://github.com/looker-open-source/ca-api-quickstarts/blob/main/app_pages/chat.py#L119<br><br>user_msg = geminidataanalytics.Message(user_message={&quot;text&quot;: user_input})<br>convo_ref = geminidataanalytics.ConversationReference()<br>convo_ref.conversation = state.current_convo.name<br>convo_ref.data_agent_context.data_agent = state.current_agent.name<br># For Looker agents, OAuth credentials must be passed<br>if is_looker_agent(state.current_agent):<br>    credentials = geminidataanalytics.Credentials()<br>    credentials.oauth.secret.client_id = st.secrets.looker.client_id<br>    credentials.oauth.secret.client_secret = st.secrets.looker.client_secret<br>    convo_ref.data_agent_context.credentials = credentials<br>req = geminidataanalytics.ChatRequest(<br>    parent=f&quot;projects/{st.secrets.cloud.project_id}/locations/global&quot;,<br>    messages=[user_msg],<br>    conversation_reference=convo_ref,<br>)<br># The streaming response<br>for message in state.chat_client.chat(request=req):<br>    show_message(message)</pre><h3>Critical Implementation Details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bliqtbc2Y_scKPyQ5G1tTQ.png" /></figure><h3>The API Clients</h3><p>The library version used in this demo is google-cloud-geminidataanalytics==0.2.0 (from <a href="https://github.com/looker-open-source/ca-api-quickstarts/blob/main/requirements.txt#L23">requirements.txt L23</a>).</p><pre># Source: state.py<br># https://github.com/looker-open-source/ca-api-quickstarts/blob/main/state.py#L13-L14<br>state.agent_client = geminidataanalytics.DataAgentServiceClient()  # Manages agents<br>state.chat_client = geminidataanalytics.DataChatServiceClient()    # Handles conversations</pre><blockquote><em>📚 </em><strong><em>Reference:</em></strong><em> </em><a href="https://pypi.org/project/google-cloud-geminidataanalytics/"><em>google-cloud-geminidataanalytics on PyPI</em></a></blockquote><h3>🔬 End-to-End Example: Following a Message Through the System</h3><p>Let’s trace exactly what happens when a user types <strong>“What were our top 5 products by revenue last month?”</strong> — from keystroke to answer. This section clarifies the “connection” concept that confuses many developers.</p><h3>Step 1: User Input → Your Application</h3><p>The user types their question in the Streamlit chat input:</p><pre># app_pages/chat.py L111<br>user_input = st.chat_input(&quot;What would you like to know?&quot;)<br># user_input = &quot;What were our top 5 products by revenue last month?&quot;</pre><h3>Step 2: Construct the ChatRequest</h3><p>Your app wraps the message in a ChatRequest object. This is where you specify <strong>which agent</strong> to use and <strong>what credentials</strong> to pass:</p><pre># app_pages/chat.py L119-131<br># https://github.com/looker-open-source/ca-api-quickstarts/blob/main/app_pages/chat.py#L119<br># Wrap the user message<br>user_msg = geminidataanalytics.Message(user_message={&quot;text&quot;: user_input})<br># Create a reference to the conversation and agent<br>convo_ref = geminidataanalytics.ConversationReference()<br>convo_ref.conversation = state.current_convo.name  # e.g., &quot;projects/my-project/locations/global/conversations/abc123&quot;<br>convo_ref.data_agent_context.data_agent = state.current_agent.name  # e.g., &quot;projects/my-project/locations/global/dataAgents/my-sales-agent&quot;<br># Build the request<br>req = geminidataanalytics.ChatRequest(<br>    parent=f&quot;projects/{st.secrets.cloud.project_id}/locations/global&quot;,<br>    messages=[user_msg],<br>    conversation_reference=convo_ref,<br>)</pre><h3>Step 3: The “Connection” Clarification 🔑</h3><p>This is where confusion often happens. There are <strong>two different types of connections</strong> at play:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8jH479MJlGzVOS8NiaO6BQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VEi0_yWdx97ZgS4eggqwqg.png" /></figure><p><strong>The key insight:</strong> For <strong>Looker agents</strong>, you must pass Looker OAuth credentials in <strong>every chat request</strong>. The API doesn’t store them — it uses them on-the-fly:</p><pre># app_pages/chat.py L123-126<br># https://github.com/looker-open-source/ca-api-quickstarts/blob/main/app_pages/chat.py#L123<br>if is_looker_agent(state.current_agent):<br>    credentials = geminidataanalytics.Credentials()<br>    credentials.oauth.secret.client_id = st.secrets.looker.client_id<br>    credentials.oauth.secret.client_secret = st.secrets.looker.client_secret<br>    convo_ref.data_agent_context.credentials = credentials</pre><p>For <strong>BigQuery agents</strong>, no additional credentials are needed — the GCP service agent handles authorization automatically.</p><blockquote><em>📚 </em><strong><em>Reference:</em></strong><em> </em><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/authentication"><em>Authenticate and connect to a data source</em></a></blockquote><h3>Step 4: API Receives Request → Loads Agent Config</h3><p>The Conversational Analytics API receives your ChatRequest and:</p><ol><li>Looks up the DataAgent resource by its ID</li><li>Reads its configuration (data source, system instructions, golden queries)</li><li>Determines whether it’s a Looker or BigQuery agent</li></ol><h3>Step 5: Schema Fetch (The “Intelligence Gathering” Phase)</h3><p><strong>For Looker Agents:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0xjA-9CjC4tbY99sG4jGMg.png" /></figure><p><strong>For BigQuery Agents:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N1s1k6umcz6IyCkdo6ta7Q.png" /></figure><p><strong>Why this matters:</strong> Looker agents inherit the <strong>full semantic layer</strong> — business names, pre-defined measures, row-level security. BigQuery agents only see raw table/column metadata, so you must provide more context.</p><h3>Step 6: Query Generation (Gemini Does Its Thing)</h3><p>The API passes the user question + schema + context to Gemini, which generates a query:</p><p><strong>Looker Agent Output:</strong></p><pre>{<br>  &quot;model&quot;: &quot;thelook_extended&quot;,<br>  &quot;explore&quot;: &quot;order_items&quot;,<br>  &quot;fields&quot;: [<br>    &quot;products.name&quot;,<br>    &quot;order_items.total_revenue&quot;<br>  ],<br>  &quot;filters&quot;: {<br>    &quot;order_items.created_date&quot;: &quot;last month&quot;<br>  },<br>  &quot;sorts&quot;: [&quot;order_items.total_revenue desc&quot;],<br>  &quot;limit&quot;: 5<br>}</pre><p><strong>BigQuery Agent Output:</strong></p><pre>SELECT <br>  p.name AS product_name,<br>  SUM(oi.sale_price) AS total_revenue<br>FROM `project.dataset.order_items` oi<br>JOIN `project.dataset.products` p ON oi.product_id = p.id<br>WHERE oi.created_at &gt;= DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH)<br>GROUP BY 1<br>ORDER BY 2 DESC<br>LIMIT 5</pre><h3>Step 7: Query Execution</h3><p><strong>Looker Agent Path:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-11_jfhkNcw4fA7SYTc7iA.png" /></figure><p><strong>BigQuery Agent Path:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*xE7sErjaTSC4p7j_zPsr8w.png" /></figure><p><strong>Key Difference:</strong> Looker applies business logic, formatting, and security at query time. BigQuery returns raw data — your app must handle formatting.</p><h3>Step 8: Response Construction</h3><p>The API packages the results into a ChatResponse with multiple components:</p><pre># What you receive in the streaming response<br>for message in state.chat_client.chat(request=req):<br>    # message.system_message contains:<br>    # - .text: &quot;Here are the top 5 products by revenue last month...&quot;<br>    # - .looker_response (for Looker agents):<br>    #     - .query_response.data: The actual data rows<br>    #     - .query_response.sql: The generated SQL<br>    #     - .visualization_url: Link to view in Looker<br>    # - .data (for BQ agents):<br>    #     - The result table<br>    # - .chart: Vega-Lite chart specification<br>    show_message(message)</pre><h3>Step 9: Render in Your App</h3><p>The demo app uses utils/chat.py to render the response:</p><pre># utils/chat.py - Simplified rendering logic<br>def show_message(message):<br>    if message.system_message.text:<br>        st.markdown(message.system_message.text)<br>    <br>    if message.system_message.looker_response:<br>        # Render Looker-specific response<br>        data = message.system_message.looker_response.query_response.data<br>        st.dataframe(data)<br>    <br>    if message.system_message.chart:<br>        # Render Vega-Lite chart<br>        chart_spec = message.system_message.chart<br>        st.vega_lite_chart(data, chart_spec)</pre><h3>The Complete Flow Diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4GiXiMjmtsfP5AttzDnyOg.png" /></figure><h3>🛠️ Building Data Agents: Complete Configuration Examples</h3><p>This section provides <strong>copy-paste-ready</strong> examples for building both Looker and BigQuery agents. Critical knowledge for developers!</p><h3>The DataAgent Resource Structure</h3><p>Every Data Agent has the same basic structure, regardless of variant:</p><pre># The universal DataAgent structure<br>DataAgent(<br>    name=&quot;projects/{project}/locations/global/dataAgents/{agent_id}&quot;,<br>    display_name=&quot;Human-readable name&quot;,<br>    description=&quot;What this agent does&quot;,<br>    data_analytics_agent=DataAnalyticsAgent(<br>        published_context=Context(<br>            datasource_references=DatasourceReferences(...),  # ← This differs by variant<br>            system_instruction=&quot;...&quot;,                          # ← Persona &amp; rules<br>            looker_golden_queries=[...],                       # ← For Looker agents<br>            example_queries=[...],                             # ← For BQ agents<br>        )<br>    )<br>)</pre><h3>Variant A: Complete Looker Agent Configuration</h3><pre># Full Looker Agent Example<br># Source: Based on app_pages/agents.py + Official Docs<br># https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-looker<br>import google.cloud.geminidataanalytics as geminidataanalytics<br># 1. Define the Looker data source<br>looker_explore = geminidataanalytics.LookerExploreReference()<br>looker_explore.looker_instance_uri = &quot;https://mycompany.cloud.looker.com&quot;<br>looker_explore.lookml_model = &quot;thelook_extended&quot;<br>looker_explore.explore = &quot;order_items&quot;<br>datasource_refs = geminidataanalytics.DatasourceReferences()<br>datasource_refs.looker.explore_references = [looker_explore]<br># 2. Define Golden Queries (the accuracy secret sauce!)<br>golden_queries = [<br>    geminidataanalytics.LookerGoldenQuery(<br>        natural_language_questions=[<br>            &quot;What were our top 5 products by revenue last month?&quot;,<br>            &quot;Show me the best selling products from last month&quot;<br>        ],<br>        looker_query=geminidataanalytics.LookerQuery(<br>            model=&quot;thelook_extended&quot;,<br>            explore=&quot;order_items&quot;,<br>            fields=[&quot;products.name&quot;, &quot;order_items.total_sale_price&quot;],<br>            filters=[<br>                geminidataanalytics.LookerQuery.Filter(<br>                    field=&quot;order_items.created_date&quot;, <br>                    value=&quot;last month&quot;<br>                )<br>            ],<br>            sorts=[&quot;order_items.total_sale_price desc&quot;],<br>            limit=&quot;5&quot;,<br>        ),<br>    ),<br>    geminidataanalytics.LookerGoldenQuery(<br>        natural_language_questions=[<br>            &quot;What is our revenue by category?&quot;,<br>            &quot;Break down sales by product category&quot;<br>        ],<br>        looker_query=geminidataanalytics.LookerQuery(<br>            model=&quot;thelook_extended&quot;,<br>            explore=&quot;order_items&quot;,<br>            fields=[&quot;products.category&quot;, &quot;order_items.total_sale_price&quot;],<br>            sorts=[&quot;order_items.total_sale_price desc&quot;],<br>        ),<br>    ),<br>]<br># 3. Define System Instructions (YAML format)<br>system_instruction = &quot;&quot;&quot;<br>- system_instruction: &gt;-<br>    You are an expert sales analyst for our e-commerce store. Your primary function <br>    is to answer questions by querying the &#39;Order Items&#39; Explore. Always be concise <br>    and data-driven. When asked about &#39;revenue&#39; or &#39;sales&#39;, use &#39;order_items.total_sale_price&#39;.<br>- glossaries:<br>  - glossary:<br>    - term: Revenue<br>    - description: Total monetary value from items sold. Maps to &#39;order_items.total_sale_price&#39;.<br>    - synonyms:<br>      - sales<br>      - total sales<br>      - income<br>  - glossary:<br>    - term: Loyal Customer<br>    - description: A customer who has made more than one purchase.<br>    - synonyms:<br>      - repeat customer<br>      - returning customer<br>- additional_descriptions:<br>  - text: The default time period for analysis is &#39;this year&#39; unless specified otherwise.<br>  - text: Always include the date range in your response.<br>&quot;&quot;&quot;<br># 4. Assemble the complete agent<br>agent = geminidataanalytics.DataAgent()<br>agent.display_name = &quot;E-Commerce Sales Analyst&quot;<br>agent.description = &quot;Answers questions about sales, orders, and customer data&quot;<br>published_context = geminidataanalytics.Context()<br>published_context.datasource_references = datasource_refs<br>published_context.system_instruction = system_instruction<br>published_context.looker_golden_queries = golden_queries<br>agent.data_analytics_agent.published_context = published_context<br># 5. Create the agent<br>client = geminidataanalytics.DataAgentServiceClient()<br>request = geminidataanalytics.CreateDataAgentRequest(<br>    parent=&quot;projects/my-project/locations/global&quot;,<br>    data_agent=agent,<br>)<br>created_agent = client.create_data_agent(request=request)<br>print(f&quot;Created agent: {created_agent.name}&quot;)</pre><blockquote><em>📚 </em><strong><em>Reference:</em></strong><em> </em><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-looker"><em>Define data agent context for Looker data sources</em></a></blockquote><h3>Variant B: Complete BigQuery Agent Configuration</h3><pre># Full BigQuery Agent Example<br># Source: Based on Official Docs<br># https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-bq<br><br>import google.cloud.geminidataanalytics as geminidataanalytics<br># 1. Define BigQuery table references with schema context<br>orders_table = geminidataanalytics.BigQueryTableReference()<br>orders_table.project_id = &quot;bigquery-public-data&quot;<br>orders_table.dataset_id = &quot;thelook_ecommerce&quot;<br>orders_table.table_id = &quot;orders&quot;<br># Add schema context (descriptions, synonyms, tags)<br>orders_table.schema = geminidataanalytics.Schema()<br>orders_table.schema.description = &quot;Contains all customer orders for The Look e-commerce store.&quot;<br>orders_table.schema.synonyms = [&quot;sales&quot;, &quot;transactions&quot;]<br>orders_table.schema.tags = [&quot;order&quot;, &quot;sale&quot;, &quot;transaction&quot;]<br># Add column-level context<br>orders_table.schema.fields = [<br>    geminidataanalytics.Field(<br>        name=&quot;status&quot;,<br>        description=&quot;Current order status: &#39;Pending&#39;, &#39;Processing&#39;, &#39;Shipped&#39;, &#39;Complete&#39;, &#39;Cancelled&#39;, &#39;Returned&#39;&quot;,<br>    ),<br>    geminidataanalytics.Field(<br>        name=&quot;created_at&quot;,<br>        description=&quot;Timestamp when the order was placed. Use this for time-based analysis.&quot;,<br>    ),<br>    geminidataanalytics.Field(<br>        name=&quot;num_of_item&quot;,<br>        description=&quot;Number of items in this order.&quot;,<br>    ),<br>]<br># Second table: Users<br>users_table = geminidataanalytics.BigQueryTableReference()<br>users_table.project_id = &quot;bigquery-public-data&quot;<br>users_table.dataset_id = &quot;thelook_ecommerce&quot;<br>users_table.table_id = &quot;users&quot;<br>users_table.schema = geminidataanalytics.Schema()<br>users_table.schema.description = &quot;Customer profile data including demographics and contact info.&quot;<br>users_table.schema.synonyms = [&quot;customers&quot;, &quot;buyers&quot;]<br>users_table.schema.fields = [<br>    geminidataanalytics.Field(<br>        name=&quot;age&quot;,<br>        description=&quot;Customer&#39;s age in years.&quot;,<br>    ),<br>    geminidataanalytics.Field(<br>        name=&quot;traffic_source&quot;,<br>        description=&quot;How the customer found us: &#39;Organic&#39;, &#39;Search&#39;, &#39;Email&#39;, &#39;Display&#39;, &#39;Facebook&#39;&quot;,<br>    ),<br>]<br>datasource_refs = geminidataanalytics.DatasourceReferences()<br>datasource_refs.bq.table_references = [orders_table, users_table]<br># 2. Define Example Queries (BQ equivalent of Golden Queries)<br>example_queries = [<br>    geminidataanalytics.ExampleQuery(<br>        natural_language_question=&quot;How many orders were placed last month?&quot;,<br>        sql_query=&quot;&quot;&quot;<br>            SELECT COUNT(*) as order_count<br>            FROM `bigquery-public-data.thelook_ecommerce.orders`<br>            WHERE created_at &gt;= DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH)<br>        &quot;&quot;&quot;,<br>    ),<br>    geminidataanalytics.ExampleQuery(<br>        natural_language_question=&quot;What is our order completion rate?&quot;,<br>        sql_query=&quot;&quot;&quot;<br>            SELECT <br>                COUNTIF(status = &#39;Complete&#39;) / COUNT(*) * 100 as completion_rate<br>            FROM `bigquery-public-data.thelook_ecommerce.orders`<br>        &quot;&quot;&quot;,<br>    ),<br>    geminidataanalytics.ExampleQuery(<br>        natural_language_question=&quot;Which traffic source brings the most customers?&quot;,<br>        sql_query=&quot;&quot;&quot;<br>            SELECT traffic_source, COUNT(*) as customer_count<br>            FROM `bigquery-public-data.thelook_ecommerce.users`<br>            GROUP BY traffic_source<br>            ORDER BY customer_count DESC<br>        &quot;&quot;&quot;,<br>    ),<br>]<br># 3. Define System Instructions with relationships<br>system_instruction = &quot;&quot;&quot;<br>- system_instruction: &gt;-<br>    You are an expert data analyst for The Look e-commerce store. Answer questions<br>    about orders, customers, and business performance. Be precise and always show<br>    the SQL you used.<br>- tables:<br>  - table:<br>    - name: bigquery-public-data.thelook_ecommerce.orders<br>    - fields:<br>      - field:<br>        - name: num_of_item<br>        - aggregations: &#39;sum, avg&#39;<br>- relationships:<br>  - relationship:<br>    - name: orders_to_users<br>    - description: Connects orders to customer profiles via user_id<br>    - relationship_type: many-to-one<br>    - join_type: left<br>    - left_table: bigquery-public-data.thelook_ecommerce.orders<br>    - right_table: bigquery-public-data.thelook_ecommerce.users<br>    - relationship_columns:<br>      - left_column: user_id<br>      - right_column: id<br>- glossaries:<br>  - glossary:<br>    - term: Complete<br>    - description: Order status where the order has been fully fulfilled<br>    - synonyms:<br>      - finished<br>      - done<br>      - fulfilled<br>  - glossary:<br>    - term: Conversion Rate<br>    - description: Percentage of orders that reach &#39;Complete&#39; status<br>- additional_descriptions:<br>  - text: When asked about &#39;recent&#39; without a specific time, use last 30 days.<br>  - text: Always fully qualify table names with project.dataset.table format.<br>&quot;&quot;&quot;<br># 4. Assemble the complete agent<br>agent = geminidataanalytics.DataAgent()<br>agent.display_name = &quot;The Look Analytics Agent&quot;<br>agent.description = &quot;Answers questions about e-commerce data directly from BigQuery&quot;<br>published_context = geminidataanalytics.Context()<br>published_context.datasource_references = datasource_refs<br>published_context.system_instruction = system_instruction<br>published_context.example_queries = example_queries<br>agent.data_analytics_agent.published_context = published_context<br># 5. Create the agent<br>client = geminidataanalytics.DataAgentServiceClient()<br>request = geminidataanalytics.CreateDataAgentRequest(<br>    parent=&quot;projects/my-project/locations/global&quot;,<br>    data_agent=agent,<br>)<br>created_agent = client.create_data_agent(request=request)<br>print(f&quot;Created agent: {created_agent.name}&quot;)</pre><blockquote><em>📚 </em><strong><em>Reference:</em></strong><em> </em><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-bq"><em>Define data agent context for BigQuery data sources</em></a></blockquote><h3>Configuration Comparison: Looker vs BigQuery</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WiJUnq7WOBuzebnV3TGWjQ.png" /></figure><h3>Best Practices for Agent Configuration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QFumEOSJ9btgib9aK-mrg.png" /></figure><h3>Context Authoring: Teaching Your Agent to Be Smart</h3><p>A raw agent can query data. A <em>smart</em> agent understands your business. Here’s how you “teach” it:</p><h3>The Three Pillars of Agent Intelligence</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*R1EauYXUWkalhfErO_uHew.png" /></figure><h3>1. Golden Queries (Most Important! 🌟)</h3><p>These are pre-defined pairs of “Natural Language Question” + “Correct SQL/LookML”. Think of them as few-shot examples for the LLM.</p><pre># Source: Google Cloud Docs - Looker Context Authoring<br># https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-looker<br>golden_query = geminidataanalytics.LookerGoldenQuery(<br>    natural_language_questions=[<br>        &quot;What is the highest observed positive longitude?&quot;<br>    ],<br>    looker_query=geminidataanalytics.LookerQuery(<br>        model=&quot;airports&quot;,<br>        explore=&quot;airports&quot;,<br>        fields=[&quot;airports.longitude&quot;],<br>        filters=[<br>            geminidataanalytics.LookerQuery.Filter(<br>                field=&quot;airports.longitude&quot;, value=&quot;&gt;0&quot;<br>            )<br>        ],<br>        sorts=[&quot;airports.longitude desc&quot;],<br>        limit=&quot;1&quot;,<br>    ),<br>)</pre><p><strong>💡 Pro Tip:</strong> Start with 5–10 golden queries covering your most common questions. This single step dramatically improves accuracy.</p><h3>2. System Instructions (The Persona)</h3><p>Free-form text that sets behavior. You can edit this directly in the demo app:</p><pre># Source: app_pages/agents.py (Lines 59-61)<br># https://github.com/looker-open-source/ca-api-quickstarts/blob/main/app_pages/agents.py#L59<br>system_instruction = st.text_area(<br>    &quot;**System instructions:**&quot;,<br>    value=ag.data_analytics_agent.published_context.system_instruction,<br>)</pre><p><strong>Example System Instruction:</strong></p><pre>role: &quot;You are a strict financial analyst for Acme Corp&quot;<br>rules:<br>  - Never hallucinate data<br>  - Always format currency as USD<br>  - If confidence is low, ask for clarification<br>  - Default time period is &#39;this fiscal year&#39;</pre><h3>3. Metadata Enhancement</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bO8C6ndEq-bJvxYiUSi4Dw.png" /></figure><blockquote><em>📚 </em><strong><em>Reference:</em></strong><em> </em><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-system-instructions"><em>System Instructions Guide</em></a><em> | </em><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-looker"><em>Context for Looker</em></a><em> | </em><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-bq"><em>Context for BigQuery</em></a></blockquote><h3>The Consultant’s Playbook: How to Demo This</h3><p>If you’re taking clients through a demo, here’s our recommended approach:</p><h3>Demo Flow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bN47J8u1_2oRQpSPYZ2DQw.png" /></figure><h3>Key Talking Points</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BdVtz4M1LBxmscM4WBeFjQ.png" /></figure><h3>Common Pitfalls &amp; Solutions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ovRvkUWyBVCCIXUgYZWwcw.png" /></figure><h3>Key Takeaways</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kzORaFvcOF9_FRhxnsBuHQ.png" /></figure><h3>Resources &amp; Further Reading</h3><p><strong>Overview</strong></p><ul><li><a href="https://cloud.google.com/looker/docs/conversational-analytics-overview">Conversational Analytics Overview</a>: A high-level look at how the system works.</li></ul><p><strong>Setup</strong></p><ul><li><a href="https://cloud.google.com/bigquery/docs/create-data-agents">Create Data Agents (BigQuery)</a>: How to get your agents running on BigQuery.</li><li><a href="https://cloud.google.com/looker/docs/conversational-analytics-looker-data-agents">Looker Data Agents</a>: Specific steps for setting up agents within Looker.</li></ul><p><strong>Context &amp; Instructions</strong></p><ul><li><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-system-instructions">System Instructions Guide</a>: Learn how to “program” your agent’s persona and behavior.</li><li><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-looker">Context for Looker</a>: Adding business logic and nuance for Looker datasets.</li><li><a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/data-agent-authored-context-bq">Context for BigQuery</a>: Tailoring the agent’s understanding of BigQuery schemas.</li></ul><p><strong>Advanced</strong></p><ul><li><a href="https://cloud.google.com/looker/docs/conversational-analytics-looker-best-practices">Best Practices</a>: Tips for optimizing performance and accuracy.</li></ul><h3>Code &amp; Demos</h3><ul><li><a href="https://github.com/looker-open-source/ca-api-quickstarts"><strong>ca-api-quickstarts (GitHub)</strong></a><strong>:</strong> Practical examples and code to get you started immediately.</li><li><a href="https://pypi.org/project/google-cloud-geminidataanalytics/"><strong>google-cloud-geminidataanalytics (PyPI)</strong></a><strong>:</strong> The official Python package for integrating these analytics.</li></ul><h3>Outro</h3><p>Writing this blog felt a bit like being an archaeologist — piecing together fragments of documentation, API responses, and “aha!” moments into a coherent picture. When we started exploring that demo repo, we didn’t expect to uncover such a clean architectural story hiding behind the marketing terminology.</p><p>The good news? Once you understand that it’s all one resource with different masks, the whole ecosystem suddenly makes sense. The even better news? You now have that understanding too.</p><p>Got questions? Found something we missed? Drop a comment — we’re always learning! 🚀</p><p><a href="https://docs.google.com/document/d/1CH_Vh5Uoutw4kMtSlJXA6SOIyYQQNfQrp0s6QDWuFnA/edit?hl=en&amp;tab=t.0"><em>LLM-parsable version with diagrams as text</em></a></p><p><em>Published by </em><a href="https://medium.com/refined-and-refactored"><em>Joon Solutions</em></a><em> — We eat, sleep, and dream data.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b01bac410f76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/demystifying-google-cloud-data-agents-one-resource-to-rule-them-all-b01bac410f76">Demystifying Google Cloud Data Agents: One Resource to Rule Them All</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Agentic Era of BI: Looker’s Innovations and Roadmap for 2026]]></title>
            <link>https://medium.com/refined-and-refactored/the-agentic-era-of-bi-lookers-innovations-and-roadmap-for-2026-de8c97fe1661?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/de8c97fe1661</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[looker]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Nguyen Dao (Bach)]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 08:01:07 GMT</pubDate>
            <atom:updated>2025-12-12T08:01:05.062Z</atom:updated>
            <content:encoded><![CDATA[<p>As Looker partners who have been advocating for it for some time, we have long championed the platform not only as a visualization application but as the governed semantic heart of the modern data stack.</p><p>Its vision has evolved with the roadmap which was revealed on December 4, 2025. Now we are in an official “Agentic Era” of Business Intelligence.</p><p>Instead, the emphasis has moved from simple dashboards to smart Data Agents capable of reasoning, governing, and explaining data. This is no feature list; it’s a blueprint for your 2026 data strategy. We’ve distilled the essential updates that allow you to slice through a sea of noise here, detailing exactly how these new, technical capabilities and commercial incentives will give your teams the advantage of becoming more agile and faster innovators.</p><h3>1. The New Interface: The “Agent” Available Today.</h3><p>To the point of news, Conversational Analytics is GA (General Availability) now. It is more than a chatbot, it is a strictly-regulated query engine converting natural language into explicit LookML-defined metrics.</p><ul><li><strong>Multi-Explore:</strong> An enduring limitation of basic AI-BI technologies was a “silo” issue AI could only view one table at a time. Looker has addressed this with Multi-Explore Support. Now a single Data Agent can reason in 5 different Looker Explores. This allows cross-domain analysis (where to answer a question for Sales, Inventory and Customer Support simultaneously without the requirement for a data engineer to join such tables).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0ReCE-lSebO1ER_E" /></figure><ul><li><strong>Granular Agent Permissions:</strong> To facilitate this, Looker has developed three new permission sets: <strong><em>chat_with_agent </em></strong>(for viewers), <strong><em>save_agents </em></strong>(for creators) and <strong><em>chat_with_explore </em></strong>(for direct explorations). Viewers can ask “Why did this drop?” and get context-aware answers grounded in the dashboard’s specific filters and data.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u8dLIPHLE5ztTiVr" /></figure><ul><li><strong>The Model Context Protocol (MCP):</strong> This is a game-changer for technical teams. The Looker + MCP toolbox Looker is unveiling. This open criterion enables you to join Looker’s reputable data agents to external AI applications, to enable other AI agents to “interview” your Looker instance to get facts. It closes the loop between your semantic layer and other tools like Vertex AI or custom corporate bots.</li></ul><h4>Commercial Strategy: The Window for Innovation</h4><p>Looker has unveiled an aggressive adoption model that features experimentation.</p><ul><li><strong>There’s a “Free” window: </strong>The enforcement of quotas and overage billing has been waived until October 1, 2026. Then you will have almost 1 year to build, test and deploy agents risk-free.</li><li><strong>Future Pricing (Post-Oct 2026):</strong> With enforcement underway, the model then turns to a consumption-based model for overages. The roadmap confirmed the rates:<br>- Input Tokens: $3.00 per 1M tokens.<br>- Output Tokens: $20.00 per 1M tokens.<br>- <em>Note that transparency means you can set hard baselines during the waiver.</em></li></ul><h3>2. Democratizing the Semantic Layer (Roadmap H1 2026)</h3><p>The LookML Wall is perhaps the classic point of friction in Looker. In practice, this creates a considerable workflow bottleneck — if a non-technical Business Analyst needed a new custom field (e.g., grouping “CA” and “NY” into a “Coastal Region”) or needed to join a new table for a specific report, it simply blocked them. They had to file a ticket with the Data Engineering team and wait for a sprint cycle just to get a simple metric defined. Now Looker has tackled this ticket queue problem head-on with GUI-Based Modeling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oLYk45QebxxRKLgx" /></figure><ul><li><strong>Visual Data Modeling:</strong> We’re starting to move away from pure code-only bottlenecks. Business users and analysts will soon have the ability to perform general modeling tasks — creating relationships and defining custom fields — with an easy-to-use <strong>GUI (Graphical User Interface)</strong>. This frees modeling from the IDE and creates a visual canvas in which analysts can iterate on their own data models on the fly without having to wait for engineering support.</li><li><strong>Seamless LookML Transition:</strong> The thing is this doesn’t actually change governance. The analyst’s visual adjustments are written straight to LookML code. While the creation itself is democratic and quick, this still makes sure that a governed, version-controlled file is delivered to engineers to review and secure.</li></ul><h3>3. Bridging the “Excel Gap”: Self-Service &amp; Uploads</h3><p>A major gap in contemporary BI is the fact that when business users want to connect controlled and corporate information with something local (a sales target and conference participant list, e.g.) they often find themselves “stranded.” Right now, that requires them to export the data from Looker and assemble it into Excel. The result is Shadow BI — informal, versionless reports, where the single source of truth is inconsistent. Looker is closing this loop with two major enhancements:</p><ul><li><strong>Self-Service Data Uploads (Preview Q4 2025): </strong>Users now can drag and drop CSV, XLS, and XLSX files directly into the Looker Explore interface. While Looker Studio localizes storage, this feature writes the data directly into a BigQuery database which is owned and managed by your instance. We re-injected “rogue” data into the governed fold, meaning that users can now make connections between the locally defined files and the modeled data they need to create independently from the browser.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pzIOQsiua8MzOroy" /></figure><ul><li><strong>Governed and Monolithic Analysis: </strong>Architecture separates this user-uploaded “ad-hoc” data from your “modeled” corporate data. This is not a limitation; it is a safety point. It serves as a sandbox that provides flexibility for the analyst but does not pollute the central LookML model or compromise the integrity of the core reporting pipelines.</li><li><strong>NextGen Explore (Preview H1 2026):</strong> Our exploration interface is transitioning to a complete drag-and-drop canvas, akin to legacy desktop BI products. This redesign reduces setup time by landing the users on automatically populated data tables instead of blank screens, which will make it easier to onboard users migrating from Tableau or PowerBI.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kP6dhTyycAnFM3zQ" /></figure><h3>4. Core BI &amp; Developer Experience Updates</h3><p>As AI monopolizes the headlines, the 2025 roadmap features massive quality-of-life improvements for the daily dashboard developers and engineers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Nlgx2EcJxT5ZbXz7" /></figure><ul><li><strong>Visual Polish: </strong>We should see Tabbed Dashboards (Preview) and Custom Tooltips at last. These highly requested features allow for cleaner, denser information hierarchies without custom HTML hacks.</li><li><strong>Developer Performance:</strong> Scoped Content Validation and Fast Dev Mode will drastically reduce the time taken by our engineering teams to wait for the LookML validator to run and lead to faster deployment cycles.</li><li><strong>Visual Drilling:</strong> Enhanced Visual Drilling capabilities will allow users to drill into data points with more context and interactivity than the existing static drill menus.</li></ul><h3>5. Governance and “Trust Signals”</h3><p>The December 4th Looker Roadmap article gave CISOs and Data Stewards clear answers to questions of trust and compliance.</p><ul><li><strong>Content Certification (Preview Q4 2025):</strong> To address dashboard sprawl, Looker is implementing a structured certification workflow. A visible Green Checkmark will appear on assets that have undergone manual review. Hovering over this badge will show who certified it, when it was certified, and specifically what is recorded by specific note writers — which shows the difference between a board-ready report and one run sandbox experiments immediately.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4ax9unbm853OWxFc" /></figure><ul><li><strong>Zero Model Training:</strong> Looker has explicitly declared that your data is never used to train Google’s foundational Gemini models.</li><li><strong>Horizontal Compliance: </strong>These new AI workloads provide strong support for <strong><em>VPC Service Controls</em></strong> and<strong><em> Customer Managed Encryption Keys (CMEK)</em></strong>, enabling your AI agents to comply throughout with the same security perimeter as your standard reporting.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_9O00qM-Wv1T4_X4" /></figure><h3>6. The Unified Agent Hub (Gemini Enterprise)</h3><p>More broadly, Looker is tackling the “Agent Sprawl” challenge in advance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7y2XPIVqXxoCRQWg" /></figure><ul><li><strong>Centralized control:</strong> Organizations can manage their Looker Agents in a Central Agent Hub using Gemini Enterprise — similar to other automated corporate bots.</li><li><strong>Discoverability: </strong>This acts as an internal “App Store” of your company’s intelligence, allowing a user to find out (and then know what it will be) what the “Finance Bot,” “HR Helper,” or “Sales Agent” can do in one unified location, instead of crawling through your multiple dashboard folders.</li></ul><h3>Summary: The Call to Action.</h3><p>The December 4th announcements signal the obvious, but we should be wary: The semantic layer is merely a safety net if it is designed carefully.</p><p>And as we begin the Agentic Era, cramming some raw database schemas and messy table definitions and tucking them into an AI Agent will not produce magic, it will only produce confusion. The “hallucination hazard” isn’t solved by the tool; it is solved when your LookML is crystal clear.</p><p>We encourage you to look past the hype and at the bones. In order to extract value from these agents, you need to treat your LookML not merely as code but as a Data Metrics Dictionary — a set of strict rules that spell out what exactly “Revenue” or “Churn” means. This will ensure your AI agents output deterministic results that are in line with your business logic and not just some wisps on a probability graph on some table data.</p><p><strong>Our Recommendation:</strong> Use the “Golden Window” (the AI cost waiver until October 2026) not only to play with chatbots, but also to rigorously audit and refine your data model. If you spend the time today governing your metrics, your Agents will become the most powerful workers in your organization. Without this modeling, they will merely be noise. Contact our team today to help you audit your LookML foundation and pilot these new capabilities correctly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de8c97fe1661" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/the-agentic-era-of-bi-lookers-innovations-and-roadmap-for-2026-de8c97fe1661">The Agentic Era of BI: Looker’s Innovations and Roadmap for 2026</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Spectacles to Looker CI: A Seamless Transition Ahead?]]></title>
            <link>https://medium.com/refined-and-refactored/from-spectacles-to-looker-ci-a-seamless-transition-ahead-68216866492f?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/68216866492f</guid>
            <dc:creator><![CDATA[Na Nguyen (Anna)]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 06:05:10 GMT</pubDate>
            <atom:updated>2025-12-12T06:05:08.986Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intro</h3><p>Just a few weeks ago, Looker launched a new beta feature — the built-in <a href="https://cloud.google.com/looker/docs/continuous-integration">Continuous Integration</a> that helps you run pre-defined tests on your development codebase to prevent any LookML change from breaking the production contents &amp; explores.</p><p>It is not at all a surprise.</p><p>Everybody knew this day was coming <a href="https://cloud.google.com/blog/products/data-analytics/looker-bi-platform-gets-ai-powered-data-exploration">when Google acquired Spectacles</a> a while ago. People had been longing for the day when they could enjoy Spectacles’ features directly within Looker console without any subscription overhead.</p><p>On the dream-come-true day, some clients approached me with very valid concerns:</p><ul><li>Is there any <strong>features gap</strong> between the two tools?</li><li>Any <strong>type of issue/ error </strong>I can catch with Spectacles but not with Looker?</li><li>Any <strong>pitfalls</strong> I need to be aware of before the migration?</li></ul><p>To address these common concerns, I’m writing this blog to shed lights on the differences between the two tools, giving heads-up for folks who need to plan for a migration from <a href="https://www.spectacles.dev/index.html"><strong>Spectacles Cloud</strong></a> to <strong>Looker C</strong>I. Although I know I kinda put myself at a tricky situation when writing about a feature not yet made generally available. I’ll try my best to keep this blog up-to-date with any latest development on Looker CI.</p><p>As usual, a few disclaimers to help you save your precious time before digging further into my blog:</p><ul><li>This blog is not a how-to blog. You can set up Looker CI very easily following <a href="https://cloud.google.com/looker/docs/continuous-integration">this guiding document</a>. As of now, this feature is not yet generally available, but you can try it out if your Looker Instance is at 25.10 version or beyond.</li><li>This blog is not an introduction to Continuous Integration, or Looker, or Spectacles products.</li><li>Also to set things straight from the start, the following comparison is between Looker CI and Spectacles Cloud, not <a href="https://github.com/spectacles-ci/spectacles">Spectacles CLI</a>. Spectacles CLI lacks a user-friendly UI, requires manual setup, and has limited functionalities. Therefore, needless to say you won’t miss out on anything if you switch from Spectacles CLI to Looker CI.</li></ul><h3>Features Comparison</h3><p>Spectacles offers 3 products suites:</p><ul><li>Continuous Integration</li><li>Contents Management</li><li>LookML Cleaner</li></ul><p>Depending on which Spectacles products you subscribed to, you will have to plan your migration differently.</p><h4>Continuous Integration</h4><p>This is the first product that Spectacles launched, and that made Spectacles a household name among Looker Users. Spectacles CI helps LookML Developers catch all the issues their changes were about to make, before merging changes to production.</p><p>Spectacles extends beyond Looker’s <strong>LookML Validator </strong>&amp; <strong>Content Validator</strong> to <strong>SQL Validator</strong> — checking the validity of compiled SQL codes, <strong>Assert Validator </strong>— checking Looker test cases, and <strong>Style Validator</strong> — checking LookML coding styles. All these validators are automated &amp; integrated it into the development workflow with Github PR triggers. All together Spectacles CI provides a reliable and efficient testing system for LookML Developers before deployment.</p><p>The great news is most of Spectacles CI’s functionalities are now available in Looker CI beta version. Setting up Looker CI is also as straightforward as it was with Spectacles. All you need is a a Looker API key and a few clicks in the Looker Admin panel. Check out <a href="https://cloud.google.com/looker/docs/continuous-integration">this document</a> for more details how to set up Looker CI.</p><p>Let’s take a detailed look at what has and hasn’t been integrated!</p><p>1. <strong>UI</strong></p><p>The great news for existing Spectacles users is that Looker CI offers a consistent look, feel, and workflow with Spectacles Cloud. You will feel so much at home using Looker CI if you’ve been familiar with Spectacles before.</p><ul><li>1️⃣ Firstly, you start with creating a CI suite, which is a set of validation instructions you want Looker to test against your LookML Project.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFeFowYfTrQNhRC-BUY6og.png" /></figure><ul><li>2️⃣ Then you trigger a CI run, either by a Pull Request or manually in the “Run” Menu</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9HuOSd8zCgTw52ncYZ-aQw.png" /></figure><ul><li>3️⃣ Finally you check the CI run results and debug if any error pops up</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xEXVfdgOyi5I1tmhLebY8g.png" /><figcaption>Looker CI run results displayed in “Run” Console</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*L6RAiNYVXaHAeWZcP3dJ7Q.png" /><figcaption>Looker CI run results displayed in Github PR</figcaption></figure><p><strong>2. Validators Coverage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*71tK05mMcg2lhcNszsBhGg.png" /></figure><p>✅ Looker CI suites has LookML Validator, Content Validator, SQL Validator, Assert Validator with similar functionalities as Spectacles. Therefore you will have an easy time migrating them over to Looker CI</p><p>🔴 However, Looker CI currently doesn’t have Style Validator. If you’ve so far relied on Spectacles to ensure a consistent LookML style in your codebase, you’d have to plan more carefully for the migration. One workaround is resorting to open-source <a href="https://github.com/looker-open-source/look-at-me-sideways">look-at-me-sideways (LAMS) Linter</a>. It utilizes Github Actions to run automated checks on your LookML styles, depending on the rules you set forth. Check the document carefully to ensure your current style rules in Spectacles are also available in LAMS rules set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*qVEBzoevMYKeUMgrrKHsQw.png" /></figure><p>⚠️ Its worth noting that while many features have been carried over, some limitations from Spectacles persist in Looker CI, such as the SQL Validator currently only checking dimensions, not measures.</p><p><strong>3. Advanced configurations</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZXhBb4Wa3w_m3Q2dufYnCg.png" /></figure><p>✅ All your advanced configurations, like model exclusion, fail-fast, and incremental validation, work exactly the same in Looker CI.</p><p>➕ What’s even better is that Looker CI now lets you configure exclusions directly at the LookML layer. You can do this using the <strong>ci:ignore</strong> statement within the tags parameter or as a SQL comment. (more details <a href="https://cloud.google.com/looker/docs/ci-sql-validator">here</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*QpMCRCZZYECIh5j17h7wQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*x8QmVLc1zIGDk_cy-UIpoA.png" /></figure><p><strong>4. Triggers &amp; Notification</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*mJ4jR_DnGoEIOFjkcAQNLQ.png" /></figure><p>Spectacles offer 4 types of triggers for its test suites: manual trigger, trigger on a a schedule, trigger on pull requests from Looker, trigger on pull requests from dbt Cloud.</p><p>✅ Looker CI currently only allows you to trigger the tests on a pull request, or manually directly in Looker console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*TImnN9Qm6U2Nem9xtBtKBw.png" /></figure><p>🔴 Migrating at this moment in time would be more cumbersome if you are using, or plan to use, the other trigger types — on a schedule or on dbt cloud PR. You still have an option of utilizing <a href="https://cloud.google.com/looker/docs/reference/looker-api/4.0/25.8/methods/Project/create_ci_run">Looker CI API</a> to automatically trigger a run. You can build yourself a custom pipeline to call the API on a frequent basis, or hook it up with your dbt Cloud. However it is not an easy work. So my advice in this case is to halt the migration, submit a feature request to Looker team, gather as many votes as you can, then wait and see. Don’t invest engineering resources into building anything just yet.</p><p>🔴 Another limitation of Looker CI is the lack of built-in notifications for failed runs. If your LookML engineers depend on Slack notifications (or similar) to catch Looker errors from Spectacles, you’ll need to inform your users about this change before migrating. The workaround is similar to the above, building a custom notification system using <a href="https://joonpartner.cloud.looker.com/extensions/marketplace_extension_api_explorer::api-explorer/4.0/methods/Project/get_ci_run?s=Continuous+Integration&amp;sdk=py">Looker CI API</a>. but we don’t recommend spending time on this yet. It’s likely that notification feature will be available when Looker CI is made GA.</p><h4>Content Management &amp; LookML Cleaner</h4><p>Spectacles Content Management is used to clean up unused Looker Content. It provides with a report with a list of your Looker Contents, together with metadata like Owner, Type, Queries, etc. You can identify &amp; delete unused content by just a few clicks. You can even schedule content deprecation and notify content owners automatically. How cool is that, right?</p><p>Similarly, <strong>LookML Cleaner</strong> addresses the cleanup of unused LookML fields. Spectacles intelligently recommends the deletion of LookML that’s no longer being used.</p><p>🔴 However, the bad news is, both Content Management &amp; LookML Cleaner are not yet integrated into Looker CI toolkit. It’s still uncertain if similar out-of-the-box features will become available.</p><p><strong>Workaround: </strong>build your own content management!</p><p>The underlying technical solution is quite straightforward. You can build your own content management tool using Looker System Activity data. In fact, our team developed <a href="https://github.com/joon-solutions/Felix-the-field-agent">an open-source solution</a> called <strong>the Felix the Agent</strong> (<em>I know, what a lovely name!</em>) for this exact purpose during the Looker Hackathon 2024.</p><p>A little brag: our product is the runner-up of the Hackathon, so quality guaranteed 😉 Check it out if you love this feature so much and you don’t want to miss it when migrating away from Spectacles. Also free to to contact us if you have any question about <strong>the Felix the Agent</strong>, or bump into any issue while setting it up 💌</p><h3>Key Takeaways</h3><p>Okay, so long story short:</p><p>You can begin migrating your current Spectacles jobs to Looker CI now, unless you are using any of the following features:</p><ul><li>Spectacles Style Validator</li><li>Scheduled Spectacles CI triggers</li><li>Spectacles CI triggered from dbt Cloud PRs</li><li>Spectacles notifications for failed runs</li><li>Spectacles Content Management</li><li>Spectacles LookML Cleaner</li></ul><p>While I’ve mentioned some workarounds for these limitations, my strongest recommendation is to submit honest feedback and feature requests to Looker. Remember, Looker CI is still in beta, and many improvements are likely on the way.</p><p>Stay tuned for more updates!!!!</p><h3>Outro</h3><p>Its nearly 7pm already and I’m in two minds about whether to use ChatGPT to write a funny outro or to skip this part altogether to keep this blog AI-free (well except for the title as im suck at coming up with catchy phrases). Went with the second route and here we are with the most unexpected outro ever :))</p><p>Anw hope this blog is helpful for you in your migration journey ❤</p><h3>References</h3><ol><li><a href="https://docs.spectacles.dev/app/tutorials/getting-started/">Spectacles Documentation</a></li><li><a href="https://cloud.google.com/looker/docs/continuous-integration">Looker CI Documentation</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68216866492f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/from-spectacles-to-looker-ci-a-seamless-transition-ahead-68216866492f">From Spectacles to Looker CI: A Seamless Transition Ahead?</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Looker + Looker Studio: Key Changes, Feature Comparison & 2025 Roadmap]]></title>
            <link>https://medium.com/refined-and-refactored/looker-looker-studio-key-changes-feature-comparison-2025-roadmap-195bbce21e61?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/195bbce21e61</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[google-looker-studio]]></category>
            <category><![CDATA[looker-studio]]></category>
            <category><![CDATA[looker]]></category>
            <dc:creator><![CDATA[Alice Bui]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 06:04:46 GMT</pubDate>
            <atom:updated>2025-12-12T06:04:46.373Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Looker Newsletter] Looker + Looker Studio Unification: Key Changes, Feature Comparison &amp; 2025 Roadmap</h3><p>🚀 Welcome to the<strong> Looker Newsletter </strong>by<strong> Joon Solutions!</strong> Your go-to resource for <strong>business intelligence professionals</strong> and <strong>data teams</strong> looking to maximize Looker’s capabilities. With <strong>5+ years of experience</strong> in complex Looker projects — training developers, optimizing deployments, and implementing cutting-edge BI strategies — our team stays ahead of the latest updates.</p><p>🔥 What’s in this newsletter? <strong>New Features, Advanced Use Cases, Expert Tips! — 💡 Subscribe now </strong>to stay ahead of Looker updates<strong>!</strong></p><h3>I. The Core Concept: A Unified Looker Experience</h3><p>Looker and Looker Studio are separate BI tools owned by Google. They both have outstanding but distinctive strengths.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7oZSvUegZqrTPCA_wb6tvw.png" /><figcaption>Image by the author</figcaption></figure><p>🚀 The <strong><em>core concept </em></strong>of the Looker Unification initiative is to bring Looker Studio into the Looker core, <strong><em>combining the strengths of both platforms: governance &amp; visualization capabilities.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*guq40QtkExTLUhynCDmN3A.png" /><figcaption>Image by the author</figcaption></figure><p>With this shift, users now benefit from a Single Looker Offering!</p><h4><strong>1. Unified UI</strong></h4><p>🔹<strong>Single log-in and UI</strong> to access Reports (Looker Studio) &amp; Dashboards (Looker core) from your Looker instance</p><p>🔹 <strong>Accessing</strong> <strong>Reports (Looker Studio)</strong> will be available within your Looker instance, under the <strong>“Explore → Create Reports”</strong> button in the left sidebar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*mtHYWPPZ46XnTtcWLhUVsg.png" /><figcaption>Image by the author</figcaption></figure><p><strong>How Will Looker Unification Impact Your Current Reports &amp; Dashboards?</strong></p><p>🔹 <strong>No impact on your existing Looker content. </strong>All your current Dashboards, Looks, and Reports will continue to function as they do today. <strong>Looker Dashboards and Looker Studio Reports will remain independent.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8LZOPuZo9dcKWjVnpnFXKg.png" /><figcaption>Source: Google BICC</figcaption></figure><p>🔹 There is <strong>no direct migration or conversion tool</strong> between Looker Dashboards and Looker Studio Reports. Google has not announced any official plan, but updates may be introduced in the future.</p><h4><strong>2. Unified Capabilities</strong></h4><p>🔹System Activity, Permissions, Looker semantic layer, Gemini in Looker, etc. are unified in 1 single product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51C05zvG7DFFsT0m-mzOcg.png" /><figcaption>Image by the author</figcaption></figure><h4><strong>3. Unified Purchasing</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVKOYi4ZIUbE5x6lepA-XQ.png" /><figcaption>Image by the author — <a href="https://cloud.google.com/looker/docs/studio/complimentary-looker-studio-pro-licenses-offer-details?visit_id=638780586853929508-118596323&amp;p=lsp4l-licenses&amp;rd=2">Reference</a></figcaption></figure><h3>II. Looker Dashboards vs. Looker Studio Reports: Which One to Choose?</h3><p>Looker remains <strong>neutral </strong>on whether users should fully migrate to one option over the other. Currently, they recommend <strong>leveraging both for different use cases</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9iHdoNfa5uh8T3D3vwnsg.png" /><figcaption>Image by the author</figcaption></figure><p>The key reason is that each platform offers unique capabilities that the other lacks. As a result, Looker is waiting for users’ feedback to guide future decisions. As Looker Unification evolves, we’ll keep you updated on best practices!</p><h3>III. 2025 Roadmap Insights</h3><p>This is not an official statement from the Looker team; however, based on the 2025 roadmap, Looker Studio Reports are expected to<strong> receive significant analytics enhancements</strong>, leading us to believe it may <strong>become more feature-rich than Looker Dashboards.</strong></p><p>Additionally, governance improvements<strong> </strong>will <strong>align it more closely with Looker Core’s security and management standards</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65Fe2Bzx9Q2AKnhJ-GtL9Q.png" /><figcaption>Studio in Looker 2025 Roadmap — Image by the author</figcaption></figure><p><em>Note: The private preview is now closed. The public preview is coming on 25th April, 2025.</em></p><p>🚀<strong> </strong>Stay ahead with Looker’s latest updates! <strong>Subscribe </strong>to our newsletter today! Got questions? <strong>Drop </strong>them in the <strong>comments!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=195bbce21e61" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/looker-looker-studio-key-changes-feature-comparison-2025-roadmap-195bbce21e61">Looker + Looker Studio: Key Changes, Feature Comparison &amp; 2025 Roadmap</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[dbt_project_evaluator: How to Evaluate Your dbt Project for Performance, Cost, and Scalability]]></title>
            <link>https://medium.com/refined-and-refactored/dbt-project-evaluator-how-to-evaluate-your-dbt-project-for-performance-cost-and-scalability-abdd496472e7?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/abdd496472e7</guid>
            <category><![CDATA[dbt-labs]]></category>
            <category><![CDATA[dbt]]></category>
            <dc:creator><![CDATA[Alice Bui]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 06:04:27 GMT</pubDate>
            <atom:updated>2025-12-12T06:04:27.577Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6T01mq8ZTO9egTOy6Mn9TQ.png" /></figure><h3>Why does the dbt project need to be aligned with best practices?</h3><p><strong>As your dbt project grows,</strong> hidden issues can creep in — like slow models, unclear logic, and messy coding habits. These aren’t just small problems — they can lead to:</p><ul><li><strong>🚨 Slow Performance: </strong>Dashboards take too long to load, reports are outdated, and decisions get delayed. This directly impacts your organization’s ability to make timely, data-driven decisions.</li><li><strong>💸 Higher Costs: </strong>Every redundant join, unoptimized materialization, or untested model translates into unnecessary compute cycles. What seems like a minor query inefficiency on a small scale can quickly balloon into a significant monthly expense as data volumes grow, eating into your budget.</li><li><strong>🤔 Lower Data Trust: </strong>Inconsistent testing, undocumented assumptions, and a lack of robust data quality checks inevitably lead to errors in your data, making others doubt your data.</li><li><strong>📉 Hard to Scale: </strong>New team members struggle to understand the project. Without clear rules or structure, onboarding is slow, and bugs take longer to fix.</li></ul><p><strong>You may be well aware of these problems. But keeping up with every dbt best practice across development cycles is overwhelming.</strong> Guidelines are long, hard to track, and easy overlooked under tight deadlines.</p><p>That’s where the dbt_project_evaluator package bridges the gap. In this blog, I’ll walk you through <strong>how to use the </strong><strong>dbt_project_evaluator package effectively, what I’ve found particularly valuable about it, and where I think there’s still room to grow.</strong></p><h3>Why I Find dbt_project_evaluator Valuable</h3><p>What makes the dbt_project_evaluator package <strong>is truly valuable in automating critical checks</strong> across five key areas of any dbt project: <strong>Modelling, Testing, Documentation, Structure, and Performance</strong>. These aren&#39;t just checkboxes—they directly improve your team’s <strong>efficiency, scalability, and trust in the data</strong>.</p><ul><li><strong>Modelling</strong>: Enforces clean DAG structure and traceability from sources</li><li><strong>Testing</strong>: Ensures each model has a primary key test and meets test coverage thresholds</li><li><strong>Documentation</strong>: Flags missing model descriptions and tracks overall doc completeness</li><li><strong>Structure</strong>: Validates naming conventions and directory organization</li><li><strong>Performance</strong>: Surfaces inefficient materializations and overly long dependency chains</li></ul><p>These automated checks save hours of manual auditing while improving data quality and collaboration across the team.</p><p>Among all features, <strong>Modeling checks stand out most for me</strong>. They uncover deep, often-hidden issues that can silently drag down performance — like:</p><ul><li>Models with too many joins</li><li>Unnecessary re-joins of upstream logic</li><li>Overly broad fanout at the end of the DAG</li><li>Unused sources</li></ul><p><strong>In large projects, for example, a more-than-100-model project, spotting these manually is nearly impossible</strong> — this package does it for you. That’s what makes it a game-changer:</p><ul><li><strong>🔍 No More Manual DAG Reviews</strong>: It identifies unclear model relationships automatically, saving hours of eyeballing messy DAGs.</li><li><strong>💸 Time &amp; Cost Efficiency</strong>: By catching inefficiencies early, it reduces compute usage and helps cut cloud warehouse costs — especially as your data scales.</li></ul><h3>Room for Improvement: What Doesn&#39;t Cover (Yet)</h3><p>While dbt_project_evaluator provides powerful automation for structural and metadata checks, there are still some important areas it doesn’t cover:</p><h4>🚫 Current Limitations:</h4><ul><li><strong>SQL Query Quality</strong>: It doesn’t validate SQL against best practices like CTE usage, window functions, or performance-optimized logic.</li><li><strong>Upstream Transformation</strong>: The package can’t detect if basic transformations (e.g., renaming, casting) are happening in the upstream models, which creates repeated code.</li><li><strong>Model Overlap</strong>: There’s no built-in check for duplicated logic or overlapping transformation logic across multiple models.</li></ul><h4>🛠️ Workarounds &amp; Tips</h4><ul><li><strong>Manually Review 1 by 1</strong>: For critical models, continue to manually inspect logic and lineage to catch edge cases and transformation drift.</li><li><strong>Use AI Agents for SQL Reviews</strong>: Consolidate your internal <strong>SQL best practices</strong> into a shared document, and use an AI tool (like ChatGPT) to scan your dbt models and compare them against those guidelines to flag violations or risky patterns.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhx56j0j8lXqZ7P-_nzqLQ.png" /><figcaption>Image by the author</figcaption></figure><p>Example prompt:</p><blockquote>“Here’s our dbt best practices. Compare it to this dbt model and point out any violations or anti-patterns.”</blockquote><p>This hybrid approach helps fill the gap while waiting for more advanced static analysis features to emerge in the dbt ecosystem.</p><h3>Try it out!<a href="https://docs.getdbt.com/blog/align-with-dbt-project-evaluator#try-it-out">​</a></h3><p>To try out the package in your project:</p><ul><li><strong>Install the package</strong>: Include the following in your packages.yml file:</li></ul><pre>packages:<br>  - package: dbt-labs/dbt_project_evaluator<br>    version: 1.0.0</pre><ul><li><strong>Run and test all of the models in the package</strong>: Execute a dbt build --select package:dbt_project_evaluator command.</li><li><strong>Identify any warnings</strong>: Each test warning indicates the presence of a type of misalignment.</li></ul><p>To add this package as a CI check:</p><ul><li>Override the severity of your tests using an environment variable.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*JRIIM7kQJBK4qqFuZgBOOg.png" /><figcaption>dbt Labs demo</figcaption></figure><ul><li>Run this package as a step in your CI job</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QxAIePFyXnXo8TSiHXhqtg.png" /><figcaption>dbt Labs demo</figcaption></figure><p><strong>💡 Stay in the loop.</strong> If you found this helpful, follow my blog for more deep dives into dbt and data best practices.</p><p><strong>Reference</strong>:</p><ul><li><a href="https://dbt-labs.github.io/dbt-project-evaluator/latest/rules/">https://dbt-labs.github.io/dbt-project-evaluator/latest/rules/</a></li><li><a href="https://github.com/dbt-labs/dbt-project-evaluator">https://github.com/dbt-labs/dbt-project-evaluator</a></li><li><a href="https://docs.getdbt.com/blog/align-with-dbt-project-evaluator">https://docs.getdbt.com/blog/align-with-dbt-project-evaluator</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abdd496472e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/dbt-project-evaluator-how-to-evaluate-your-dbt-project-for-performance-cost-and-scalability-abdd496472e7">dbt_project_evaluator: How to Evaluate Your dbt Project for Performance, Cost, and Scalability</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Hard-coding Your Looker Agent: LookML Strategy for Agile Context]]></title>
            <link>https://medium.com/refined-and-refactored/stop-hard-coding-your-looker-agent-lookml-strategy-for-agile-context-a7bb99c3fd9d?source=rss----7f72b309e802---4</link>
            <guid isPermaLink="false">https://medium.com/p/a7bb99c3fd9d</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[lookml]]></category>
            <dc:creator><![CDATA[Tuấn Kiệt Lưu]]></dc:creator>
            <pubDate>Tue, 18 Nov 2025 09:23:41 GMT</pubDate>
            <atom:updated>2025-11-18T09:23:40.076Z</atom:updated>
            <content:encoded><![CDATA[<h3>Your AI Agent’s Brain Doesn’t Belong in Its Code</h3><p>Your phone buzzes. It’s the Head of eCommerce. The big Q4 <strong>“Win-back Campaign”</strong> just launched to re-engage lapsed customers. She’s in the new Looker agent and asks a simple, urgent question:</p><blockquote>“How is the Win-back Campaign performing so far?”</blockquote><p>The agent, powered by a state-of-the-art LLM, responds with confusion:</p><blockquote>“I’m sorry, I could not find a field related to a ‘Win-back Campaign.’ Would you like to see overall sales?”</blockquote><p>The momentum is gone. The promise of instant insight is broken. The executive closes the tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*ei3j-uhzfqVmI00C" /></figure><p><em>Without a shared context, natural business language fails to connect with the AI agent, leading to user frustration.</em></p><p><strong>This Isn’t a Technology Failure. It’s an Architectural Failure.</strong></p><p>This scenario isn’t a failure of the AI. It’s a failure of the system we built around it. The core problem is a question that every data team building with GenAI must answer:</p><h3>Where should your AI’s business knowledge live?</h3><p>The naive approach is to have a developer crack open the agent’s code and update its core system prompt, hard-coding a rule like: &quot;When a user says &#39;Win-back Campaign&#39;, they mean the &#39;returned_total_sale_price&#39; measure.&quot;</p><p>This creates an operational nightmare. It’s a fragile, unscalable architecture that leads to a vicious cycle:</p><ol><li><strong>The Business Changes:</strong> A new campaign, “Holiday Push,” is launched.</li><li><strong>The Developer Bottleneck:</strong> The business now has to file a ticket and wait for an agent developer to update the prompt.</li><li><strong>The Slow Redeployment:</strong> The entire agent application must be tested and redeployed, introducing risk and downtime.</li><li><strong>The Cycle Repeats:</strong> The business can only move as fast as the agent’s development cycle allows.</li></ol><p>This isn’t agility. It’s technical debt waiting to happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*VggffRK3_JZEyrHM" /></figure><p><em>The naive architecture creates a developer bottleneck, where every change in business terminology requires a slow and brittle update to the agent’s core code.</em></p><h3>The Vision: A Living Context Store</h3><p>Imagine a different experience. When the “Holiday Push” campaign launches, the data team gets a notification. A LookML developer opens a view file, adds a single line of code, and commits the change.</p><p>Minutes later, the Head of eCommerce asks the agent, <em>“Show me the Holiday Push revenue.”</em></p><p>The agent understands instantly.</p><p>This isn’t a fantasy. It’s the result of a deliberate architectural choice: <strong>Your agent’s brain doesn’t belong in its code; it belongs in your semantic layer.</strong></p><p>At Joon Solutions, we guide our clients to build their LookML model into a dynamic, living “context store.” This is the key to maximizing the ROI of your Looker investment and building a truly agile data culture. It starts with one simple but powerful parameter.</p><h3>The Fix: Decoupling Context from Code with synonyms</h3><p>The synonyms parameter in LookML is your primary tool for building this agile context store. It allows you to decouple fleeting business terminology from your agent&#39;s core application logic.</p><p>Instead of cluttering a system prompt, you enrich the semantic model itself:</p><pre># In your order_items.view.lkml file...<br><br>measure: returned_total_sale_price {<br>  type: sum<br>  label: &quot;Returned Customer Revenue&quot;<br>  description: &quot;Total revenue from customers who have previously purchased but had no activity for over 90 days.&quot;<br>  <br>  # The context lives here, in the model, where it belongs:<br>  synonyms: [&quot;win-back revenue&quot;, &quot;winback sales&quot;, &quot;re-engagement revenue&quot;]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*4vuPJW3GfLDOJlTE" /></figure><p><em>This architecture enables a continuous, collaborative governance cycle, where business and data teams work together to keep the agent’s knowledge current.</em></p><p>This simple shift is transformative.</p><ul><li><strong>No Redeployment.</strong> When a campaign ends, you comment out a line. The agent’s code is untouched.</li><li><strong>No Downtime.</strong> Changes flow through your standard, zero-downtime LookML workflow.</li><li><strong>No Bottleneck.</strong> You’ve empowered the data practitioners closest to the business to manage the agent’s vocabulary.</li></ul><p>You’re not just fixing a bug; you’re building a scalable, well-governed system.</p><h3>From Code to Collaboration: A Governance Framework</h3><p>This architectural shift enables a powerful, collaborative governance process. It turns data modeling from a technical task into an ongoing strategic dialogue with the business.</p><p>We work with clients to embed this cadence into their operations, constantly asking:</p><ul><li><strong>At an Initiative Kick-off:</strong> <em>“As we launch this campaign, what are the 1–2 key slang terms or project names we need to add as synonyms to our core LookML measures?”</em></li><li><strong>During a Quarterly Review:</strong> <em>“Which projects from last quarter have ended? Let’s audit our </em>synonyms<em> to remove outdated terms and keep the agent&#39;s knowledge fresh.&quot;</em></li><li><strong>In a Cross-Functional Audit:</strong> <em>“Does ‘Gross Margin’ have synonyms that reflect how both the Finance team (</em>GM<em>) and the Sales team (</em>Profitability<em>) refer to it?&quot;</em></li></ul><p>This is how you build a data culture that lasts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*l4E0ORiV03fFccph" /></figure><p><em>This architecture enables a continuous, collaborative governance cycle, where business and data teams work together to keep the agent’s knowledge current.</em></p><h3>The Takeaway</h3><p>To unlock the true potential of your Looker agent, you must treat your LookML model as its brain. By embedding business context directly into the semantic layer with tools like synonyms, you build a system that is not only more intelligent but also vastly more agile and maintainable.</p><p>But vocabulary is just the start.</p><p><strong>In our next post, we’ll explore the “Context” pillar, using </strong>descriptions<strong> and </strong>group_labels<strong> to teach your agent not just <em>what</em> things are called, but <em>why</em> they matter.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7bb99c3fd9d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/refined-and-refactored/stop-hard-coding-your-looker-agent-lookml-strategy-for-agile-context-a7bb99c3fd9d">Stop Hard-coding Your Looker Agent: LookML Strategy for Agile Context</a> was originally published in <a href="https://medium.com/refined-and-refactored">Joon Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>