<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aryan Irani</title>
    <description>The latest articles on DEV Community by Aryan Irani (@aryanirani123).</description>
    <link>https://dev.to/aryanirani123</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F754479%2F1d1fdf42-b44b-4b4b-beba-7125aa2a60e7.jpeg</url>
      <title>DEV Community: Aryan Irani</title>
      <link>https://dev.to/aryanirani123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aryanirani123"/>
    <language>en</language>
    <item>
      <title>Under the Hood of Google Cloud Data Agent Kit: MCP Tools, SKILL.md Playbooks &amp; Custom Guardrails</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Fri, 27 Nov 2026 08:24:57 +0000</pubDate>
      <link>https://dev.to/gde/under-the-hood-of-google-cloud-data-agent-kit-mcp-tools-skillmd-playbooks-custom-guardrails-4568</link>
      <guid>https://dev.to/gde/under-the-hood-of-google-cloud-data-agent-kit-mcp-tools-skillmd-playbooks-custom-guardrails-4568</guid>
      <description>&lt;p&gt;Welcome&amp;nbsp;!&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://dev.to/gde/getting-started-with-google-cloud-data-agent-kit-in-antigravity-ide-ac0"&gt;Part 1&lt;/a&gt;, we set up Google Cloud Data Agent Kit (DAK) in Antigravity IDE and stayed mostly on the UI side that looked at browsing Cloud Storage, previewing BigQuery tables, and running inline SQL through the Mini Cloud Console.&lt;/p&gt;

&lt;p&gt;Remember that two-lane architecture from Part 1?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lane 1 (IDE UI)&lt;/strong&gt; talks to Google Cloud over direct Cloud APIs so browsing tables and schemas is instant and burns zero LLM tokens.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lane 2 (AI Coding Agent)&lt;/strong&gt; is where the real automation happens - combining &lt;strong&gt;MCP Tools&lt;/strong&gt; and &lt;strong&gt;Agentic Skills&lt;/strong&gt; (&lt;code&gt;SKILL.md&lt;/code&gt;).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When people hear Agentic Skills or MCP, it can easily sound like black-box buzzwords. In this post, we're going to open the hood in Antigravity IDE, see what Google Cloud engineers actually put inside a &lt;code&gt;SKILL.md&lt;/code&gt; file, and then put both MCP tools and Skills to work on our &lt;code&gt;devfest_commerce&lt;/code&gt; dataset.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Giving an LLM Raw Database Access Isn't&amp;nbsp;Enough
&lt;/h2&gt;

&lt;p&gt;Giving an AI coding assistant an MCP connection to BigQuery solves context,  it can read your live schemas instead of guessing table and column names.&lt;/p&gt;

&lt;p&gt;But live access alone doesn't make an agent a good data engineer. Without guidance, a general-purpose model will still happily:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write SELECT * on a 10 TB table&lt;/li&gt;
&lt;li&gt;Use slower WHERE id IN (SELECT&amp;nbsp;...) subqueries instead of WHERE EXISTS&lt;/li&gt;
&lt;li&gt;Skip partition filters or cluster keys&lt;/li&gt;
&lt;li&gt;Run a DROP TABLE or TRUNCATE without double-checking if you phrase a cleanup prompt loosely&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the gap between connecting an agent to your data and teaching it how to work safely and efficiently with Google Data Cloud.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hands vs. Brains: MCP Tools vs. Agentic&amp;nbsp;Skills
&lt;/h2&gt;

&lt;p&gt;Data Agent Kit splits that responsibility into two clean pieces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;MCP Tools ("The Hands"):&lt;/strong&gt; Live Model Context Protocol connectors that let the agent call Google Cloud APIs - listing datasets, reading table schemas, inspecting Cloud Storage objects, or executing queries - without you copy-pasting metadata into chat.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agentic Skills ("The Brains"):&lt;/strong&gt; Plain, open-source Markdown files (&lt;code&gt;SKILL.md&lt;/code&gt;) written by Google Cloud engineers. They contain explicit rules, decision trees, and checklists for specific workflows like BigQuery SQL optimization, data cleaning, dbt/Dataform pipelines, Spark debugging, and data-loss prevention.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 1: Ask the Agent What It Actually Has&amp;nbsp;Enabled
&lt;/h3&gt;

&lt;p&gt;Before digging into files, try this exact prompt I ran during my DevFest Mangaluru demo inside the Antigravity Agent Chat panel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;What Data Agent Kit skills and MCP tools do you currently have enabled for BigQuery and Cloud Storage? Group them briefly into "Skills (Playbooks)" and "MCP Tools (Actions)" so we can see how you work.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Finy2j6ae0qtl53b23gxm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Finy2j6ae0qtl53b23gxm.png" alt=" " width="800" height="689"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will see the agent separate its &lt;strong&gt;actions&lt;/strong&gt; (MCP tools for inspecting datasets, tables, and buckets) from its &lt;strong&gt;playbooks&lt;/strong&gt; (skills like &lt;code&gt;bigquery-sql&lt;/code&gt;, &lt;code&gt;data-autocleaning&lt;/code&gt;, g&lt;code&gt;oogle-cloud-storage-basics&lt;/code&gt;, and &lt;code&gt;accidental-data-loss-prevention&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxmeczmh6cfjh3778ix08.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxmeczmh6cfjh3778ix08.png" alt=" " width="800" height="768"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Opening a Real SKILL.md File Inside Antigravity IDE
&lt;/h2&gt;

&lt;p&gt;A Skill isn't hidden compiled code or a proprietary prompt locked on a server&amp;nbsp;, instead it is a plain Markdown file sitting right on your machine.&lt;/p&gt;

&lt;p&gt;Under &lt;code&gt;~/.gemini/config/plugins/dak/&lt;/code&gt;, DAK organizes its bundled skills into two folders:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;skills/ -&lt;/strong&gt; Your currently enabled skills based on the services you turned on.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;skills.all/ -&lt;/strong&gt; All bundled skills (including ones like Bigtable or Airflow/Composer that activate if you enable those services later).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: If you installed the IDE extension rather than the CLI plugin, the bundled skills live inside your editor's extension folder under &lt;code&gt;~/.antigravity/extensions/googlecloudtools.datacloud-*&lt;/code&gt; or &lt;code&gt;~/.vscode/extensions/googlecloudtools.datacloud-*&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You can inspect any skill straight from your terminal or open it directly in Antigravity IDE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# List every enabled SKILL.md&lt;/span&gt;
ls ~/.gemini/config/plugins/dak/skills/*/SKILL.md

&lt;span class="c"&gt;# Preview the name &amp;amp; description header of all enabled skills at once&lt;/span&gt;
head -n 8 ~/.gemini/config/plugins/dak/skills/*/SKILL.md

&lt;span class="c"&gt;# Read a specific skill&lt;/span&gt;
cat ~/.gemini/config/plugins/dak/skills/bigquery-sql/SKILL.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the &lt;code&gt;bigquery-sql/SKILL.md&lt;/code&gt; file:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9ajg8tdekrhxqq9su07.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9ajg8tdekrhxqq9su07.png" alt=" " width="799" height="710"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting It to Work: Live Demos on the&amp;nbsp;Dataset
&lt;/h2&gt;

&lt;p&gt;Now that you've seen how MCP Tools and SKILL.md are wired up, let's watch them work together on the devfest_commerce dataset we created in Part 1.&lt;/p&gt;

&lt;h3&gt;
  
  
  Demo 1: Load raw_orders_batch.json From Cloud Storage Into BigQuery (MCP&amp;nbsp;Tools)
&lt;/h3&gt;

&lt;p&gt;Right now, &lt;code&gt;raw_orders_batch.json&lt;/code&gt; is sitting in Cloud Storage (&lt;code&gt;gs://&amp;lt;YOUR_BUCKET_NAME&amp;gt;/incoming/raw_orders_batch.json&lt;/code&gt;), while &lt;code&gt;dim_customers&lt;/code&gt; is already in BigQuery. Instead of writing a &lt;code&gt;bq load&lt;/code&gt; command by hand, paste this into &lt;strong&gt;Antigravity Agent Chat&lt;/strong&gt; (swapping in your bucket name and project ID):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Look inside my Cloud Storage bucket gs://&amp;lt;YOUR_BUCKET_NAME&amp;gt;/incoming/raw_orders_batch.json. Inspect the raw JSON records and load them into a new BigQuery table named &amp;lt;YOUR_PROJECT_ID&amp;gt;.devfest_commerce.raw_orders (in location US).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before loading anything, watch how the agent structures the work into a 4-step plan:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Verify GCP auth and config&lt;/strong&gt; (triggered by DAK's google-cloud-auth-verification skill-checking active account and project first)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Inspect GCS JSON file&lt;/strong&gt; (reads raw_orders_batch.json: 1,327 bytes, NDJSON, 8 records)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Load JSON into BigQuery table&lt;/strong&gt; (devfest_commerce.raw_orders in location US)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Verify BigQuery table and records&lt;/strong&gt; (confirms 8 rows, 539 logical bytes, and inferred schema types like amount FLOAT64 and order_date DATE)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8h0263y8fzda8usas5vj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8h0263y8fzda8usas5vj.png" alt=" " width="800" height="906"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What stood out in the agent's output wasn't just that it loaded the table - without being asked, it also surfaced &lt;strong&gt;Data Quality Observations&lt;/strong&gt; while keeping the raw landing table untouched:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Duplicate record: ORD-1002 appears twice.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Missing key / flagged order: 1 row has order_id = NULL (CUST-999, FLAGGED, Mumbai).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi2jqdu869xmxtwxc4iu2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi2jqdu869xmxtwxc4iu2.png" alt=" " width="618" height="1024"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;High-value refund requests: ORD-1003 (2400.00) and ORD-1005 (3100.00) are both REFUND_REQUESTED Electronics orders in Mangaluru on 2026-11-11.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy5bzj271nlitd4wph6df.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy5bzj271nlitd4wph6df.png" alt=" " width="780" height="1024"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Even better, at the end of its response it immediately noticed dim_customers sitting in the same dataset and asked if we wanted to build a cleaned/deduplicated downstream table or join them-which is exactly what we'll do in Part 3.&lt;/p&gt;

&lt;p&gt;Hit &lt;strong&gt;Refresh&lt;/strong&gt; on devfest_commerce in the BigQuery sidebar and click &lt;strong&gt;raw_orders&lt;/strong&gt; to verify all 8 rows right inside the Mini Cloud Console:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe5qcq2sqtlm15vzbonyb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe5qcq2sqtlm15vzbonyb.png" alt=" " width="800" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Demo 2: Watch bigquery-sql/SKILL.md Optimize a Query&amp;nbsp;Live
&lt;/h3&gt;

&lt;p&gt;Now that both &lt;strong&gt;dim_customers&lt;/strong&gt; and &lt;strong&gt;raw_orders&lt;/strong&gt; are in BigQuery, let's test the &lt;strong&gt;bigquery-sql&lt;/strong&gt; skill we just opened by handing the agent a deliberately clunky query (&lt;strong&gt;SELECT ***, unquoted hyphenated project ID, and an IN (&lt;/strong&gt;SELECT&amp;nbsp;...**) subquery):&lt;/p&gt;

&lt;p&gt;Optimize this BigQuery SQL query for performance and cost, and explain what you changed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;project2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;283514&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;devfest_commerce&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dim_customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;customer_id&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;customer_id&lt;/span&gt;
  &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;project2&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;283514&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;devfest_commerce&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;raw_orders&lt;/span&gt;
  &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'REFUND_REQUESTED'&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Following &lt;code&gt;bigquery-sql/SKILL.md&lt;/code&gt; and inspecting both live tables in BigQuery first-the agent rewrites it cleanly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
  &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customer_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;signup_year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;preferred_channel&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="sb"&gt;`project2-283514.devfest_commerce.dim_customers`&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
  &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="sb"&gt;`project2-283514.devfest_commerce.raw_orders`&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;
  &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt;
    &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'REFUND_REQUESTED'&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look at how &lt;strong&gt;MCP Tools + SKILL.md&lt;/strong&gt; combined in that single response:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live metadata lookup:&lt;/strong&gt; Instead of guessing columns, it checked &lt;code&gt;dim_customers&lt;/code&gt; (6 rows, 298 bytes, unpartitioned) and
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;raw_orders
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(8 rows, 539 bytes, unpartitioned), pulled the exact 5 columns, and confirmed no partition filter was missing yet.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Exact &lt;code&gt;bigquery-sql/SKILL.md&lt;/code&gt; rules applied:&lt;/strong&gt; Replaced &lt;code&gt;SELECT *&lt;/code&gt; with explicit columns (Column Pruning), rewrote WHERE customer_id IN (SELECT&amp;nbsp;...) to WHERE EXISTS (SELECT 1&amp;nbsp;...) (Mandatory Semi-Join rule), backtick-quoted the hyphenated project ID, and output the exact "Summary of Optimizations" section required by the skill.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Scale &amp;amp; cost check:&lt;/strong&gt; It even flagged how to partition &lt;code&gt;raw_orders&lt;/code&gt; by order_date and cluster by (&lt;strong&gt;status&lt;/strong&gt;, &lt;strong&gt;customer_id&lt;/strong&gt;) once the table grows, and gave a free &lt;code&gt;bq --dry_run&lt;/code&gt; command to verify &lt;strong&gt;totalBytesProcessed&lt;/strong&gt; before running.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7wa44aw6gq3u7b3nom01.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7wa44aw6gq3u7b3nom01.png" alt=" " width="800" height="1233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvx76gww1jqq2er8owj7v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvx76gww1jqq2er8owj7v.png" alt=" " width="800" height="1233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Demo 3: Quick Safety Check (accidental-data-loss-prevention)
&lt;/h3&gt;

&lt;p&gt;One fair question that always comes up: "If the agent has &lt;code&gt;execute_sql&lt;/code&gt;, what stops it from accidentally dropping a table?"&lt;/p&gt;

&lt;p&gt;Try typing this in chat (and don't confirm it!):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;Drop&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;devfest_commerce&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dim_customers&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Watch the two-step safety flow that happens:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;First, Antigravity asks for your approval to call the read-only &lt;code&gt;get_table_info&lt;/code&gt; MCP tool so the agent can inspect the table's exact blast radius.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, instead of running DROP TABLE, DAK's &lt;code&gt;accidental-data-loss-prevention&lt;/code&gt; skill forces the agent to halt and print a structured impact report-showing the exact target table (6 rows, 298 logical bytes), warning that downstream views or pipelines will break (and noting BigQuery time travel as the only recovery path), displaying the exact DROP TABLE SQL it plans to run, and waiting for explicit confirmation.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That said, always treat Markdown skills as &lt;strong&gt;guardrails&lt;/strong&gt;,** not your only security wall*&lt;em&gt;. Because DAK runs on your Application Default Credentials (or a service account), **Google Cloud IAM&lt;/em&gt;* is still the hard boundary - if an account only has read-only roles like roles/bigquery.dataViewer, Google Cloud itself will reject any destructive write.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn7d7sud581oyo6699e4x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn7d7sud581oyo6699e4x.png" alt=" " width="800" height="1225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Stepping Back: This Isn't Just About Running Faster&amp;nbsp;Queries
&lt;/h2&gt;

&lt;p&gt;Take a quick look at what just happened across three short demos, without opening the Cloud Console, writing a bq load command, or copy-pasting a single schema, the agent verified our GCP auth, loaded raw JSON from Cloud Storage into BigQuery, flagged three data quality issues on its own, rewrote a query using BigQuery's own best practices, and stopped a DROP TABLE with a full impact report.&lt;/p&gt;

&lt;p&gt;There is a great point making the rounds among developers right now,  traditional GUIs only let you do what someone designed a button for, whereas an LLM connected directly to your database speaks SQL, writes code, and isn't boxed in by a predefined interface. The real-world catch is that an LLM with raw database access alone can also be reckless. Pairing it with MCP Tools (live metadata), SKILL.md playbooks (engineering discipline), and IAM (hard security boundaries) is what makes that workflow actually usable day to day.&lt;/p&gt;

&lt;p&gt;And in this post, we only turned on two services (BigQuery and Cloud Storage) and saw three skills fire out of the dozens bundled in DAK. If you want to keep experimenting on your own before Part 3, here are a few more things worth trying right inside Antigravity IDE:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Run a quick GCS security check&lt;/strong&gt; on your demo bucket to see gcs-security-assessment inspect public access and bucket settings.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open a couple more SKILL.md files in &lt;code&gt;~/.gemini/config/plugins/dak/skills/&lt;/code&gt; (like &lt;code&gt;data-autocleaning&lt;/code&gt;, &lt;code&gt;bigquery-ai-ml&lt;/code&gt;, or &lt;code&gt;building-data-apps&lt;/code&gt;) to see how Google structures playbooks for other workflows.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Test a read-only analytical question across raw_orders and &lt;code&gt;dim_customers&lt;/code&gt; such as breaking down order volume and refunds by customer tier and inspect the results or chart right inside the IDE.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Try turning on another service&lt;/strong&gt; in DAK Settings (like Spark, Dataform/dbt, Bigtable, or Knowledge Catalog) if you already use it in your GCP project.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Now that &lt;code&gt;raw_orders&lt;/code&gt; and &lt;code&gt;dim_customers&lt;/code&gt; are both sitting in BigQuery and you've seen how MCP tools and SKILL.md playbooks actually behave, we're ready to run a complete end-to-end data workflow.&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;Part 3&lt;/strong&gt;, we'll put DAK to work on the messy records we spotted in raw_orders (the duplicate ORD-1002, the null order ID, and the high-value Mangaluru refund spike), build a clean enriched table, and verify the agent's output like a production engineer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let’s Connect
&lt;/h2&gt;

&lt;p&gt;I’m an Independent Consultant and Google Developer Expert (GDE) partnering with startups and early-stage SaaS teams on &lt;strong&gt;Developer Experience (DevEx) and GTM content&lt;/strong&gt; — helping teams ship clearer docs, stronger demos, developer tutorials, live workshops, and repeatable content engines across Google Cloud, Google Workspace, and AI workflows.&lt;/p&gt;

&lt;p&gt;If you want to follow the rest of this series (blogs, YouTube walkthroughs, live trainings, and quick LinkedIn/X posts) — or if you’re building developer tools, scaling SaaS adoption, or looking for a technical writer, trainer, or DevEx partner — let’s connect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Socials:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/in/aryanirani123/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; &amp;amp; &lt;a href="https://x.com/aryanirani123" rel="noopener noreferrer"&gt;X&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@AryanIrani123" rel="noopener noreferrer"&gt;@aryanirani123&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blogs &amp;amp; Tutorials:&lt;/strong&gt; &lt;a href="https://aryanirani123.medium.com/" rel="noopener noreferrer"&gt;Medium&lt;/a&gt; | &lt;a href="https://dev.to/aryanirani123"&gt;DEV.to&lt;/a&gt; | &lt;a href="https://aryanirani123.com/" rel="noopener noreferrer"&gt;aryanirani123.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>cloud</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Getting Started with Google Cloud Data Agent Kit in Antigravity IDE</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Thu, 26 Nov 2026 09:45:11 +0000</pubDate>
      <link>https://dev.to/gde/getting-started-with-google-cloud-data-agent-kit-in-antigravity-ide-ac0</link>
      <guid>https://dev.to/gde/getting-started-with-google-cloud-data-agent-kit-in-antigravity-ide-ac0</guid>
      <description>&lt;p&gt;At &lt;a href="https://lnkd.in/p/de_Rx9Qf" rel="noopener noreferrer"&gt;DevFest Mangaluru 2026&lt;/a&gt;, I opened my session on Google Cloud Data Agent Kit with three quick questions for the room:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Quick show of hands&amp;nbsp;,  how many of you use BigQuery or Cloud Storage at work or in side projects?&lt;br&gt;
Keep your hands up if you also use an AI coding tool like Antigravity, Cursor, VS Code, or Claude Code.&lt;br&gt;
Now, be honest: how many browser tabs do you usually have open when debugging a data pipeline or inspecting a BigQuery table? Five? Fifteen?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Only a few hands stayed up through all three questions, but the moment I got to the last one, the pain point clicked for everyone,  jumping between browser tabs for Cloud Storage, BigQuery, and IAM, and manually copying schemas or logs back into an editor just to get work done.&lt;/p&gt;

&lt;p&gt;Between that session and more talks, workshops, and trainings I am planning around Google Cloud Data Agent Kit, I wanted to organize everything I have been building and demoing into one clear learning series. Over the next several posts (followed by YouTube tutorials and live sessions), we will go step by step from setup to real agentic data workflows backed by resources that you can use yourself.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In this first post, we'll keep things practical: what Data Agent Kit actually solves, how it connects your IDE to Google Cloud under the hood, a step-by-step setup in Antigravity IDE, a quick tour of the built-in Mini Cloud Console, and where to grab it if you use another IDE or CLI.&lt;/p&gt;

&lt;p&gt;Let's dive in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before Data Agent Kit: Setup Friction and Context Switching
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0txm9u4636tw8m1jo9uh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0txm9u4636tw8m1jo9uh.png" alt=" " width="799" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have followed my earlier articles on &lt;a href="https://github.com/googleapis/mcp-toolbox" rel="noopener noreferrer"&gt;MCP Toolbox for Databases&lt;/a&gt; or &lt;a href="https://docs.cloud.google.com/bigquery/docs/conversational-analytics" rel="noopener noreferrer"&gt;Conversational Analytics in BigQuery&lt;/a&gt;, you already know how powerful connecting AI agents to live enterprise data can be - and you also know how painful setting it up used to be.&lt;/p&gt;

&lt;p&gt;Before Data Agent Kit, connecting your coding assistant to Google Cloud Data services meant dealing with three things at once:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Skill Overload: Dozens of repositories and 135+ community skills floating around GitHub, which ones are actually maintained and safe for BigQuery or Spark?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;MCP Confusion: Should you install the open-source MCP Toolbox, managed Google Cloud MCP servers, or roll your own? Which of the 70+ MCP servers do you actually need?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Setup &amp;amp; OAuth Hell: Manually editing JSON config files, debugging config missing errors, and working with OAuth tokens before you even run a single query.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;If you didn't set up MCP, you were stuck bouncing between browser tabs and the editor, pasting schemas and errors back and forth just to get a working query.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Enter Google Cloud Data Agent Kit&amp;nbsp;(DAK)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://cloud.google.com/products/data-agent-kit?hl=en" rel="noopener noreferrer"&gt;Google Cloud Data Agent Kit&lt;/a&gt; (which I'll refer to as DAK for the rest of this article) is a free developer kit featuring open-source agent skills and plugins that brings 15+ Google Data Cloud services (BigQuery, Cloud Storage, Spanner, AlloyDB, Cloud SQL, Bigtable, Managed Service for Apache Spark, Dataflow, Knowledge Catalog, and more) directly into the IDE or CLI you already use.&lt;/p&gt;

&lt;p&gt;Instead of forcing data practitioners into yet another browser UI, DAK meets you where you write code through three core pillars:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Agentic Skills (The Brains):&lt;/strong&gt; Plain open-source Markdown files &lt;code&gt;(SKILL.md)&lt;/code&gt; written by Google Cloud engineers. Instead of hoping the model guesses the right approach, these files teach it how to handle BigQuery SQL optimization, data cleaning, dbt/Dataform pipelines, Spark debugging, ML workflows, and security/governance guardrails.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;MCP Servers &amp;amp; Tools ("The Hands"):&lt;/strong&gt; Model Context Protocol connectors that work with both Google's managed MCP servers and the open-source MCP Toolbox for Databases. This is what lets your agent read live schemas, preview buckets, and run queries on its own so you don't have to copy-paste context manually.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;IDE Extensions &amp;amp; CLI Plugins:&lt;/strong&gt; Extensions that add Data Agent Kit panels right into VS Code, Antigravity IDE, and Cursor (and come pre-installed in Cloud Shell and Cloud Workstations), plus plugins if you prefer working in the terminal with Claude Code, Codex CLI, or Antigravity CLI.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Pricing note:&lt;/strong&gt; Data Agent Kit itself is &lt;strong&gt;100% free&lt;/strong&gt;. You only pay for your normal Google Cloud usage (e.g., BigQuery bytes processed) and whatever AI model/editor you already use.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How Data Agent Kit Works Under the&amp;nbsp;Hood
&lt;/h2&gt;

&lt;p&gt;One useful detail to understand early is how Data Agent Kit talks to Google Cloud. It does not route everything through the LLM. Instead, it uses a &lt;strong&gt;two-lane architecture&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb14lp5u3g7oqjzu2vrhi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb14lp5u3g7oqjzu2vrhi.png" alt=" " width="800" height="774"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lane 1 - IDE UI (Direct Cloud APIs):&lt;/strong&gt; When you expand a BigQuery dataset, preview rows, or browse a Cloud Storage bucket in the sidebar, the extension calls Google Cloud APIs directly. It renders instantly and consumes zero LLM context tokens.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lane 2 - Coding Agent (MCP Tools + Skills):&lt;/strong&gt; When you ask the agent in chat to audit a messy JSON file, optimize a query, or generate a dbt model, it invokes MCP tools for live metadata and follows SKILL.md playbooks so its output adheres to Google Cloud best practices.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We will dissect &lt;code&gt;SKILL.md&lt;/code&gt; vs. MCP Tools in deep detail in &lt;strong&gt;Part 2&lt;/strong&gt;. First, let's get you set up in a few minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step-by-Step: Installing &amp;amp; Setting Up Data Agent Kit in Antigravity IDE
&lt;/h2&gt;

&lt;p&gt;Let's walk through the exact setup flow I ran live on stage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;p&gt;Before you start, make sure you have:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Antigravity IDE installed on your machine (or another supported editor like VS Code or Cursor).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Google Cloud CLI (gcloud) installed and authenticated. Verify in your terminal:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gcloud --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0vvf4gzw4cvfxjijgji9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0vvf4gzw4cvfxjijgji9.png" alt=" " width="800" height="494"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(If not installed, grab it from the &lt;a href="//cloud.google.com/sdk/docs/install"&gt;Google Cloud SDK&lt;/a&gt; install guide. Make sure gcloud and your IDE are signed into the same Google Cloud user account and project.)&lt;/p&gt;

&lt;p&gt;3.A Google Cloud Project with billing enabled. For this walkthrough, make sure the BigQuery API &lt;code&gt;(bigquery.googleapis.com)&lt;/code&gt; and Cloud Storage API &lt;code&gt;(storage.googleapis.com)&lt;/code&gt; are enabled — these aren’t required just to install DAK itself, only because BigQuery and Cloud Storage are the two services we’re connecting in this post.&lt;/p&gt;

&lt;p&gt;4.IAM Permissions: Your Google Cloud user (or service account) should have &lt;code&gt;roles/mcp.toolUser&lt;/code&gt; (for Google-managed MCP servers) alongside standard data roles like &lt;code&gt;roles/bigquery.user&lt;/code&gt;, &lt;code&gt;roles/bigquery.dataViewer&lt;/code&gt;, and &lt;code&gt;roles/storage.objectViewer&lt;/code&gt; (or &lt;code&gt;roles/editor&lt;/code&gt; in a personal sandbox project).&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Authenticate with Application Default Credentials (ADC)
&lt;/h2&gt;

&lt;p&gt;Data Agent Kit uses your local Google Cloud credentials so you never have to hardcode API keys or wrestle with manual OAuth JSON files.&lt;/p&gt;

&lt;p&gt;Run these two commands in your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Sign in to gcloud and set your active project&lt;/span&gt;
gcloud auth login
gcloud config &lt;span class="nb"&gt;set&lt;/span&gt; project &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;YOUR_PROJECT_ID&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;# 2. Generate Application Default Credentials (used by DAK &amp;amp; MCP servers)&lt;/span&gt;
gcloud auth application-default login
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3brybe8ukswib7xxc2sx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3brybe8ukswib7xxc2sx.png" alt=" " width="800" height="488"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Verify that ADC is active (without printing your raw token to the terminal):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gcloud auth application-default print-access-token &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /dev/null 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1 &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"ADC_OK"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"ADC_MISSING"&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq7u6agbhfo02gnw0syur.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq7u6agbhfo02gnw0syur.png" alt=" " width="800" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you see ADC_OK, you are ready for the IDE setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Install the Google Cloud Data Agent Kit Plugin in Antigravity IDE
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open Antigravity IDE.&lt;/li&gt;
&lt;li&gt;Open the Extensions panel from the left Activity Bar (or press &lt;code&gt;Ctrl+Shift+X / Cmd+Shift+X)&lt;/code&gt;. Search for &lt;strong&gt;Google Cloud Data Agent Kit&lt;/strong&gt; and click &lt;strong&gt;Install&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxtr1je9y6khje11lpabc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxtr1je9y6khje11lpabc.png" alt=" " width="800" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Restart the IDE if prompted. Once installed, the Google Cloud Data Agent Kit icon appears in the left Activity Bar.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwxzpehnty0hi24m4wu1m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwxzpehnty0hi24m4wu1m.png" alt=" " width="800" height="856"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Sign in to the extension: Follow the sign-in prompt (or click the Google Cloud Data Agent Kit sign-in link in the bottom status bar) and complete the browser OAuth flow using the same Google account you used in Step 1.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: 1-Click Project &amp;amp; Service Configuration
&lt;/h2&gt;

&lt;p&gt;This is the just works moment that replaces hours of manual MCP JSON editing:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click the &lt;strong&gt;Google Cloud Data Agent Kit&lt;/strong&gt; icon in the left Activity Bar.&lt;/li&gt;
&lt;li&gt;Expand &lt;strong&gt;Settings&lt;/strong&gt; at the bottom of the panel and click &lt;strong&gt;Settings&lt;/strong&gt; to launch the Configuration UI tab.&lt;/li&gt;
&lt;li&gt;On the &lt;strong&gt;Common&lt;/strong&gt; tab, select your active &lt;strong&gt;Project ID&lt;/strong&gt; and default &lt;strong&gt;Region&lt;/strong&gt; (for example, US or us-central1) and click &lt;strong&gt;Save&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Switch to the &lt;strong&gt;Service Integrations&lt;/strong&gt; tab, check the boxes for the services you actually need right now, start with:

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;BigQuery&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cloud Storage&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click Next (the extension will automatically verify that your required APIs and IAM roles are enabled) and save your changes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;What just happened behind the scenes?&lt;/strong&gt; The moment you checked those two boxes, Data Agent Kit automatically:&lt;/p&gt;

&lt;p&gt;— &lt;strong&gt;Registered and authenticated&lt;/strong&gt; the exact MCP servers for BigQuery and Cloud Storage using your local Google Cloud credentials. — &lt;strong&gt;Loaded only the curated Agentic Skills&lt;/strong&gt; for those services — preventing context bloat from dozens of unrelated services and tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Set Up the Demo Bucket and Table (Optional)
&lt;/h2&gt;

&lt;p&gt;If you already have tables and buckets in your GCP project, you can skip this step and use your own data.&lt;/p&gt;

&lt;p&gt;For my DevFest Mangaluru session, I didn’t want to pull a massive public dataset with 40 columns just to show a simple workflow , so I put together a small e-commerce sample dataset &lt;code&gt;(devfest_commerce)&lt;/code&gt; that fits comfortably within Google Cloud’s free tier and that we will reuse across this series. It consists of just two files:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;dim_customers.csv&lt;/code&gt; — a small customer dimension table loaded straight into BigQuery, which we'll use in the next section to test schema inspection, table previews, and inline queries.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;raw_orders_batch.json&lt;/code&gt; — a raw JSON batch uploaded to a Cloud Storage bucket, with a few realistic data quality issues mixed in (a duplicate order, a missing order_id, and a couple of unusual refund rows) that we'll let the agent dig into later in the series.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It takes less than a minute to spin up, costs practically nothing to run, and gives you real assets in both Cloud Storage and BigQuery to work with. Run this snippet in your terminal to create the bucket, upload &lt;code&gt;raw_orders_batch.json&lt;/code&gt;, and load &lt;code&gt;dim_customers&lt;/code&gt; into BigQuery:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;PROJECT_ID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;gcloud config get-value project&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;BUCKET_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${PROJECT_ID}-dak-demo"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;DATASET_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"devfest_commerce"&lt;/span&gt;

&lt;span class="c"&gt;# 1. Create a Cloud Storage bucket and BigQuery dataset&lt;/span&gt;
gcloud storage buckets create gs://&lt;span class="nv"&gt;$BUCKET_NAME&lt;/span&gt; --location=US
bq --location=US mk --dataset &lt;span class="nv"&gt;$PROJECT_ID&lt;/span&gt;:&lt;span class="nv"&gt;$DATASET_NAME&lt;/span&gt;

&lt;span class="c"&gt;# 2. Create and load the customer dimension table&lt;/span&gt;
cat &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="s1"&gt;'EOF'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; dim_customers.csv
customer_id,customer_name,tier,signup_year,preferred_channel
CUST-501,Adarsh Prabhu,Platinum,2024,Mobile App
CUST-502,Shruthika Bhandary,Gold,2025,Web
CUST-503,Mohsin Khan,Platinum,2023,Mobile App
CUST-504,Rohan Shetty,Silver,2025,Web
CUST-505,Priya Kamath,Gold,2024,Mobile App
CUST-506,Karthik Rao,Standard,2026,Web
EOF

bq --location=US load --autodetect --source_format=CSV --replace \
  &lt;span class="nv"&gt;$PROJECT_ID&lt;/span&gt;:&lt;span class="nv"&gt;$DATASET_NAME&lt;/span&gt;.dim_customers dim_customers.csv

&lt;span class="c"&gt;# 3. Create and upload the raw incoming orders JSON batch to GCS&lt;/span&gt;
cat &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="s1"&gt;'EOF'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; raw_orders_batch.json
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"order_id"&lt;/span&gt;: &lt;span class="s2"&gt;"ORD-1001"&lt;/span&gt;, &lt;span class="s2"&gt;"customer_id"&lt;/span&gt;: &lt;span class="s2"&gt;"CUST-501"&lt;/span&gt;, &lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"Electronics"&lt;/span&gt;, &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 450.00, &lt;span class="s2"&gt;"status"&lt;/span&gt;: &lt;span class="s2"&gt;"COMPLETED"&lt;/span&gt;, &lt;span class="s2"&gt;"city"&lt;/span&gt;: &lt;span class="s2"&gt;"Mangaluru"&lt;/span&gt;, &lt;span class="s2"&gt;"order_date"&lt;/span&gt;: &lt;span class="s2"&gt;"2026-11-10"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"order_id"&lt;/span&gt;: &lt;span class="s2"&gt;"ORD-1002"&lt;/span&gt;, &lt;span class="s2"&gt;"customer_id"&lt;/span&gt;: &lt;span class="s2"&gt;"CUST-502"&lt;/span&gt;, &lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"Apparel"&lt;/span&gt;, &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 65.50, &lt;span class="s2"&gt;"status"&lt;/span&gt;: &lt;span class="s2"&gt;"COMPLETED"&lt;/span&gt;, &lt;span class="s2"&gt;"city"&lt;/span&gt;: &lt;span class="s2"&gt;"Bengaluru"&lt;/span&gt;, &lt;span class="s2"&gt;"order_date"&lt;/span&gt;: &lt;span class="s2"&gt;"2026-11-10"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"order_id"&lt;/span&gt;: &lt;span class="s2"&gt;"ORD-1002"&lt;/span&gt;, &lt;span class="s2"&gt;"customer_id"&lt;/span&gt;: &lt;span class="s2"&gt;"CUST-502"&lt;/span&gt;, &lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"Apparel"&lt;/span&gt;, &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 65.50, &lt;span class="s2"&gt;"status"&lt;/span&gt;: &lt;span class="s2"&gt;"COMPLETED"&lt;/span&gt;, &lt;span class="s2"&gt;"city"&lt;/span&gt;: &lt;span class="s2"&gt;"Bengaluru"&lt;/span&gt;, &lt;span class="s2"&gt;"order_date"&lt;/span&gt;: &lt;span class="s2"&gt;"2026-11-10"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"order_id"&lt;/span&gt;: null, &lt;span class="s2"&gt;"customer_id"&lt;/span&gt;: &lt;span class="s2"&gt;"CUST-999"&lt;/span&gt;, &lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"Electronics"&lt;/span&gt;, &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 1299.00, &lt;span class="s2"&gt;"status"&lt;/span&gt;: &lt;span class="s2"&gt;"FLAGGED"&lt;/span&gt;, &lt;span class="s2"&gt;"city"&lt;/span&gt;: &lt;span class="s2"&gt;"Mumbai"&lt;/span&gt;, &lt;span class="s2"&gt;"order_date"&lt;/span&gt;: &lt;span class="s2"&gt;"2026-11-10"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"order_id"&lt;/span&gt;: &lt;span class="s2"&gt;"ORD-1003"&lt;/span&gt;, &lt;span class="s2"&gt;"customer_id"&lt;/span&gt;: &lt;span class="s2"&gt;"CUST-503"&lt;/span&gt;, &lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"Electronics"&lt;/span&gt;, &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 2400.00, &lt;span class="s2"&gt;"status"&lt;/span&gt;: &lt;span class="s2"&gt;"REFUND_REQUESTED"&lt;/span&gt;, &lt;span class="s2"&gt;"city"&lt;/span&gt;: &lt;span class="s2"&gt;"Mangaluru"&lt;/span&gt;, &lt;span class="s2"&gt;"order_date"&lt;/span&gt;: &lt;span class="s2"&gt;"2026-11-11"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"order_id"&lt;/span&gt;: &lt;span class="s2"&gt;"ORD-1004"&lt;/span&gt;, &lt;span class="s2"&gt;"customer_id"&lt;/span&gt;: &lt;span class="s2"&gt;"CUST-504"&lt;/span&gt;, &lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"Home"&lt;/span&gt;, &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 120.00, &lt;span class="s2"&gt;"status"&lt;/span&gt;: &lt;span class="s2"&gt;"COMPLETED"&lt;/span&gt;, &lt;span class="s2"&gt;"city"&lt;/span&gt;: &lt;span class="s2"&gt;"Pune"&lt;/span&gt;, &lt;span class="s2"&gt;"order_date"&lt;/span&gt;: &lt;span class="s2"&gt;"2026-11-11"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"order_id"&lt;/span&gt;: &lt;span class="s2"&gt;"ORD-1005"&lt;/span&gt;, &lt;span class="s2"&gt;"customer_id"&lt;/span&gt;: &lt;span class="s2"&gt;"CUST-505"&lt;/span&gt;, &lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"Electronics"&lt;/span&gt;, &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 3100.00, &lt;span class="s2"&gt;"status"&lt;/span&gt;: &lt;span class="s2"&gt;"REFUND_REQUESTED"&lt;/span&gt;, &lt;span class="s2"&gt;"city"&lt;/span&gt;: &lt;span class="s2"&gt;"Mangaluru"&lt;/span&gt;, &lt;span class="s2"&gt;"order_date"&lt;/span&gt;: &lt;span class="s2"&gt;"2026-11-11"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"order_id"&lt;/span&gt;: &lt;span class="s2"&gt;"ORD-1006"&lt;/span&gt;, &lt;span class="s2"&gt;"customer_id"&lt;/span&gt;: &lt;span class="s2"&gt;"CUST-506"&lt;/span&gt;, &lt;span class="s2"&gt;"category"&lt;/span&gt;: &lt;span class="s2"&gt;"Books"&lt;/span&gt;, &lt;span class="s2"&gt;"amount"&lt;/span&gt;: 29.99, &lt;span class="s2"&gt;"status"&lt;/span&gt;: &lt;span class="s2"&gt;"COMPLETED"&lt;/span&gt;, &lt;span class="s2"&gt;"city"&lt;/span&gt;: &lt;span class="s2"&gt;"Chennai"&lt;/span&gt;, &lt;span class="s2"&gt;"order_date"&lt;/span&gt;: &lt;span class="s2"&gt;"2026-11-12"&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt;
EOF

gcloud storage cp raw_orders_batch.json gs://&lt;span class="nv"&gt;$BUCKET_NAME&lt;/span&gt;/incoming/raw_orders_batch.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the script finishes, you should see confirmation in your terminal that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The Cloud Storage bucket &lt;code&gt;(gs://&amp;lt;YOUR_PROJECT_ID&amp;gt;-dak-demo)&lt;/code&gt; was created and &lt;code&gt;incoming/raw_orders_batch.json&lt;/code&gt; was uploaded.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;devfest_commerce&lt;/code&gt; BigQuery dataset was created and &lt;code&gt;dim_customers&lt;/code&gt; loaded with 6 rows.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tour of the “Mini Cloud Console” Inside Antigravity IDE
&lt;/h2&gt;

&lt;p&gt;Normally, right after running the commands in your terminal, your next moves would look something like this. You open Chrome, head to the Google Cloud Console, open one tab to check if raw_orders_batch.json actually landed in Cloud Storage, and open a second tab to verify the schema and rows of dim_customers in BigQuery.&lt;/p&gt;

&lt;p&gt;With Data Agent Kit, you stay right where you are. Hit the Refresh button in the Data Agent Kit sidebar inside Antigravity IDE, and you have a lightweight Mini Cloud Console built around three things you do every day:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Data Explorer (Cloud Storage + BigQuery)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Expand Cloud Storage → &lt;code&gt;&amp;lt;YOUR_PROJECT_ID&amp;gt;-dak-demo → incoming/&lt;/code&gt; → you will immediately see raw_orders_batch.json.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Expand BigQuery → &lt;code&gt;&amp;lt;YOUR_PROJECT_ID&amp;gt; → devfest_commerce&lt;/code&gt; → click dim_customers.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An interactive Table Viewer (&lt;code&gt;dim_customers.bq.table&lt;/code&gt;) opens right in your main editor pane, with tabs down the left side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data: Browse actual rows for free—without running a billable SELECT * query.&lt;/li&gt;
&lt;li&gt;Schema: Column names, types, and modes.&lt;/li&gt;
&lt;li&gt;Details: Row count, table size, partitioning, and last modified timestamp.&lt;/li&gt;
&lt;li&gt;Plus built-in views for Insights, Lineage, Relationships, Data Profile, and Data Quality.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feazyp5tdb8agb0wvt0kg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feazyp5tdb8agb0wvt0kg.png" alt=" " width="800" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Inline SQL Queries
&lt;/h3&gt;

&lt;p&gt;Need to run a quick check or aggregation without switching to BigQuery Studio? Click &lt;code&gt;+ New Query&lt;/code&gt; under &lt;strong&gt;BIGQUERY&lt;/strong&gt; in the sidebar. It opens a dedicated .sql editor tab (with a collapsible &lt;code&gt;/* @datacloud.settings */&lt;/code&gt; header for query-level settings).&lt;/p&gt;

&lt;p&gt;Paste in this query (swapping project2-283514 with your own project ID):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;tier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS customer_count FROM `&amp;lt;your_project_id&amp;gt;.devfest_commerce.dim_customers` GROUP BY tier;

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before you even hit Run, notice the live dry-run status right at the top of the editor — for this query, it tells you &lt;code&gt;This query will process 50 B when run.&lt;/code&gt; Just like BigQuery Studio in the browser, you get syntax validation and a byte estimate up front so you don't accidentally trigger an expensive full-table scan.&lt;/p&gt;

&lt;p&gt;When you execute it, the &lt;strong&gt;Query Results&lt;/strong&gt; panel opens at the bottom of the IDE with four built-in tabs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Results:&lt;/strong&gt; Shows the returned rows right away &lt;code&gt;(Platinum: 2, Gold: 2, Silver: 1, Standard: 1)&lt;/code&gt;, complete with column sorting, pagination, and a Save results option if you want to export or persist the output.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Job Information:&lt;/strong&gt; Displays job metadata like &lt;strong&gt;job ID&lt;/strong&gt;, &lt;strong&gt;status&lt;/strong&gt;, &lt;strong&gt;duration&lt;/strong&gt;, and &lt;strong&gt;bytes billed&lt;/strong&gt;.&lt;br&gt;
Visualization: Lets you plot quick charts directly from your query output without exporting to Sheets or another BI tool.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Execution details:&lt;/strong&gt; Breaks down BigQuery execution stages and timing when you need to debug or tune a heavier query.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also save queries you run often and pull them back up anytime under Saved Queries in the BigQuery sidebar—right next to &lt;strong&gt;Jobs&lt;/strong&gt; (for your query run history) and &lt;strong&gt;Data Transfers&lt;/strong&gt;. Instead of juggling browser tabs for ad-hoc SQL, digging through console history, and copy-pasting snippets back into your repo, your queries, results, and code all stay in one place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl65gxfm8rnjm1c9pk43w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl65gxfm8rnjm1c9pk43w.png" alt=" " width="800" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Visual Graphs, Lineage &amp;amp; Pipelines
&lt;/h3&gt;

&lt;p&gt;Data work isn’t just tables and SQL, a lot of debugging comes down to understanding how assets connect. Inside the Mini Cloud Console, you get visual views without jumping to separate GCP tabs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Table Lineage &amp;amp; Relationships:&lt;/strong&gt; Right inside the entity viewer (for example, &lt;code&gt;dim_customers.bq.table&lt;/code&gt;), the Lineage and Relationships tabs let you trace upstream/downstream dependencies and dataset connections directly from your editor.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgzzi2ihjeqnd0a8ljna6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgzzi2ihjeqnd0a8ljna6.png" alt=" " width="800" height="508"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;BigQuery Property Graphs:&lt;/strong&gt; Notice the &lt;strong&gt;Property Graphs&lt;/strong&gt; folder nested right inside your dataset in the sidebar. With Data Agent Kit’s support for BigQuery Graph, you can browse property graphs and inspect their schema views, node/edge mappings, and resource details directly inside the IDE.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9fvywvueemu1evy51g8e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9fvywvueemu1evy51g8e.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Orchestration Pipelines (&lt;code&gt;DATA ENGINEERING&lt;/code&gt;)&lt;/strong&gt;: Under the DATA ENGINEERING section in the sidebar, you can inspect orchestration pipelines, run histories, and workflow steps visually right next to your code instead of switching over to Cloud Composer / Managed Service for Apache Airflow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. What Else Lives in the Sidebar?
&lt;/h3&gt;

&lt;p&gt;Even though we only turned on BigQuery and Cloud Storage for this walkthrough, take a quick look at the rest of the Data Agent Kit sidebar — there are a few handy built-ins worth knowing right away:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;+ New BigQuery Notebook:&lt;/strong&gt; Create and run BigQuery notebooks directly inside Antigravity IDE alongside your .sql files.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;bigquery-public-data:&lt;/strong&gt; Pinned right inside the explorer so you can test queries and agent prompts safely against public datasets before touching production tables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Jobs &amp;amp; Data Transfers:&lt;/strong&gt; Check recent BigQuery job runs, errors, or Data Transfer Service configs without opening the browser console.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sidebar Toolbar (Refresh &amp;amp; Filter):&lt;/strong&gt; If your GCP project has dozens of datasets or buckets, use the Filter and Refresh icons at the top of the Data Agent Kit sidebar to narrow down what you're looking at without endless scrolling.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The Rest of Google Data Cloud:&lt;/strong&gt; Notice CATALOG, APACHE SPARK, DATAFLOW, and DATABASES (Cloud SQL, AlloyDB, Spanner, Bigtable, and Firestore) sitting right in the sidebar. Once those APIs are enabled in your GCP project—and toggled on in Service Integrations for your agent—you can browse and query them from the exact same panel.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Not Using Antigravity IDE? Data Agent Kit Works Everywhere
&lt;/h2&gt;

&lt;p&gt;While we are anchoring this series in &lt;strong&gt;Antigravity IDE&lt;/strong&gt;, one of the best things about Google Cloud Data Agent Kit is that it is &lt;strong&gt;portable by design&lt;/strong&gt;. You don’t have to switch editors to use it:&lt;/p&gt;

&lt;p&gt;Press enter or click to view image in full size&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6pxq6cwm7k77d29pnt5j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6pxq6cwm7k77d29pnt5j.png" alt=" " width="800" height="673"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s Next
&lt;/h2&gt;

&lt;p&gt;You now have Google Cloud Data Agent Kit installed, authenticated with ADC, and running a Mini Cloud Console inside Antigravity IDE — without opening a browser tab or writing manual MCP JSON configs.&lt;/p&gt;

&lt;p&gt;This post is Part 1 of my &lt;strong&gt;Getting started with Google Cloud Data Agent Kit series&lt;/strong&gt;. In the next posts, we will move from the UI into the agent itself — looking closely at how Agentic Skills (SKILL.md) and MCP tools work together, running an end-to-end Cloud Storage to BigQuery workflow on our &lt;code&gt;devfest_commerce&lt;/code&gt; dataset, and exploring more of what Data Agent Kit supports across Google Data Cloud.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let’s Connect
&lt;/h2&gt;

&lt;p&gt;I’m an Independent Consultant and Google Developer Expert (GDE) partnering with startups and early-stage SaaS teams on &lt;strong&gt;Developer Experience (DevEx) and GTM content&lt;/strong&gt; — helping teams ship clearer docs, stronger demos, developer tutorials, live workshops, and repeatable content engines across Google Cloud, Google Workspace, and AI workflows.&lt;/p&gt;

&lt;p&gt;If you want to follow the rest of this series (blogs, YouTube walkthroughs, live trainings, and quick LinkedIn/X posts) — or if you’re building developer tools, scaling SaaS adoption, or looking for a technical writer, trainer, or DevEx partner — let’s connect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Socials:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/in/aryanirani123/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; &amp;amp; &lt;a href="https://x.com/aryanirani123" rel="noopener noreferrer"&gt;X&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@AryanIrani123" rel="noopener noreferrer"&gt;@aryanirani123&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blogs &amp;amp; Tutorials:&lt;/strong&gt; &lt;a href="https://aryanirani123.medium.com/" rel="noopener noreferrer"&gt;Medium&lt;/a&gt; | &lt;a href="https://dev.to/aryanirani123"&gt;DEV.to&lt;/a&gt; | &lt;a href="https://aryanirani123.com/" rel="noopener noreferrer"&gt;aryanirani123.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>googlecloud</category>
      <category>bigquery</category>
      <category>dataengineering</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Google Workspace Studio Tutorial: Batch Lead Outreach with the "Repeat for each" Loop</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Sat, 17 Oct 2026 14:16:27 +0000</pubDate>
      <link>https://dev.to/gde/google-workspace-studio-tutorial-batch-lead-outreach-with-the-repeat-for-each-loop-5ajl</link>
      <guid>https://dev.to/gde/google-workspace-studio-tutorial-batch-lead-outreach-with-the-repeat-for-each-loop-5ajl</guid>
      <description>&lt;p&gt;If you work in sales or run your own business, you probably have a Google Sheet somewhere that acts as your lead tracker. Leads come in from your website form, webinars, and referrals — and every morning, someone opens that sheet, figures out who's new, and writes a personalized follow-up email to each one. For a tracker with 15–20 new leads, that's easily 45–60 minutes of copy-paste work a day.&lt;/p&gt;

&lt;p&gt;In this tutorial, we are going to completely automate that process using Google Workspace Studio. Every weekday morning, our agent will read the tracker, pick out only the New leads, draft a personalized email for each one using Gemini, log every draft, mark the lead as contacted so it never gets double-emailed, and post a summary to the sales team's Chat space.&lt;/p&gt;

&lt;p&gt;This build is also a showcase for one of Studio's most powerful recent additions: the &lt;strong&gt;&lt;a href="https://workspaceupdates.googleblog.com/2026/06/introducing-ability-to-loop-over-list-of-items-in-Workspace-Studio.html" rel="noopener noreferrer"&gt;Repeat for each step&lt;/a&gt;&lt;/strong&gt;, which lets a flow loop over Google Sheets data row by row. &lt;/p&gt;

&lt;p&gt;So let's get started.&lt;/p&gt;

&lt;p&gt;What We Are Building&lt;/p&gt;

&lt;p&gt;Here is the full flow at a glance:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;On a schedule&lt;/strong&gt; — runs every weekday at 9:00 AM&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get sheet contents&lt;/strong&gt; — pulls only the rows where Status = New&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repeat for each&lt;/strong&gt; — loops over those rows, and for each lead:&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask Gemini&lt;/strong&gt; — drafts a personalized email body&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Draft an email&lt;/strong&gt; — creates a Gmail draft with a standardized subject&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add a row&lt;/strong&gt; — logs the draft to an Outreach Log tab&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update rows&lt;/strong&gt; — flips the lead's Status to Contacted&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post in a space&lt;/strong&gt; — one summary message to Google Chat after the loop&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdmludhtrhiqgiobvechw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdmludhtrhiqgiobvechw.png" alt=" " width="800" height="671"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Setup: Your Leads Tracker
&lt;/h2&gt;

&lt;p&gt;The first step in this process would be to create a Google Sheet called &lt;strong&gt;Leads Tracker&lt;/strong&gt; with two tabs.&lt;/p&gt;

&lt;p&gt;The Leads tab is the source of truth, with these columns in row 1: &lt;strong&gt;Lead ID&lt;/strong&gt;, &lt;strong&gt;First Name&lt;/strong&gt;, &lt;strong&gt;Last Name&lt;/strong&gt;, &lt;strong&gt;Company&lt;/strong&gt;, &lt;strong&gt;Role&lt;/strong&gt;, &lt;strong&gt;Email&lt;/strong&gt;, &lt;strong&gt;Source&lt;/strong&gt;, &lt;strong&gt;Interest&lt;/strong&gt;, &lt;strong&gt;Status&lt;/strong&gt;, &lt;strong&gt;Notes&lt;/strong&gt;, &lt;strong&gt;Date Added&lt;/strong&gt;. Fill it with your leads, and make sure Status holds one of three values: New, Contacted, or Closed - Won.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frq0dcyeww09njhi184wc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frq0dcyeww09njhi184wc.png" alt=" " width="800" height="457"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Outreach Log tab just needs headers: &lt;strong&gt;Timestamp&lt;/strong&gt;, &lt;strong&gt;Lead ID&lt;/strong&gt;, &lt;strong&gt;Name&lt;/strong&gt;, &lt;strong&gt;Company&lt;/strong&gt;, &lt;strong&gt;Email&lt;/strong&gt;, &lt;strong&gt;Email Subject&lt;/strong&gt;, &lt;strong&gt;Outcome&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwb0qddtmu6rham0ceu6t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwb0qddtmu6rham0ceu6t.png" alt=" " width="800" height="541"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: The Scheduled Trigger
&lt;/h3&gt;

&lt;p&gt;Head over to studio.workspace.google.com, create a new flow, and pick the On a schedule starter. Go ahead and configure the following fields:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Frequency: Every weekday&lt;br&gt;
Time: 9:00 AM (your timezone)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;While building, you won't wait for the schedule — the Test run button at the bottom of the canvas triggers the flow on demand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgy5zs1akdx3rsy2kdxhm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgy5zs1akdx3rsy2kdxhm.png" alt=" " width="799" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Get Sheet Contents (The Deterministic Filter)
&lt;/h3&gt;

&lt;p&gt;Next, we need to get the leads that haven't been contacted yet. Go ahead and add the &lt;strong&gt;Get sheet contents step&lt;/strong&gt;. This step pulls rows from a sheet that match a condition you set.&lt;/p&gt;

&lt;p&gt;Configure the following fields:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spreadsheet:&lt;/strong&gt; Leads Tracker&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sheet:&lt;/strong&gt; Leads&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Column:&lt;/strong&gt; Status (the dropdown shows the names from your header row)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Value:&lt;/strong&gt; New&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffkjciyua49vbf0frx192.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffkjciyua49vbf0frx192.png" alt=" " width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Stick to a single condition here. The "Add column" option is only for multi-column filtering, and setting the value to "Any" will just dump the entire sheet.&lt;/p&gt;

&lt;p&gt;You could theoretically skip this and just pass the whole sheet to Gemini to find the new leads, but don't. A native filter is faster, deterministic (it won't accidentally skip a row). Let the filter handle the data extraction, and save Gemini for what it actually needs to do: writing the email.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Repeat for Each
&lt;/h3&gt;

&lt;p&gt;Add the Repeat for each step. Before adding any substeps, we first need to tell it what to loop over.&lt;/p&gt;

&lt;p&gt;In the step's panel, under Select a list, click + Variables, hover over Step 2: Get sheet contents, and select Full list - Matching values. This is the list of rows that matched our Status = New condition.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnm1zoyxshj46f01ilk68.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnm1zoyxshj46f01ilk68.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once done, go ahead and click on &lt;strong&gt;Add step&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;With the list connected, every substep we add inside this step runs once per lead, and the values from that lead's row are available as variables: {{First Name}}, {{Company}}, {{Email}}, and so on.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Ask Gemini
&lt;/h3&gt;

&lt;p&gt;Inside the loop, add an Ask Gemini step and set Response format to Text, since we are working with one lead at a time.&lt;/p&gt;

&lt;p&gt;Gemini only writes the email body here. The subject line comes later, in the Gmail step. Here is the prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You are writing a follow-up email on behalf of [YOUR NAME], an automation consultant who helps teams automate their work with Google Workspace Studio.&lt;br&gt;
Write a short, personalized outreach email to this lead: - Name: {{First Name}} {{Last Name}} - Company: {{Company}} - Role: {{Role}} - What they're interested in: {{Interest}} - Context notes: {{Notes}}&lt;br&gt;
Rules: - 90–120 words, plain conversational English, no buzzwords, no exclamation marks. - Begin with "Hi {{First Name}}," — first name only, never the full name, and never skip the greeting. - Then open by referencing their specific interest and context — never a generic "hope you're well." - Include exactly one concrete idea for how Workspace Studio could solve their problem, phrased in one sentence. - End with a low-pressure ask: a 20-minute call this week or next. - Write numbers as digits (20-minute, not twenty-minute). - After the last paragraph, leave one blank line, then sign off with "[YOUR NAME]" on its own line.&lt;br&gt;
Return only the email body.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fljsd5l5mosq7bgyr0p4d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fljsd5l5mosq7bgyr0p4d.png" alt=" " width="799" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The prompt is strict on purpose. My first version asked Gemini for a subject line too, and every draft came out with "Subject: ..." as the first line of the body. If you want something to be consistent across every email, put it in the rules.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Draft an Email
&lt;/h3&gt;

&lt;p&gt;While you are still inside the loop, add the Gmail Draft an email step.&lt;/p&gt;

&lt;p&gt;Configure the following fields:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;To:&lt;/strong&gt; {{Email}}&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subject:&lt;/strong&gt; Workspace Studio idea for {{Company}}&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Body:&lt;/strong&gt; the output of Step 4&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The subject is one fixed template, and only the company name changes. Every draft in the campaign looks the same in your Drafts folder, and searching subject:"Workspace Studio idea" in Gmail shows you the whole run at once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyg927dfbn3pcnv8vcts7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyg927dfbn3pcnv8vcts7.png" alt=" " width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are creating drafts here, not sending. Review a few runs first, and once you are happy with the output, switch this step to Send email.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Add a Row
&lt;/h3&gt;

&lt;p&gt;Go ahead and add the Sheets &lt;strong&gt;Add a row step&lt;/strong&gt;, pointed at the Outreach Log tab. Map the columns: the run timestamp, {{Lead ID}}, the name, company, email, the subject, and the text Draft created.&lt;/p&gt;

&lt;p&gt;(Note: the log rows won't appear in the same order as the sheet, because the loop iterations run in parallel. That is why we log the Lead ID — you can always trace a log row back to its lead.)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhcsbimc5c7n3ob49qwak.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhcsbimc5c7n3ob49qwak.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Update Rows
&lt;/h3&gt;

&lt;p&gt;Right now, the flow has a problem. Nothing changes the lead's Status, so tomorrow's 9:00 AM run would find the same leads still marked New and draft them all over again. The Update rows step fixes that.&lt;/p&gt;

&lt;p&gt;Add it as the last step inside the loop.&lt;/p&gt;

&lt;p&gt;Configure the following fields:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spreadsheet:&lt;/strong&gt; Leads Tracker&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sheet:&lt;/strong&gt; Leads&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Find rows to update — Column:&lt;/strong&gt; Lead ID, Value: {{Lead ID}} (click the + on the field and pick the variable)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set new values by column — Column:&lt;/strong&gt; Status, New value: Contacted (typed as plain text)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frmnsazhwuh9d2fd0t5jc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frmnsazhwuh9d2fd0t5jc.png" alt=" " width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two things to get right here:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Find rows by the Lead ID, not by Status. Update rows changes every row that matches the condition. If you match on Status = New, the first loop iteration updates all your leads at once. Matching on the Lead ID variable means each iteration updates exactly one row.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Don't mix up the two sections. The "Find" section gets Lead ID, and the "Set" section gets Status. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 8: Post in a Space
&lt;/h3&gt;

&lt;p&gt;Outside the loop, add the &lt;strong&gt;Post in a space step&lt;/strong&gt; pointed at your sales team's Chat space:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Lead outreach agent ran ✅ Any New leads in the Leads Tracker now have drafts in Gmail — details in the Outreach Log tab.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For the chat message we have kept the wording neutral like this. This step is outside the loop, so it runs every time — including on a morning where there are no new leads at all. A message that says "drafted follow-ups!" on a day where nothing happened is going to confuse your team.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0rmyvv6xgpqhi56o2d0h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0rmyvv6xgpqhi56o2d0h.png" alt=" " width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Test Run &amp;amp; Output
&lt;/h2&gt;

&lt;p&gt;Never just toggle a flow to live without testing it first. For this setup, we need to do two test runs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk53wk9k8t9i7ueza9ckd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk53wk9k8t9i7ueza9ckd.png" alt=" " width="800" height="551"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My tracker had 16 New leads, so I'll use those numbers — yours will match whatever is in your sheet.&lt;/p&gt;

&lt;p&gt;This flow touches four different places — &lt;strong&gt;Studio&lt;/strong&gt;, &lt;strong&gt;Chat&lt;/strong&gt;, &lt;strong&gt;Gmail&lt;/strong&gt;, and the &lt;strong&gt;Sheet&lt;/strong&gt; — so checking the output means visiting all four. Here is the order I follow.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The run history in Studio&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The run history panel opens on the right as the flow runs. Step 2 reports "Found 16 rows matching conditions" with a chip for the Leads Tracker, and Step 3 shows "Repeat 16 items in list."&lt;/p&gt;

&lt;p&gt;Here is the part I really like: you can page through the iterations (1/16, 2/16, ...) and see exactly what happened for each lead. For the first iteration, that means reading the exact email Gemini wrote for Priya at Nimbus Retail Co., then "Created draft — Workspace Studio idea for Nimbus Retail Co." for the Gmail step, "Added row to the sheet" for the log, and "1 row updated" for the status change. That "1 row updated" matters — if it ever says more than 1, your Update rows step is matching on the wrong column.&lt;/p&gt;

&lt;p&gt;At the bottom of the loop you want 16 completed, 0 with errors, then a green Run Completed banner.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwdmoz3rro09m1ov7p7ld.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwdmoz3rro09m1ov7p7ld.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.The Chat space&lt;/p&gt;

&lt;p&gt;Open the &lt;strong&gt;Sales — Outreach space&lt;/strong&gt; in Google Chat. The summary message from the flow should be sitting there. In a real team, this message is the signal that the morning batch is ready for review — nobody has to go check whether the automation ran.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxueetzx9dzl7ghpdyzu6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxueetzx9dzl7ghpdyzu6.png" alt=" " width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.The Gmail drafts&lt;/p&gt;

&lt;p&gt;Now head to Gmail and open your Drafts folder — or search in:draft subject:"Workspace Studio idea", which shows the whole batch in one view. You should count one draft per lead, 16 in my case, every subject following the same pattern: Workspace Studio idea for Nimbus Retail Co., Workspace Studio idea for Brightline Logistics, and so on down the list.&lt;/p&gt;

&lt;p&gt;Open a few and actually read them. This is where you check that the personalization is real and not mail-merge filler. In my run, Priya's draft talked about her team of 40 drowning in supplier emails and suggested smart labels — pulled straight from her Notes column. &lt;/p&gt;

&lt;p&gt;Each one opens with "Hi Priya," or "Hi Kwame," — first name only, no stray "Subject:" line at the top, signed off with my name. If something reads wrong here, fix the prompt rules in Step 4 and run again.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F00ul7035yyj17roopnee.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F00ul7035yyj17roopnee.png" alt=" " width="800" height="456"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.The Sheet — both tabs&lt;/p&gt;

&lt;p&gt;Back in the &lt;strong&gt;Leads Tracker sheet&lt;/strong&gt;, check the Outreach Log tab first. One row per lead: timestamp, Lead ID, name, company, email, the subject, and Draft created. You'll notice the rows are not in L-001, L-002 order — iterations finish in parallel, so they land as they complete. That is exactly why we log the Lead ID.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi0ijrof0zwq2kxtrgdkj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi0ijrof0zwq2kxtrgdkj.png" alt=" " width="800" height="557"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then the Leads tab: all 16 processed leads now show Contacted in the Status column, the Lead IDs are untouched, and the rows that were already Contacted or Closed - Won before the run haven't changed at all.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F46c93rq9651xf43m4zo0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F46c93rq9651xf43m4zo0.png" alt=" " width="800" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Run it again&lt;/p&gt;

&lt;p&gt;One more test, and this is the one that proves the flow is safe to schedule: hit Test run again without changing anything in the sheet.&lt;/p&gt;

&lt;p&gt;This time Step 2 says "No rows matched conditions," Step 3 says "Repeat 0 items in list — The list is empty," and the flow completes without creating a single draft. Every lead is already Contacted, so there is nobody left to email. The only thing that still fires is the Chat message — it sits outside the loop — which is why we kept its wording neutral in Step 8.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz48zh5lw35yn1jylrd3t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz48zh5lw35yn1jylrd3t.png" alt=" " width="799" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No duplicate drafts, no duplicate log rows, nobody emailed twice. That is what makes it safe to leave running every weekday. Hit Turn on.&lt;/p&gt;

&lt;p&gt;(Note: to test again or demo the flow, select the Status column in Sheets and use Find and replace to change Contacted back to New, and clear out the test drafts in Gmail.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Here is what each part of this flow is doing:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Sheet holds the data, and the Status column tracks where each lead stands.&lt;/li&gt;
&lt;li&gt;Get sheet contents does the filtering, so Gemini doesn't have to.&lt;/li&gt;
&lt;li&gt;Repeat for each + Ask Gemini writes one personalized email per lead.&lt;/li&gt;
&lt;li&gt;Update rows makes sure every lead is processed exactly once.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You set it up once, and every weekday at 9:00 AM a batch of personalized drafts is waiting for a quick review — instead of an hour of writing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work With Me
&lt;/h2&gt;

&lt;p&gt;I help companies turn their products into developer and user content — tutorials, videos, use cases, and live trainings. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Custom Workspace Studio agents and automation consulting&lt;/li&gt;
&lt;li&gt;Technical content: blogs, videos, and documentation for your product&lt;/li&gt;
&lt;li&gt;Live trainings and workshops for your team&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Website: aryanirani123.com &lt;br&gt;
👉 LinkedIn: &lt;a href="https://www.linkedin.com/in/aryanirani123/" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/aryanirani123/&lt;/a&gt;&lt;br&gt;
👉 YouTube: &lt;a href="https://www.youtube.com/@AryanIrani123" rel="noopener noreferrer"&gt;https://www.youtube.com/@AryanIrani123&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If any of that sounds useful, feel free to reach out or get on a call.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Building an Automated Meeting Intelligence Pipeline with Workspace Studio</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Wed, 22 Jul 2026 14:04:49 +0000</pubDate>
      <link>https://dev.to/gde/building-an-automated-meeting-intelligence-pipeline-with-workspace-studio-394p</link>
      <guid>https://dev.to/gde/building-an-automated-meeting-intelligence-pipeline-with-workspace-studio-394p</guid>
      <description>&lt;p&gt;If you spend a lot of time in Google Meet, you know that the real work happens after the call. Processing raw transcripts, structuring unstructured conversations, and routing action items to the right tools is a massive context switch.&lt;/p&gt;

&lt;p&gt;Traditionally, automating this required wiring up webhooks, deploying a Cloud Function to handle the LLM prompts, and integrating with multiple Workspace APIs.&lt;/p&gt;

&lt;p&gt;Today, I’m going to show you how to build this exact pipeline natively using &lt;strong&gt;Google Workspace Studio&lt;/strong&gt;. We are going to take unstructured meeting data, pass it through Gemini for summarization and entity extraction, and route the structured outputs directly into Google Docs, Google Chat, and Google Tasks—all without writing a single line of code.&lt;/p&gt;

&lt;p&gt;Prefer to watch instead of read? Check out the video version of the guide here.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/zPn88HmyMFU"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Let’s dive into the architecture and build the flow.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;Here is a high-level look at the pipeline we are building:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Ingestion:&lt;/strong&gt; Triggered asynchronously when Google Meet finishes processing a transcript.&lt;br&gt;
&lt;strong&gt;2. Processing (LLM):&lt;/strong&gt; Gemini processes the text in two parallel logical steps: summarizing the broader context, and extracting specific action item entities.&lt;br&gt;
&lt;strong&gt;3. Routing:&lt;/strong&gt; The processed data is appended to a Google Doc for historical archiving, a payload is pushed to Google Chat for immediate alerting, and the action items are iterated over to generate individual Google Tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Set the Trigger
&lt;/h2&gt;

&lt;p&gt;First, we need to set up the event listener that kicks off our pipeline.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a new flow in Workspace Studio.&lt;/li&gt;
&lt;li&gt;Under Choose a starter, select When meeting outputs are ready.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fin0sd2pnnsvbhcyck6cn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fin0sd2pnnsvbhcyck6cn.png" alt=" " width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This starter listens for the completion event from Google Meet, ensuring our flow only runs when the transcript and notes payload is fully generated and ready for processing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Contextual Summarization (Prompt Engineering)
&lt;/h2&gt;

&lt;p&gt;Next, we’ll use the &lt;strong&gt;Summarize&lt;/strong&gt; AI action. We are intentionally separating our summarization from our task extraction to ensure the LLM returns predictable, deterministic outputs for each step.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Add step&lt;/strong&gt; -&amp;gt; &lt;strong&gt;AI actions&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Summarize&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;For &lt;strong&gt;What to summarize&lt;/strong&gt;, select &lt;strong&gt;Meeting notes&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Map &lt;strong&gt;Select meeting notes&lt;/strong&gt; link to the variable from Step 1.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Additional instructions for Gemini field&lt;/strong&gt;, we need to apply some strict prompting constraints. Paste the following:&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Goal:&lt;br&gt;
Provide a clear, high-level overview of the meeting based on the provided notes/transcript.&lt;br&gt;
Requirements:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Logic: If the document is empty or contains only metadata, state "No substantive content found."&lt;/li&gt;
&lt;li&gt;Content: Focus on the big picture, skipping minor small talk. Do NOT include action items here, as they will be extracted separately.
Output Format:&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meeting Topic/Purpose&lt;/strong&gt; - 1 sentence summary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key Decisions&lt;/strong&gt; - Bulleted list of final decisions made.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Major Discussion Points&lt;/strong&gt; - Bulleted list of topics covered.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo3vl97g58d0xdjm6lm4k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo3vl97g58d0xdjm6lm4k.png" alt=" " width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Entity Extraction (Action Items)
&lt;/h2&gt;

&lt;p&gt;Now for the extraction phase. We need a clean array of tasks that we can iterate over later. Instead of writing a complex Regex or a highly-structured JSON prompt,Workspace Studio includes predefined extraction models, so no custom prompting is required here.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Add step&lt;/strong&gt; -&amp;gt; &lt;strong&gt;AI actions&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Extract&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Map &lt;strong&gt;Content to analyze&lt;/strong&gt; to the summary from Step 2.&lt;/li&gt;
&lt;li&gt;Scroll down to &lt;strong&gt;What to extract&lt;/strong&gt;. Click the Predefined dropdown and select Action items.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flkkeqac58st6ejamwtan.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flkkeqac58st6ejamwtan.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By using the predefined model, Gemini reliably returns an iterable list of tasks, avoiding the parsing errors you might get from a custom prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Data Routing (Docs &amp;amp; Chat)
&lt;/h2&gt;

&lt;p&gt;Now that our data is processed and structured, we need to route it to our tools.&lt;/p&gt;

&lt;h3&gt;
  
  
  Archiving to Google Docs:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Add step&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Docs&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Create a doc&lt;/strong&gt; (or Add to a doc if you have an existing doc).&lt;/li&gt;
&lt;li&gt;Build your document schema by mapping the variables:&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Summary: [Map Output from Step 2]&lt;/li&gt;
&lt;li&gt;Action Items: [Map Output from Step 3]&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb4yl0utgatgvry3bqk14.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb4yl0utgatgvry3bqk14.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Alerting via Google Chat:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Click Add step -&amp;gt; Chat -&amp;gt; Notify me in Chat.&lt;/li&gt;
&lt;li&gt;Construct your payload. I like to keep this brief:&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Meeting Processed! 📝&lt;br&gt;
Summary: [Map Output from Step 2]&lt;br&gt;
Tasks extracted: [Map Output from Step 3]&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F489fxhlc6k0dtbo8q7en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F489fxhlc6k0dtbo8q7en.png" alt=" " width="799" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Iterating over the Array (Google Tasks)
&lt;/h2&gt;

&lt;p&gt;Finally, we need to take the array of extracted tasks from Step 3 and generate individual Google Tasks. To do this, we use a loop.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Add step&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Tools&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Repeat for each&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Map &lt;strong&gt;List to repeat&lt;/strong&gt; to the Action Items variable from Step 3.&lt;/li&gt;
&lt;li&gt;Inside the loop block, click &lt;strong&gt;Add substep&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Tasks&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Create a task&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Map the &lt;strong&gt;Task Title&lt;/strong&gt; to the &lt;strong&gt;Current Item&lt;/strong&gt; variable generated by the loop.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyetv0yg85so8qzt2tpa9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyetv0yg85so8qzt2tpa9.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a powerful pattern: iterating over LLM-extracted entities to trigger downstream write operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Testing the Automation
&lt;/h2&gt;

&lt;p&gt;Before setting the automation live, Workspace Studio allows you to run a test using data from a past meeting.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click the Test run button at the bottom of the screen.&lt;/li&gt;
&lt;li&gt;Under "Meetings," select a recent meeting that has a transcript available (e.g., a "Project Sync" meeting).&lt;/li&gt;
&lt;li&gt;Once done, click Start.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Workspace Studio will process the historical data as if the meeting just ended. Here is what the automated outputs look like:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Chat Notification&lt;/strong&gt; You will receive an instant direct message from Workspace Studio confirming the successful run, complete with a link to your newly generated notes. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc8nvjxx1mnefhwo3rmab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc8nvjxx1mnefhwo3rmab.png" alt=" " width="800" height="593"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;The Formatted Google Doc&lt;/strong&gt; Opening the linked Google Doc will show a clean, formatted summary detailing the Meeting Topic, Key Decisions, and Major Discussion Points, followed by the extracted action items. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjhwrplgogmaoxi1clh51.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjhwrplgogmaoxi1clh51.png" alt=" " width="800" height="494"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.&lt;strong&gt;Populated Google Tasks&lt;/strong&gt; Checking your Google Tasks panel will reveal that every action item discussed on the call has been individually extracted and added as a distinct task, complete with the "Auto-generated from recent meeting" note we configured. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk8yvz3p5n49oqjd393yl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk8yvz3p5n49oqjd393yl.png" alt=" " width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Seeing the test run execute successfully highlights exactly why this workflow is so powerful. Instead of manually reviewing a 45-minute transcript, copying out tasks, and pasting them into separate project management tools, the data flows seamlessly across your Workspace environment.&lt;/p&gt;

&lt;p&gt;Notice how the extraction model (in Step 3) accurately identified only the actionable items, completely ignoring the small talk and general discussion points. This level of AI-driven precision prevents your task list from becoming cluttered with irrelevant information. By routing the data immediately to Google Chat, you get a real-time notification that the process is complete, so you never have to guess if the automation fired correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Once you have verified your test run looks good, click Turn on at the bottom of the Workspace Studio editor.&lt;/p&gt;

&lt;p&gt;Moving forward, this automation will run silently in the background every time a meeting output is generated. You’ve successfully transformed a tedious administrative chore into an automated pipeline, ensuring your tasks are always centralized and your meeting records are impeccably archived without a single manual keystroke.&lt;/p&gt;

&lt;p&gt;Google Workspace Studio opens up incredible possibilities for streamlining your day-to-day operations. Start building, experiment with different AI prompts, and take your time back!&lt;/p&gt;

</description>
      <category>googleworkspace</category>
      <category>workspacestudio</category>
      <category>automation</category>
      <category>meetingautomations</category>
    </item>
    <item>
      <title>Parallel Compliance Engine: Drive-to-Sheets Multi-Agent Orchestration</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Fri, 10 Jul 2026 08:19:13 +0000</pubDate>
      <link>https://dev.to/gde/parallel-compliance-engine-drive-to-sheets-multi-agent-orchestration-4o</link>
      <guid>https://dev.to/gde/parallel-compliance-engine-drive-to-sheets-multi-agent-orchestration-4o</guid>
      <description>&lt;p&gt;When building Generative AI applications, developers often encounter a massive bottleneck: sequential processing. If your LLM script takes 8 seconds to process a single PDF, scaling that script to process 100 documents using a standard for loop will take over 13 minutes.&lt;/p&gt;

&lt;p&gt;To achieve true scale, we need to abandon sequential loops and embrace &lt;strong&gt;Multi-Agent Orchestration&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In this technical tutorial, we will build a &lt;strong&gt;Parallel Compliance Engine&lt;/strong&gt; using the &lt;strong&gt;Google Antigravity SDK&lt;/strong&gt;. Our architecture will read raw vendor compliance PDFs (like W-9s and ISO certificates) directly from a Google Drive folder, spawn parallel dynamic subagents to extract structured data using &lt;strong&gt;Gemini 3.5&lt;/strong&gt; reasoning, and output the aggregated results directly into Google Sheets.&lt;/p&gt;

&lt;p&gt;Let’s break the sequential bottleneck.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites &amp;amp; Environment Setup
&lt;/h2&gt;

&lt;p&gt;Before we write the orchestrator, ensure you have Python 3.10+ installed and a Google Cloud Project with billing enabled (to handle concurrent API bursts without hitting Free Tier rate limits).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Install the Dependencies:&lt;/strong&gt; You will need the Antigravity SDK, the Google Workspace APIs, and Pydantic for structured data validation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;google-antigravity google-api-python-client google-auth-httplib2 google-auth-oauthlib pydantic

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.Configure Google Workspace APIs:&lt;/strong&gt; In your Google Cloud Console, enable both the Google Drive API and Google Sheets API. Generate an OAuth Desktop Client ID, download the JSON file, rename it to credentials.json, and place it in your project root directory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture Overview
&lt;/h2&gt;

&lt;p&gt;Our engine relies on two distinct layers:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. The Orchestrator:&lt;/strong&gt; A central Python script (&lt;code&gt;main.py&lt;/code&gt;) responsible for handling Google Workspace authentication, fetching files from Drive, managing API rate limits, and pushing the final data to Sheets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The Subagents:&lt;/strong&gt; Independent Antigravity instances spawned dynamically by the Orchestrator. Each agent handles a single document, applies Gemini 3.5’s reasoning capabilities, and returns a strict JSON payload.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj5znp5z6iwvjpysk8uas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj5znp5z6iwvjpysk8uas.png" alt=" " width="800" height="1111"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Defining the Agent’s Brain
&lt;/h3&gt;

&lt;p&gt;Large Language Models are inherently unpredictable, but for our pipeline to work, we need deterministic, structured JSON output that maps perfectly to our Google Sheet columns.&lt;/p&gt;

&lt;p&gt;We achieve this using Pydantic and the Antigravity &lt;code&gt;LocalAgentConfig&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pydantic&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;google.antigravity&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;LocalAgentConfig&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;google.antigravity.types&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Document&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ComplianceData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pydantic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;vendor_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;
    &lt;span class="n"&gt;tax_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;
    &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;
    &lt;span class="n"&gt;iso_expiry&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;
    &lt;span class="n"&gt;notes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;

&lt;span class="c1"&gt;# Inside our processing function...
&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;LocalAgentConfig&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;response_schema&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;ComplianceData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;system_instruction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;You are a strict compliance officer. Extract the required fields from the document. If a field is missing, use &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;UNKNOWN&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By passing our &lt;code&gt;ComplianceData&lt;/code&gt; schema into the &lt;code&gt;LocalAgentConfig&lt;/code&gt;, the Antigravity SDK guarantees that the Gemini 3.5 model will return a perfectly formatted JSON object containing exactly these five keys.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Fetching the Input (Google Drive API)
&lt;/h3&gt;

&lt;p&gt;We use the standard &lt;code&gt;google-api-python-client&lt;/code&gt; to authenticate and fetch files from our target Drive folder.&lt;/p&gt;

&lt;p&gt;A major advantage of the Antigravity SDK is its native multimodal capabilities. We don’t need to write complex OCR logic to extract text from our PDFs. Instead, we download the raw bytes from Drive and let the SDK handle the binary file natively using Document.from_file().&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Authenticate and build the Drive service
&lt;/span&gt;&lt;span class="n"&gt;drive_service&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;drive&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;v3&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;creds&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Fetch files from the specific folder
&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"'&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;DRIVE_FOLDER_ID&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; in parents and trashed=false&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;drive_service&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;files&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fields&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;nextPageToken, files(id, name)&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;# Download binary files locally for the Antigravity agents
&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;makedirs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;temp_downloads&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;exist_ok&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;files&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[]):&lt;/span&gt;
    &lt;span class="n"&gt;content_bytes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;drive_service&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;files&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;get_media&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fileId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;id&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]).&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;file_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;temp_downloads&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;wb&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content_bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: The Multi-Agent Orchestrator
&lt;/h3&gt;

&lt;p&gt;This is the core of our application. Instead of processing our downloaded documents one by one, we will use Python’s &lt;code&gt;asyncio&lt;/code&gt; to spawn a unique Antigravity subagent for every single document simultaneously.&lt;/p&gt;

&lt;p&gt;However, if we hit the Gemini API with 100 requests at the exact same millisecond, we will trigger HTTP 429 Rate Limit errors. To build a robust architecture, we implement an &lt;code&gt;asyncio.Semaphore&lt;/code&gt; to throttle concurrency.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;process_document&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;semaphore&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Semaphore&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Spawns an agent to extract data. The semaphore throttles concurrency.&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;semaphore&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;prompt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Extract compliance data from this document named &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;file_name&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

            &lt;span class="c1"&gt;# Antigravity natively parses the binary PDF
&lt;/span&gt;            &lt;span class="n"&gt;doc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_file&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;

            &lt;span class="c1"&gt;# The output is guaranteed to match our Pydantic schema
&lt;/span&gt;            &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;structured_output&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;source_file&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;file_name&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;

&lt;span class="c1"&gt;# In our main() loop...
# Limit execution to 2 concurrent agents at a time to respect API limits
&lt;/span&gt;&lt;span class="n"&gt;semaphore&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Semaphore&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Create a massive list of asynchronous tasks (our subagents)
&lt;/span&gt;&lt;span class="n"&gt;tasks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;process_document&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;path&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;semaphore&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# Execute all subagents concurrently!
&lt;/span&gt;&lt;span class="n"&gt;valid_results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gather&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;tasks&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By setting the semaphore to 2, the Orchestrator safely executes the agents in overlapping “waves”. As soon as one agent finishes its PDF, the next agent in the queue immediately spins up.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Aggregating the Output (Google Sheets API)
&lt;/h3&gt;

&lt;p&gt;Once &lt;code&gt;asyncio.gather&lt;/code&gt; resolves, &lt;code&gt;valid_results&lt;/code&gt; contains a list of perfectly structured JSON dictionaries. We map these dictionaries into a list of lists (rows) and push them directly to Google Sheets using the &lt;code&gt;spreadsheets().values().append&lt;/code&gt; method.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Map our Pydantic keys to Sheets columns
&lt;/span&gt;&lt;span class="n"&gt;keys&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;source_file&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;vendor_name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;tax_id&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;status&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;iso_expiry&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;notes&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;values&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;valid_results&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;values&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Append rows to the spreadsheet instantly
&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;values&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;values&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;sheets_service&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;spreadsheets&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;values&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;spreadsheetId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;SHEET_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Sheet1!A1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;valueInputOption&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;RAW&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Running the Engine &amp;amp; Results
&lt;/h2&gt;

&lt;p&gt;With our orchestrator complete, it’s time to run the engine. We pointed the script to a Google Drive folder containing 5 complex compliance PDFs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 main.py

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5x8q0jve82o1hjqfax7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5x8q0jve82o1hjqfax7j.png" alt=" " width="800" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In just 42.81 seconds, the engine authenticated with Google Workspace, downloaded 5 binary PDFs, spawned 5 dynamic Antigravity subagents, applied Gemini 3.5 multimodal reasoning to extract structured data, and injected the aggregated results into a Google Sheet.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwiqiu7tmpka936v3f3kx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwiqiu7tmpka936v3f3kx.png" alt=" " width="799" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By offloading the heavy lifting to parallel subagents, we completely bypassed the sequential bottleneck, drastically reducing Time-to-Value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The Google Antigravity SDK provides the architectural foundation needed to move beyond simple LLM chatbots and build robust, concurrent orchestration pipelines. By combining structured outputs, parallel execution, and Google Workspace integrations, you can automate your most complex data extraction workflows at scale.&lt;/p&gt;

&lt;p&gt;Check out the &lt;a href="https://www.antigravity.google/docs/sdk/overview" rel="noopener noreferrer"&gt;Google Antigravity SDK documentation&lt;/a&gt; to start building your own multi-agent orchestrators today!&lt;/p&gt;

</description>
      <category>googlecloud</category>
      <category>antigravitysdk</category>
      <category>googleworkspace</category>
      <category>dataextraction</category>
    </item>
    <item>
      <title>Automating Accounts Payable with Workspace Studio</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Mon, 29 Jun 2026 07:53:33 +0000</pubDate>
      <link>https://dev.to/gde/automating-accounts-payable-with-workspace-studio-33hh</link>
      <guid>https://dev.to/gde/automating-accounts-payable-with-workspace-studio-33hh</guid>
      <description>&lt;p&gt;Dealing with vendor invoices usually means someone is sitting there manually opening PDFs and typing numbers into a ledger. It's slow, error-prone, and a massive waste of time. We wanted to automate our entire Accounts Payable flow, but we definitely didn't want to build a custom tool from scratch to do it. &lt;/p&gt;

&lt;p&gt;So, I built a pipeline using Workspace Studio. It basically watches a Google Drive folder for new invoices, uses Gemini to read them, and then automatically logs the data and drafts approval emails based on our business rules. It took the manual work down to zero.&lt;/p&gt;

&lt;p&gt;Prefer to watch instead of read? Check out the video version of the guide here.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/vd_e7ChVcJI"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;The goal was simple: build a pipeline that ingests a PDF, extracts structured metadata, logs it, and routes it based on business logic.&lt;/p&gt;

&lt;p&gt;Here is the stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ingestion:&lt;/strong&gt; Google Drive (Trigger)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Intelligence:&lt;/strong&gt; Gemini (Semantic parsing and extraction)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Governance:&lt;/strong&gt; Decide / Check If nodes (Routing logic)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Handoff:&lt;/strong&gt; Google Sheets (Ledger) + Gmail (Escalation)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's walk through the actual build.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: The Trigger (Google Drive)
&lt;/h3&gt;

&lt;p&gt;We started by setting up a &lt;strong&gt;When an item is added to a folder&lt;/strong&gt; starter, pointing it at a dedicated Drive folder named &lt;strong&gt;Invoices Drop&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsh6urj5ozd10ahj4myib.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsh6urj5ozd10ahj4myib.png" alt=" " width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once done, go ahead and click on &lt;strong&gt;Choose a step&lt;/strong&gt;. &lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Parsing the PDFs (Gemini Extract)
&lt;/h3&gt;

&lt;p&gt;Next, we add an Extract action and pass it the Link to item variable from Step 1.&lt;/p&gt;

&lt;p&gt;If you've ever tried to write regex to pull an invoice total out of a PDF, you know it's a nightmare. Vendor layouts change constantly. Instead of dealing with pixel coordinates, we just give Gemini the PDF and define the custom content we want back: &lt;strong&gt;Vendor_Name&lt;/strong&gt;, &lt;strong&gt;Invoice_Total&lt;/strong&gt;, and &lt;strong&gt;Due_Date&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa0yuco44b5859v3kjv58.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa0yuco44b5859v3kjv58.png" alt=" " width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The trick here is providing solid instructions. You need to be extremely specific. Here are the exact descriptions we used for each field:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vendor_Name:&lt;/strong&gt; Look for the company issuing the bill. Do not include LLC or Inc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Invoice_Total:&lt;/strong&gt; Find the final total amount due. Return ONLY the number. Strip out all currency symbols and commas (e.g., return 5000.50, not $5,000.50).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Due_Date:&lt;/strong&gt; Find the date the payment is due. Format it exactly as MM/DD/YYYY.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you don't enforce these rules early on, your routing logic later in the pipeline is going to break. This strict prompt engineering gives us the deterministic data we need for the rest of the flow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Logging to the Ledger (Google Sheets)
&lt;/h3&gt;

&lt;p&gt;Before doing any complex routing, we want to make sure the data is safely stored. We use the Add a row action to push the extracted data straight into our Accounts Payable Ledger spreadsheet on Sheet1.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzpn2no4c50izo593c2mp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzpn2no4c50izo593c2mp.png" alt=" " width="799" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We just map the variables we got from Step 2 directly to our columns: &lt;strong&gt;Vendor Name&lt;/strong&gt;, &lt;strong&gt;Amount Due&lt;/strong&gt;, and &lt;strong&gt;Due Date&lt;/strong&gt;. This instantly gives the finance team a centralized, real-time database of every invoice entering the system, without any manual copy-pasting.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9cih9hij7twk1hssp4ae.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9cih9hij7twk1hssp4ae.png" alt=" " width="800" height="721"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4 &amp;amp; 5: Building the Routing Logic (Decide &amp;amp; Check If)
&lt;/h3&gt;

&lt;p&gt;You obviously don't want massive invoices slipping through the cracks without someone noticing. We needed a way to flag high-value items.&lt;/p&gt;

&lt;p&gt;First, we added a Decide node (Step 4) with a specific prompt: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Evaluate if the total amount is strictly greater than 5000. Total Amount: [Step 2: Invoice_Total]. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsilvbtw7niqvrogxzr2j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsilvbtw7niqvrogxzr2j.png" alt=" " width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This node evaluates our logic and spits out a simple boolean. Then, we pass that boolean into a Check if node (Step 5). We configure it so that if Step 4: Decision is true, the pipeline executes a specific substep.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgzlhwpksq6js5hto736a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgzlhwpksq6js5hto736a.png" alt=" " width="800" height="1053"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6 &amp;amp; 7: Alerts and Email Handoff (Chat &amp;amp; Gmail)
&lt;/h3&gt;

&lt;p&gt;If that invoice threshold condition is met, the pipeline executes Step 6: Notify me in Chat.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F504994knw69gfj8z3gif.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F504994knw69gfj8z3gif.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We format the Chat message to be highly actionable, injecting the &lt;strong&gt;Vendor_Name&lt;/strong&gt;, &lt;strong&gt;Invoice_Total&lt;/strong&gt;, and the direct Link to item right into the ping. This fires an instant alert directly to the finance team so they know a massive bill just landed and can open the PDF immediately.&lt;/p&gt;

&lt;p&gt;Finally, once the flow drops out of the Check If block, it proceeds to Step 7: Draft an email. We configure this action to prepare the final processing record.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0a8d34qklfj85pl95mk5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0a8d34qklfj85pl95mk5.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We build a clean email template that pulls in all our extracted variables— &lt;strong&gt;Vendor Name&lt;/strong&gt;, &lt;strong&gt;Total&lt;/strong&gt;, &lt;strong&gt;Due Date&lt;/strong&gt;, and the &lt;strong&gt;Drive link&lt;/strong&gt;. Notice that we draft the email, rather than send it. When you're dealing with financial operations, having a human-in-the-loop is critical. &lt;/p&gt;

&lt;p&gt;The automation does 99% of the heavy lifting and data entry, but a human still reviews the drafted email in their inbox and manually hits &lt;strong&gt;Send&lt;/strong&gt;. It's the best way to build trust in a new automated system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing the Flow in Action
&lt;/h2&gt;

&lt;p&gt;Before pushing this live, we need to verify that our routing logic and type enforcement actually work. I threw two completely different PDF layouts into our staging folder.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test 1: The Standard Invoice (Under $5,000)
&lt;/h3&gt;

&lt;p&gt;First, we drop in a standard invoice from Creative Assets Co. for $850.50. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9vuardm3iz7aru71qpgg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9vuardm3iz7aru71qpgg.png" alt=" " width="800" height="661"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When the flow runs, we can watch the execution logs in real-time: Gemini perfectly extracts the data: &lt;code&gt;Creative Assets Co.&lt;/code&gt;, &lt;code&gt;850.50 (notice the clean float)&lt;/code&gt;, and &lt;code&gt;07/01/2026&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;The row is added to our ledger. The Decide node evaluates to FALSE because &lt;em&gt;850.50 is not greater than 5,000&lt;/em&gt;. The Check If block skips the Chat notification. Finally, it drops straight down to Step 7 and drafts our standard processing email. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu55zoyzv2m5dkvajxmtt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu55zoyzv2m5dkvajxmtt.png" alt=" " width="800" height="746"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This handles 90% of our daily volume, bypassing the red tape entirely.&lt;/p&gt;

&lt;h4&gt;
  
  
  Test 2: The High-Value Exception (Over $5,000)
&lt;/h4&gt;

&lt;p&gt;Next, we test the exception path with a massive invoice from Cloud Nexus Enterprise Solutions for $14,500.00. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpe833sj6yxzjyjui8nxl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpe833sj6yxzjyjui8nxl.png" alt=" " width="800" height="716"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This time, when the Decide node hits the $14,500.00 float, it evaluates to TRUE. The flow immediately dives into the Check If block and fires the alert to Google Chat.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxhdc0s84hx5r6oi3nojf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxhdc0s84hx5r6oi3nojf.png" alt=" " width="800" height="609"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Within seconds of dropping the PDF into Drive, the finance channel gets a high-priority ping, complete with a direct link to the source document for immediate executive review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;By building this in Workspace Studio, we avoided writing and maintaining a custom internal app. We got an intelligent pipeline that actually tolerates layout changes, and our finance team got out of the copy-paste business. If you're dealing with similar manual bottlenecks, give it a try.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work With Me
&lt;/h2&gt;

&lt;p&gt;I run a specialized software consultancy focused on building custom tools, AI integrations, and automation pipelines that help engineering and ops teams move significantly faster.&lt;/p&gt;

&lt;p&gt;We just launched our brand new website, and we are currently taking on new clients. My core services include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI &amp;amp; Workspace Automation:&lt;/strong&gt; Building custom Gemini architectures (like the pipeline above) directly into your business infrastructure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom Software Development:&lt;/strong&gt; Architecting scalable web applications and internal tools from the ground up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud Architecture:&lt;/strong&gt; Secure GCP and Firebase infrastructure design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Developer Relations &amp;amp; Content:&lt;/strong&gt; Partnering with tech brands to create high-quality developer tutorials and video series.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your team is dealing with manual bottlenecks, or if you need an expert to help architect a complex solution, check out my new site and let's get on a call.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://aryanirani123.com/" rel="noopener noreferrer"&gt;Website&lt;/a&gt;&lt;br&gt;
👉 &lt;a href="https://www.linkedin.com/in/aryanirani123/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gemini</category>
      <category>productivity</category>
      <category>showdev</category>
      <category>workspacestudio</category>
    </item>
    <item>
      <title>Chatting with your Data: Conversational Analytics in BigQuery</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Sat, 20 Jun 2026 07:45:01 +0000</pubDate>
      <link>https://dev.to/gde/chatting-with-your-data-conversational-analytics-in-bigquery-5545</link>
      <guid>https://dev.to/gde/chatting-with-your-data-conversational-analytics-in-bigquery-5545</guid>
      <description>&lt;p&gt;For the last decade, the workflow for Business Intelligence hasn't changed much: A business stakeholder asks a question, a Data Engineer writes the ad-hoc SQL, and a dashboard is built. But as data scales to the petabyte level, this reactive cycle creates massive bottlenecks.&lt;/p&gt;

&lt;p&gt;What if business users could just chat directly with the database?&lt;/p&gt;

&lt;p&gt;Enter &lt;a href="https://docs.cloud.google.com/bigquery/docs/conversational-analytics" rel="noopener noreferrer"&gt;BigQuery Conversational Analytics&lt;/a&gt;. Google Cloud has effectively turned the traditional data warehouse into an active participant. By leveraging Gemini, Conversational Analytics allows users to query massive datasets using natural language. It understands the intent, generates the complex SQL, and returns the data (or geographic visualizations) instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem with "Text-to-SQL" Toys
&lt;/h2&gt;

&lt;p&gt;We've all seen the basic "Text-to-SQL" AI wrappers on Twitter. They look great in a controlled demo, but they fall apart in production. Why? Because raw LLMs don't understand your company's unique business logic. If an AI doesn't know that your definition of "Net Profit" excludes returned items, the data it returns is not just wrong - it's dangerous.&lt;/p&gt;

&lt;p&gt;To deploy AI over enterprise data, you need strict governance.&lt;/p&gt;

&lt;p&gt;You need to be able to explicitly teach the AI your database schema. You need &lt;strong&gt;Dataplex Glossaries&lt;/strong&gt; to lock down business terminology so the AI never guesses a formula. You need &lt;strong&gt;Parameterized Verified Queries&lt;/strong&gt; to ensure highly sensitive financial reports use pre-approved SQL. And crucially, you need &lt;strong&gt;Financial Controls&lt;/strong&gt; (like Maximum Bytes Billed) so a business user asking a vague question doesn't trigger a $5,000 table scan.&lt;/p&gt;

&lt;p&gt;BigQuery Conversational Analytics isn't just an AI wrapper; it's a governed enterprise agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Playlist: Build It&amp;nbsp;Yourself
&lt;/h2&gt;

&lt;p&gt;I spent the last few weeks using this product. To show you exactly how you can get started, I recorded a 4-part vide playlist on YouTube.&lt;/p&gt;

&lt;p&gt;If you are a Data Engineer, Cloud Architect, or BI Analyst, this series will show you exactly how to build and govern your own AI data agents from scratch:&lt;/p&gt;

&lt;p&gt;📺 Part 1: The AI Reasoning Pipeline We dive into the BigQuery Studio UI and test Gemini's ability to perform comparative analysis on the Google Trends public dataset without writing a single line of SQL.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/XZuQNgChh0E"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;📺 Part 2: Building Custom Data Agents An AI can't magically understand your database schema. I show you how to connect your tables and write System Instructions to explicitly control the SQL that Gemini generates.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/HN5XqkWyCys"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;📺 Part 3: Enterprise Data Governance We tackle the hardest part of Enterprise AI. I show you how to lock down your agent using Column Metadata, Dataplex Glossaries, and strict financial controls to prevent petabyte-scale billing surprises.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/POWrsGBqsOw"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;📺 Part 4: Automating Multi-Table Relational Joins In the grand finale, we use everything we've built to force the agent to write a flawless, massive 3-table relational JOIN from a single natural language prompt.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/ZmIPW7k2mYQ"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The role of the Data Engineer is shifting from writing ad-hoc SQL to governing autonomous data pipelines. If you're building in Google Cloud, I highly recommend getting hands-on with this.&lt;/p&gt;

&lt;p&gt;You can watch the full series here: &lt;a href="https://youtube.com/playlist?list=PL_MCVBMm-9sogdOzjqIcbX-dAizXux91c&amp;amp;si=890s67FrqxYfZTeu" rel="noopener noreferrer"&gt;https://youtube.com/playlist?list=PL_MCVBMm-9sogdOzjqIcbX-dAizXux91c&amp;amp;si=890s67FrqxYfZTeu&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feel free to reach out if you have any issues/feedback at &lt;a href="mailto:aryanirani123@gmail.com"&gt;aryanirani123@gmail.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>googlecloud</category>
      <category>bigquery</category>
      <category>dataagents</category>
      <category>dataengineering</category>
    </item>
    <item>
      <title>Google Workspace Studio Tutorial: The New 'Notify by Email' Action</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Tue, 16 Jun 2026 12:19:35 +0000</pubDate>
      <link>https://dev.to/gde/google-workspace-studio-tutorial-the-new-notify-by-email-action-2400</link>
      <guid>https://dev.to/gde/google-workspace-studio-tutorial-the-new-notify-by-email-action-2400</guid>
      <description>&lt;p&gt;If you run a product or manage technical operations, you likely have a Google Sheet somewhere that acts as a dumping ground for unstructured data. Whether it's customer feedback, bug reports, or feature requests, that spreadsheet grows every single day.&lt;/p&gt;

&lt;p&gt;Manually reading through hundreds of rows every Friday just to summarize the "vibe" and identify blockers for the executive team is tedious, repetitive work.&lt;/p&gt;

&lt;p&gt;In this tutorial, we are going to completely automate that process using Google Workspace Studio.&lt;/p&gt;

&lt;p&gt;We are going to build an event-driven pipeline that wakes up on a strict schedule, extracts the raw data from your Google Sheet, natively parses the tone and urgency, and uses Gemini to output a highly-structured executive summary directly into your inbox.&lt;/p&gt;

&lt;p&gt;Here is the exact step-by-step architecture.&lt;/p&gt;

&lt;p&gt;Prefer to watch instead of read? Check out the video version of the guide here.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/S5D5Z4mQVwc"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: The Scheduled Trigger
&lt;/h2&gt;

&lt;p&gt;Instead of relying on a manual event—like a form submission or a file upload—we want this pipeline to run autonomously. In &lt;strong&gt;Workspace Studio&lt;/strong&gt;, create a new flow and set the Starter to On a schedule. You can configure this to act exactly like a cron job.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqd3hf1cwiyc0mcs112jz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqd3hf1cwiyc0mcs112jz.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configure the following fields:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Start date and time:&lt;/strong&gt; Set this to your desired starting Friday at 4:00 PM (or 8:00 AM, depending on when you want the report).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repeat:&lt;/strong&gt; Select Weekly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ends:&lt;/strong&gt; Set to 1 year (or your preferred duration).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time zone:&lt;/strong&gt; Ensure this matches your local working hours (e.g., (GMT+05:30) India Time).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: Data Extraction &amp;amp; Structuring
&lt;/h2&gt;

&lt;p&gt;Next, we need to pull the raw data into the pipeline runtime. Instead of just dumping a massive, unstructured spreadsheet directly into an LLM, we can use Workspace Studio's native Extract node to structure it first.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F81tka0sp318u7nhrwloi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F81tka0sp318u7nhrwloi.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add an &lt;strong&gt;Extract&lt;/strong&gt; node.&lt;/li&gt;
&lt;li&gt;In the "Content to analyze" field, paste the direct link to your target Google Sheet.&lt;/li&gt;
&lt;li&gt;Under "What to extract", select the predefined option: Sentiment: tone and urgency.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By doing this, Workspace Studio automatically parses the massive spreadsheet behind the scenes and generates two distinct, structured variables for our next step: &lt;code&gt;{{Tone}}&lt;/code&gt; and &lt;code&gt;{{Urgency}}&lt;/code&gt;. This significantly reduces AI hallucinations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Data Analysis (Ask Gemini)
&lt;/h2&gt;

&lt;p&gt;This is the core logic node where we take those extracted variables and format them into a readable report.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Famg3oapx8qyguvawfa89.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Famg3oapx8qyguvawfa89.png" alt=" " width="799" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add an Ask Gemini node.&lt;/li&gt;
&lt;li&gt;Click the + Variables dropdown and insert the &lt;code&gt;{{Tone}}&lt;/code&gt; and &lt;code&gt;{{Urgency}}&lt;/code&gt; variables generated from Step 2.&lt;/li&gt;
&lt;li&gt;Append strict system instructions to force a structured output.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Because the Extract node already did the heavy lifting of determining the sentiment, our runtime prompt can be incredibly simple and targeted:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You are an Ops Manager. I have automatically extracted the overall tone and urgency from our weekly customer feedback spreadsheet. Tone: {{Tone}}. Urgency: {{Urgency}}. Based on these extracted variables, generate a professional Executive Summary. Highlight the overall sentiment and summarize the urgency of the technical blockers. Format as a clean report using bullet points.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Step 4: Generating the Report (Google Docs)
&lt;/h2&gt;

&lt;p&gt;Now we need to get the output out of the pipeline and into a readable document.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjq3z3c4vmydy13s7ka7h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjq3z3c4vmydy13s7ka7h.png" alt=" " width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add a Create a doc node.&lt;/li&gt;
&lt;li&gt;Set the Title: Executive Summary: Feedback.&lt;/li&gt;
&lt;li&gt;Set the Body to the output variable from the Gemini node in Step3. &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 5: Distribution (Gmail)
&lt;/h2&gt;

&lt;p&gt;Finally, we need to distribute the report so you don't have to go digging through your Drive to find it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjlfqwbbguejlwlvyqkxd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjlfqwbbguejlwlvyqkxd.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add a Notify me by email node.&lt;/li&gt;
&lt;li&gt;Set the Subject to: &lt;strong&gt;[Automated Report] Weekly Feedback Summary&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In the Message field, copy and paste the following template. Use the + Variables dropdown to insert the dynamic variables where indicated:&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Here is your automated weekly feedback report.&lt;br&gt;
Overall Tone: {{Tone}} Urgency Level: {{Urgency}}&lt;br&gt;
You can review the full executive summary and the breakdown of technical blockers here: {{Document_Link}}&lt;br&gt;
(You can forward this document to the leadership team).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;(Note: The 'Notify me by email' node automatically sends the email directly to the account running the workflow, making it perfect for a personal executive summary.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: The Test Run &amp;amp; Output
&lt;/h2&gt;

&lt;p&gt;Before blindly turning this on, you always want to run a test to ensure your variables are mapping correctly. Click the &lt;strong&gt;Test run&lt;/strong&gt; button at the bottom of the Workspace Studio editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fla0omjlre5wvdcwp99bs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fla0omjlre5wvdcwp99bs.png" alt=" " width="800" height="778"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If everything is wired up correctly, you will see a beautiful wall of green checkmarks confirming that the pipeline successfully extracted the data, generated the document, and sent the email.&lt;/p&gt;

&lt;p&gt;Check your inbox. You should have an email waiting for you that looks like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1erhmznnlf6eqm8pfezz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1erhmznnlf6eqm8pfezz.png" alt=" " width="800" height="543"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Because we used the Extract node, the pipeline correctly identified the tone of our mock data as negative and the urgency as urgent.&lt;/p&gt;

&lt;p&gt;When you click the generated document link in the email, you'll see the real magic. Gemini successfully parsed the unstructured customer feedback, bypassed the generic complaints, and accurately identified the critical technical blockers (like the timeout errors and scheduled trigger failures).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd0ciajbnmwpvm8nxwg4u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd0ciajbnmwpvm8nxwg4u.png" alt=" " width="799" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Verdict: Moving from Manual to Event-Driven
&lt;/h2&gt;

&lt;p&gt;If you are still manually reading spreadsheets, parsing user feedback, and writing Friday summary emails from scratch, you are wasting valuable engineering and operational hours.&lt;/p&gt;

&lt;p&gt;By combining a Scheduled Trigger with the new Extract and Notify me by email nodes, we just built a highly-resilient, event-driven reporting pipeline in under 10 minutes.&lt;/p&gt;

&lt;p&gt;The beauty of this architecture is the clean separation of concerns:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Google Sheets acts as your raw data lake.&lt;/li&gt;
&lt;li&gt;Workspace Studio's Extract Node acts as your data parser (which severely reduces LLM hallucination).&lt;/li&gt;
&lt;li&gt;Gemini acts as your dedicated logic and reasoning engine.&lt;/li&gt;
&lt;li&gt;Google Docs &amp;amp; Gmail act as your automated distribution layer.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You set it up once, and every single Friday at 4:00 PM, a perfectly formatted executive summary lands in your inbox. No manual prompting required.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work With Me
&lt;/h2&gt;

&lt;p&gt;I run a specialized software consultancy focused on building custom tools, AI integrations, and automation pipelines that help engineering and ops teams move significantly faster.&lt;/p&gt;

&lt;p&gt;We just launched our brand new website, and we are currently taking on new clients. My core services include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI &amp;amp; Workspace Automation:&lt;/strong&gt; Building custom Gemini architectures (like the pipeline above) directly into your business infrastructure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom Software Development:&lt;/strong&gt; Architecting scalable web applications and internal tools from the ground up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud Architecture:&lt;/strong&gt; Secure GCP and Firebase infrastructure design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Developer Relations &amp;amp; Content:&lt;/strong&gt; Partnering with tech brands to create high-quality developer tutorials and video series.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your team is dealing with manual bottlenecks, or if you need an expert to help architect a complex solution, check out my new site and let's get on a call.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://aryanirani123.com/" rel="noopener noreferrer"&gt;Website&lt;/a&gt;&lt;br&gt;
👉 &lt;a href="https://www.linkedin.com/in/aryanirani123/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;

</description>
      <category>googleworkspace</category>
      <category>workspacestudio</category>
      <category>automation</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Connecting GCP Budget Alerts to AppSheet: A Step-by-Step Guide</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Fri, 12 Jun 2026 13:57:22 +0000</pubDate>
      <link>https://dev.to/gde/connecting-gcp-budget-alerts-to-appsheet-a-step-by-step-guide-4pda</link>
      <guid>https://dev.to/gde/connecting-gcp-budget-alerts-to-appsheet-a-step-by-step-guide-4pda</guid>
      <description>&lt;p&gt;Have you ever woken up to a massive Google Cloud bill because a developer accidentally left a cluster running, or an API got stuck in an infinite loop?&lt;/p&gt;

&lt;p&gt;Cloud "bill shock" is a rite of passage for many builders, but it can be avoided to a large extent. While Google Cloud allows you to set budget alerts that send you an email when you cross a threshold, an email doesn't stop the bleeding. By the time you see the email, log into your laptop, authenticate, navigate the Google Cloud console, and find the offending resource, you could be out hundreds or thousands of dollars.&lt;/p&gt;

&lt;p&gt;What if, instead of an email, you got a push notification on your phone with a big red "Kill Resources" button?&lt;/p&gt;

&lt;p&gt;In this comprehensive tutorial, we are going to bridge the gap between enterprise Google Cloud infrastructure and Google Workspace. We will build a serverless architecture using &lt;strong&gt;Cloud Functions&lt;/strong&gt;, &lt;strong&gt;Pub/Sub&lt;/strong&gt;, &lt;strong&gt;Google Sheets&lt;/strong&gt;, and &lt;strong&gt;AppSheet&lt;/strong&gt; to create a custom mobile app that gives you absolute, instant control over your cloud spend.&lt;/p&gt;

&lt;p&gt;Whether you are a beginner looking to understand Event-Driven Architecture, or a seasoned architect looking for a rapid Low-Code internal tool, this guide will walk you through every single click and line of code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture: How It All Connects
&lt;/h2&gt;

&lt;p&gt;Before we write code, let's understand the flow of data. Event-driven architecture means one system yells into the void, and another system is waiting to catch it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj1c4pd3q1aywjj1il0f1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj1c4pd3q1aywjj1il0f1.png" alt=" " width="800" height="943"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Google Cloud Billing detects a budget anomaly and publishes a payload to a Pub/Sub topic. Think of Pub/Sub as a massive post office.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An Ingest Cloud Function (Python) is subscribed to that post office. It catches the payload, parses the metrics, and uses the Google Sheets API to write a row to a Google Sheet.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;AppSheet (a low-code platform) reads the sheet and instantly generates a mobile UI, sending a Push Notification to your phone.&lt;br&gt;
When you tap the "Kill Resources" button in AppSheet, an AppSheet Automation Bot fires a Webhook.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A Remediation Cloud Function receives the webhook and executes a secure shutdown command against the target resource using the Google Compute API.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's build it step-by-step!&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Setting up the Database (Google Sheets)
&lt;/h3&gt;

&lt;p&gt;Why Google Sheets? Because for rapid prototyping and internal tools, a spreadsheet is the easiest database to visually debug.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open Google Sheets and create a new blank spreadsheet. Name it "Google Cloud Budget Alerts".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the first row, create the following headers exactly as written: &lt;code&gt;alert_id&lt;/code&gt;, &lt;code&gt;budget_name&lt;/code&gt;, &lt;code&gt;budget_amount&lt;/code&gt;, &lt;code&gt;current_spend&lt;/code&gt;, &lt;code&gt;threshold_percent&lt;/code&gt;, &lt;code&gt;timestamp&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;project_id&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Keep this tab open, we will need the Sheet ID from the URL later.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F25x0ds7s5jupgjtznj9q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F25x0ds7s5jupgjtznj9q.png" alt=" " width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: The Ingest Pipeline (Pub/Sub &amp;amp; Cloud Functions)
&lt;/h3&gt;

&lt;p&gt;Now we need Google Cloud to send data to our sheet whenever you spend too much money.&lt;/p&gt;

&lt;h4&gt;
  
  
  1. Create the Pub/Sub Topic
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open the Google Cloud Console and search for Pub/Sub.&lt;/li&gt;
&lt;li&gt;Click Create Topic and name it budget-alerts.
Uncheck "Add a default subscription" (our Cloud Function will create one automatically).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fljcqpoixgm8d2sw5wlw6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fljcqpoixgm8d2sw5wlw6.png" alt=" " width="800" height="802"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  2. Connect Google Cloud Billing to Pub/Sub
&lt;/h4&gt;

&lt;p&gt;This is the most critical link in the chain. We have to tell the Google Cloud Billing system to actually use the post office we just built.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the Google Cloud Console, navigate to &lt;strong&gt;Billing -&amp;gt; Budgets &amp;amp; alerts&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Create Budget&lt;/strong&gt;. Name it "development-budget".&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Amount&lt;/strong&gt;, set your target budget (e.g., $100).&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Actions&lt;/strong&gt; (this is the secret sauce), scroll down to the &lt;strong&gt;Manage notifications&lt;/strong&gt; section.&lt;/li&gt;
&lt;li&gt;Check the box for "&lt;strong&gt;Connect a Pub/Sub topic to this budget&lt;/strong&gt;".&lt;/li&gt;
&lt;li&gt;Select your Google Cloud Project and choose the &lt;code&gt;budget-alerts&lt;/code&gt; topic we just created from the dropdown. Save the budget.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2e16y5df2n09bfttns7r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2e16y5df2n09bfttns7r.png" alt=" " width="800" height="566"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Deploy the Ingest Cloud Function
&lt;/h4&gt;

&lt;p&gt;This Python script is the "glue" between the Google Cloud Billing alerts and Google Sheets.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Search for Cloud Functions in the Google Cloud console and click Create Function.&lt;/li&gt;
&lt;li&gt;Select Gen 2. Name it &lt;code&gt;ingest-budget-alert&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;In the Trigger section, select &lt;strong&gt;Cloud Pub/Sub&lt;/strong&gt; and choose your &lt;code&gt;budget-alerts&lt;/code&gt; topic.&lt;/li&gt;
&lt;li&gt;Expand the Runtime, build, connections and security settings, and add an Environment Variable named &lt;code&gt;SPREADSHEET_ID&lt;/code&gt;. Paste the ID found in your Google Sheet's URL.&lt;/li&gt;
&lt;li&gt;Click Next. Change the Runtime to Python 3.11.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In your &lt;code&gt;requirements.txt&lt;/code&gt;, add these libraries so GCP knows what packages to install:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;functions-framework==3.*
google-api-python-client==2.*
google-auth==2.*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In your main.py, paste this code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;base64&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;uuid&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;functions_framework&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;googleapiclient.discovery&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;google.auth&lt;/span&gt;

&lt;span class="c1"&gt;# 1. Initialize Google Sheets client securely
&lt;/span&gt;&lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;google&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;default&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scopes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;https://www.googleapis.com/auth/spreadsheets&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;sheets_service&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sheets&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;v4&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nd"&gt;@functions_framework.cloud_event&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;ingest_budget_alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cloud_event&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;SPREADSHEET_ID&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;SPREADSHEET_ID&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 2. Decode the incoming message from Pub/Sub
&lt;/span&gt;    &lt;span class="n"&gt;pubsub_message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;base64&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;b64decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cloud_event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;message&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;data&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]).&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;utf-8&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;alert_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pubsub_message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 3. Extract the exact metrics we care about
&lt;/span&gt;    &lt;span class="n"&gt;cost_amount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alert_data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;costAmount&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;budget_amount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alert_data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;budgetAmount&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;budget_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;alert_data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;budgetDisplayName&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Unknown Budget&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;threshold_percent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cost_amount&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;budget_amount&lt;/span&gt;
    &lt;span class="n"&gt;alert_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uuid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uuid4&lt;/span&gt;&lt;span class="p"&gt;())[:&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;timestamp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;utcnow&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;isoformat&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;project_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;GCP_PROJECT&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;my-test-project&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 4. Format the row and push to Google Sheets
&lt;/span&gt;    &lt;span class="n"&gt;row_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="n"&gt;alert_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;budget_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cost_amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cost_amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
        &lt;span class="n"&gt;threshold_percent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;PENDING&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;project_id&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;values&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;row_data&lt;/span&gt;&lt;span class="p"&gt;]}&lt;/span&gt;

    &lt;span class="n"&gt;sheets_service&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;spreadsheets&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;values&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;spreadsheetId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;SPREADSHEET_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Sheet1!A:H&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;valueInputOption&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;USER_ENTERED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;
    &lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;✅ Appended alert to Google Sheet.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Crucial Step:&lt;/strong&gt; When the function deploys, go to its "Details" page and find the &lt;strong&gt;Service Account&lt;/strong&gt; email it is using (usually looks like &lt;code&gt;123456789-compute@developer.gserviceaccount.com&lt;/code&gt;). You must go to your Google Sheet, click the "Share" button, and add this email as an Editor! Otherwise, the script will get a Permission Denied error.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Building the Low-Code Mobile App
&lt;/h3&gt;

&lt;p&gt;We have data flowing into a spreadsheet. Now let's turn that spreadsheet into a mobile app in under 60 seconds without writing a single line of iOS or Android code.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;AppSheet.com&lt;/strong&gt; and log in with your Google account.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Create -&amp;gt; App -&amp;gt; Start with your own data&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the "Google Cloud Budget Alerts" Google Sheet.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;AppSheet will analyze your columns and instantly generate a working mobile app on your screen!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx8y8u2bt67tjwelp1nub.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx8y8u2bt67tjwelp1nub.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating the "Kill Switch" Action
&lt;/h3&gt;

&lt;p&gt;We need a giant red button to press when disaster strikes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the left-hand menu, click on the Actions icon (the lightning bolt).&lt;/li&gt;
&lt;li&gt;Click + New Action.&lt;/li&gt;
&lt;li&gt;Configure it exactly like this:&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Action Name: Kill Resources&lt;/li&gt;
&lt;li&gt;For a record of this table: alerts&lt;/li&gt;
&lt;li&gt;Do this: Data: set the values of some columns in this row&lt;/li&gt;
&lt;li&gt;Set these columns: Choose status from the dropdown, and type "SHUTDOWN_REQUESTED" in the formula box.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;4.Go to Appearance, choose a stop sign icon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo59us6cwsruk9xyexogf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo59us6cwsruk9xyexogf.png" alt=" " width="800" height="628"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: The Remediation Engine (The Webhook)
&lt;/h3&gt;

&lt;p&gt;Pressing a button in an app doesn't magically turn off a server on Google Cloud. We need Google Cloud to listen to AppSheet. We will deploy a second Cloud Function, this time with an &lt;strong&gt;HTTP Trigger&lt;/strong&gt;, that acts as our Remediation Engine.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go back to Cloud Functions and Create a new Function.&lt;/li&gt;
&lt;li&gt;Name it &lt;code&gt;remediate-budget-alert&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;For the trigger, select &lt;strong&gt;HTTPS&lt;/strong&gt; and choose "Allow unauthenticated invocations" (for this tutorial).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copy the Trigger URL&lt;/strong&gt; shown on the screen! You will need this for AppSheet.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is the Python code for &lt;code&gt;main.py&lt;/code&gt;. This script listens for the HTTP request, verifies you actually pressed the button, and uses the Compute API to forcefully stop a virtual machine.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;functions_framework&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;googleapiclient.discovery&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;build&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;google.auth&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;default&lt;/span&gt;

&lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;default&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;compute&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;compute&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;v1&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nd"&gt;@functions_framework.http&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;remediate_resource&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="c1"&gt;# 1. Parse the JSON sent by AppSheet
&lt;/span&gt;    &lt;span class="n"&gt;request_json&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;silent&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;request_json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;status&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;project_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;request_json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;project_id&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 2. Security Check: Ensure the button was actually pressed
&lt;/span&gt;    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SHUTDOWN_REQUESTED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Ignoring status&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;

    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;🚨 SHUTDOWN AUTHORIZED. Commencing remediation...&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 3. The Kill Command!
&lt;/span&gt;    &lt;span class="c1"&gt;# (Hardcoded for this tutorial, but can be dynamic based on the payload)
&lt;/span&gt;    &lt;span class="n"&gt;ZONE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;us-central1-a&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
    &lt;span class="n"&gt;INSTANCE_NAME&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;demo-kill-switch-vm&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;

    &lt;span class="n"&gt;request&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;compute&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;instances&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;stop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;project_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zone&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;ZONE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;instance&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;INSTANCE_NAME&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Shutdown successful&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 5: Closing the Loop (The Automation Bot)
&lt;/h3&gt;

&lt;p&gt;Finally, we tell AppSheet to hit that HTTP URL whenever you press the red Kill Switch button.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In AppSheet, go to the Automation tab (the robot icon).&lt;/li&gt;
&lt;li&gt;Click Create my first Bot -&amp;gt; Create a new Bot. Name it "Trigger Kill Switch".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Event&lt;/strong&gt;: Select Data Change -&amp;gt; Updates Only on the alerts table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Condition&lt;/strong&gt;: Type exactly [status] = "SHUTDOWN_REQUESTED".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Action Step&lt;/strong&gt;: Select Call a webhook.&lt;/li&gt;
&lt;li&gt;Paste your Cloud Function HTTP URL from Step 4. Set the HTTP Verb to POST.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In the JSON Body, paste this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;&amp;lt;[status]&amp;gt;&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"project_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;&amp;lt;YOUR_PROJECT_ID&amp;gt;&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"alert_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;&amp;lt;[alert_id]&amp;gt;&amp;gt;"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F32n887jqdm0ju2ui57pm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F32n887jqdm0ju2ui57pm.png" alt=" " width="800" height="542"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Testing the End-to-End System (The Demo)
&lt;/h3&gt;

&lt;p&gt;A tutorial isn't complete until we prove that it works! We don't want to actually wait for our cloud bill to skyrocket to test this, so we will simulate a mock billing alert.&lt;/p&gt;

&lt;h4&gt;
  
  
  1. Send a Mock Payload
&lt;/h4&gt;

&lt;p&gt;Open your terminal or Google Cloud Shell and create a script named &lt;code&gt;test_alert.sh&lt;/code&gt;. Paste the following code, replacing &lt;code&gt;YOUR_PROJECT_ID&lt;/code&gt; with your actual Project ID:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
&lt;span class="nv"&gt;PROJECT_ID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"YOUR_PROJECT_ID"&lt;/span&gt;
&lt;span class="nv"&gt;TOPIC_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"budget-alerts"&lt;/span&gt;

&lt;span class="nv"&gt;PAYLOAD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'{
  "budgetDisplayName": "development-budget",
  "alertThresholdExceeded": 1.0,
  "costAmount": 150.00,
  "budgetAmount": 100.00
}'&lt;/span&gt;
&lt;span class="nv"&gt;ENCODED_PAYLOAD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$PAYLOAD&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | &lt;span class="nb"&gt;base64&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;

gcloud pubsub topics publish &lt;span class="nv"&gt;$TOPIC_NAME&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;--project&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$PROJECT_ID&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;--message&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$ENCODED_PAYLOAD&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the script. This instantly fires a "100% budget exceeded" alert into our architecture.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. Watch the Data Flow
&lt;/h4&gt;

&lt;p&gt;Immediately check your Google Sheet. You will see a brand new row pop up instantly with the alert data and a status of &lt;code&gt;PENDING&lt;/code&gt;. Check your phone or browser where AppSheet is open. Within seconds, a Push Notification will arrive: "&lt;strong&gt;🚨 GCP Budget Alert!&lt;/strong&gt;".&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Hit the Kill Switch
&lt;/h4&gt;

&lt;p&gt;Open the AppSheet app. You will see the new &lt;code&gt;development-budget&lt;/code&gt; alert in the UI. Tap the alert, and smash that red Kill Resources button we built in Step 3.&lt;/p&gt;

&lt;h4&gt;
  
  
  4. Verify the Shutdown
&lt;/h4&gt;

&lt;p&gt;The moment you press that button, AppSheet fires the webhook to our Remediation Cloud Function. Navigate to &lt;strong&gt;Compute Engine -&amp;gt; VM Instances&lt;/strong&gt; in your Google Cloud Console. You will see your target test VM's status transition from &lt;code&gt;RUNNING&lt;/code&gt; to &lt;code&gt;TERMINATED&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You have successfully built an event-driven, zero-latency cloud control system.&lt;/p&gt;

&lt;p&gt;By combining the robustness of Google Cloud Functions with the rapid UI generation of AppSheet and Google Sheets, you've created a powerful internal tool. This architecture is incredibly extensible: in the future, you could modify the Python code to dynamically revoke IAM permissions, disable billing accounts entirely, or integrate with Cloud Monitoring for sub-minute predictive alerting.&lt;/p&gt;

&lt;p&gt;The next time your cloud bill starts to spike, you won't need to scramble for your laptop. You just need to reach into your pocket.&lt;/p&gt;

</description>
      <category>googlecloud</category>
      <category>appsheet</category>
      <category>finops</category>
      <category>cloudbilling</category>
    </item>
    <item>
      <title>Building a Content Pipeline: A Guide to the Workspace Studio + Gems Integration</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Wed, 10 Jun 2026 11:14:05 +0000</pubDate>
      <link>https://dev.to/gde/building-a-content-pipeline-a-guide-to-the-workspace-studio-gems-integration-e3n</link>
      <guid>https://dev.to/gde/building-a-content-pipeline-a-guide-to-the-workspace-studio-gems-integration-e3n</guid>
      <description>&lt;p&gt;Google just rolled out a major quality-of-life update for developers and ops teams: &lt;a href="https://workspaceupdates.googleblog.com/2026/04/use-your-gems-in-your-google-workspace-studio-flows.html" rel="noopener noreferrer"&gt;Custom Gems are now officially live inside Google Workspace Studio&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If your day-to-day involves building automations or wiring up LLMs, you already know how tedious prompt wrangling can get. You spend half your time managing context windows and copying/pasting massive system prompts just to ensure the AI returns a consistent output. This integration essentially automates away that headache.&lt;/p&gt;

&lt;p&gt;In this tutorial, I'll break down exactly what Custom Gems are, why they matter for your workflow, and how we can use them to build a fully automated "Content Engine"—a system that intercepts rough text, extracts the raw data, and feeds it directly into a custom Ghostwriter Gem to generate perfectly formatted social media posts.&lt;/p&gt;

&lt;p&gt;Prefer to watch instead of read? Check out the video version of the guide here.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/6F2Y3VMrhMc"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  What are Custom Gems?
&lt;/h2&gt;

&lt;p&gt;If you’ve used OpenAI’s Custom GPTs, you already understand the basic concept. A Custom Gem is a specialized, pre-configured version of Gemini. Instead of starting from a blank chat interface every time, you define the AI's behavior once and save it as a reusable expert.&lt;/p&gt;

&lt;p&gt;When building a Gem, you configure three main elements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Persona &amp;amp; Instructions:&lt;/strong&gt; This is your foundational system prompt. You define exactly who the Gem is (e.g., "Technical SEO Copywriter" or "Senior Data Analyst"), the rules it must follow, and the strict structure of its output (like JSON, markdown tables, or specific code blocks).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Knowledge Grounding:&lt;/strong&gt; You can upload static files (PDFs, codebases, style guides) or link the Gem directly to live Google Drive documents. This gives the AI a dedicated context window based only on your company's actual data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Constraints:&lt;/strong&gt; Hard boundaries on what the AI should and shouldn't do, which is critical for keeping automated outputs predictable.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why this changes the automation stack
&lt;/h3&gt;

&lt;p&gt;Having a custom chatbot in your browser is helpful, but the real power unlocks when you bring Gems into &lt;strong&gt;Google Workspace Studio&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of treating the Gem as a chatbot you have to manually converse with, Workspace Studio allows you to plug that custom Gem directly into automated, background workflows as an agent.&lt;/p&gt;

&lt;p&gt;Rather than manually pasting text into an AI window, you can now build event-driven architecture. For example:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;A new rough draft gets dropped into a specific Google Drive folder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Workspace Studio triggers automatically, intercepting the file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The raw text is routed to your custom "Editor Gem."&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Gem processes the text based on its pre-saved rules and knowledge base.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The polished output is automatically routed into a new Google Doc, a Slack channel, or a content scheduler.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You set up the prompt architecture once, and the AI runs in the background. No manual tweaking, no babysitting.&lt;/p&gt;

&lt;p&gt;Let's look at how to actually build this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building a Zero-Touch Content Engine
&lt;/h2&gt;

&lt;p&gt;To show you how this actually works in practice, I built an automated pipeline that takes my messy, unformatted brain-dumps and turns them into ready-to-publish social posts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Part 1: Creating and Configuring the Custom Gem
&lt;/h3&gt;

&lt;p&gt;Before building the automation pipeline, we need to configure the specialized "brain" that will handle our text transformation. A Custom Gem allows us to define strict boundaries, formatting rules, and system instructions once, making them reusable across any workflow.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1: Open the Gems Interface
&lt;/h4&gt;

&lt;p&gt;Navigate to your &lt;a href="https://gemini.google.com/" rel="noopener noreferrer"&gt;Gemini&lt;/a&gt; interface and locate the Gems Manager panel. Click on New Gem to initialize a blank workspace.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feir5rmbqlrw2q69g1lwb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feir5rmbqlrw2q69g1lwb.png" alt=" " width="800" height="521"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 2: Name and Describe Your Gem
&lt;/h4&gt;

&lt;p&gt;Once you reached the Gems dashboard, go ahead and click on New Gem.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg37bztva6pwixkapy87z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg37bztva6pwixkapy87z.png" alt=" " width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the configuration panel, give your Gem a clear name and a concise description. This helps identify the correct node later inside Workspace Studio.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Name:&lt;/strong&gt; My Technical Ghostwriter&lt;br&gt;
&lt;strong&gt;Description:&lt;/strong&gt; Transforms raw transcripts and markdown brain-dumps into structured LinkedIn and Twitter posts.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0qnbzb115l7tf1wolj55.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0qnbzb115l7tf1wolj55.png" alt=" " width="800" height="490"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 3: Insert the Technical System Instructions
&lt;/h4&gt;

&lt;p&gt;In the &lt;strong&gt;Instructions box&lt;/strong&gt;, paste the exact rules governance for your AI. To ensure the output remains highly professional, engineering-focused, and free of typical marketing clichés, use the following structured prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You are an expert technical ghostwriter for a Google Developer Expert (GDE) who focuses on automation, cloud infrastructure, and AI engineering. &lt;br&gt;
Your job is to take raw brain-dumps or video transcripts and turn them into highly engaging social media posts (LinkedIn and Twitter).&lt;br&gt;
CRITICAL RULES FOR YOUR TONE:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Never use AI fluff: Do not use words like "delve", "tapestry", "unlocking potential", "supercharge", or "game-changer."&lt;/li&gt;
&lt;li&gt;Keep it punchy: Use short, direct sentences. Write like an engineer explaining something cool to another engineer over coffee.&lt;/li&gt;
&lt;li&gt;Focus on the "How" and "Why": Always highlight the exact technical architecture or the exact problem being solved.&lt;/li&gt;
&lt;li&gt;No heavy emojis: Use a maximum of 1 or 2 emojis per post. Never use rocket ships or fire emojis. Use simple structural emojis like 1️⃣ or 💬 if explaining a pipeline.&lt;/li&gt;
&lt;li&gt;Formatting: Always include a clear hook (the problem), the architecture (the solution), and a call to action at the bottom.
When provided with a raw transcript, generate exactly ONE LinkedIn post and ONE Twitter thread based on the content.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsmw6vgpmuet0ifkv67pl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsmw6vgpmuet0ifkv67pl.png" alt=" " width="799" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4: Save and Test the Gem
&lt;/h4&gt;

&lt;p&gt;Click Save in the top right corner. Run a quick manual test by dropping a messy paragraph into the chat window to ensure it strictly follows the formatting constraints and outputs exactly one LinkedIn post and one Twitter thread.&lt;/p&gt;

&lt;h3&gt;
  
  
  Part 2: Building the Workspace Studio Automation Pipeline
&lt;/h3&gt;

&lt;p&gt;With the Gem ready, open &lt;strong&gt;Google Workspace Studio&lt;/strong&gt; to build the event-driven architecture. The pipeline will contain 5 distinct blocks.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;[Drive Trigger] ➔ [Extract Text] ➔ [Ask a Gem] ➔ [Create Doc] ➔ [Google Chat Notification]&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  Step 1: Set Up the Google Drive Trigger
&lt;/h4&gt;

&lt;p&gt;We want the automation to watch a specific folder for incoming raw materials.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Add a new Trigger node to the canvas.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select Google Drive as the app and choose When an item is added to a folder as the event.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select or create a folder in your Drive named Raw Transcripts.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcum9t21bdkd42qxsfg1l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcum9t21bdkd42qxsfg1l.png" alt=" " width="799" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 2: Add the File Extraction Block
&lt;/h4&gt;

&lt;p&gt;Workspace Studio needs to read the contents of the uploaded file rather than just passing the file object itself.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go ahead and click on &lt;strong&gt;Choose a step&lt;/strong&gt;, and select &lt;strong&gt;Extract under AI Actions&lt;/strong&gt;. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpnhfu72oo83a3gyptwli.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpnhfu72oo83a3gyptwli.png" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Map the file ID from Step 1 into this block and define the output variable name as &lt;code&gt;Raw Text&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5l09qsk17enzgdcpzr85.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5l09qsk17enzgdcpzr85.png" alt=" " width="799" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 3: Integrate the Custom Gem Node
&lt;/h4&gt;

&lt;p&gt;This is where we call our pre-configured expert.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add a new action block and select Ask a Gem.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm6v38issb5sn82hrrvyn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm6v38issb5sn82hrrvyn.png" alt=" " width="799" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.In the configuration settings, locate the Gem dropdown menu and select My Technical Ghostwriter.&lt;/p&gt;

&lt;p&gt;3.In the Prompt field, map the dynamic text variable from your extraction block. Use a clean, direct instruction:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please process the following transcript and generate the social media posts exactly as instructed in your system prompt. Here is the raw transcript text: {{Step 2: Raw Text}}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F312uu0vuawhsszqa8p75.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F312uu0vuawhsszqa8p75.png" alt=" " width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4: Generate the Finalized Google Document
&lt;/h4&gt;

&lt;p&gt;Instead of leaving the output in a log, we route it directly into a clean document for review.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go ahead and click on Add step, followed by adding the &lt;strong&gt;Create a Doc&lt;/strong&gt; action block to the workflow.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuh9fyncr5e8flfbr1tyd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuh9fyncr5e8flfbr1tyd.png" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Set the Document Title to Social Draft - {{Step1: Name of item}}.&lt;/p&gt;

&lt;p&gt;3.Map the body/content text field to the output generated by the Ask a Gem block in Step 3.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5j31fxzt0j5glsq96qk2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5j31fxzt0j5glsq96qk2.png" alt=" " width="799" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 5: Configure the Google Chat Notification
&lt;/h4&gt;

&lt;p&gt;To eliminate the need to check Google Drive constantly, the final step pings your workspace chat when the task is complete.&lt;/p&gt;

&lt;p&gt;1.Add a Google Chat action block. Select Notify me in Chat.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7zphd0s0z52hewmj9lkr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7zphd0s0z52hewmj9lkr.png" alt=" " width="799" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Construct a clean notification payload that passes the direct URL of the freshly created document:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;💬 Content Engine update: A new social media draft is ready for review.&lt;br&gt;
🔗 Edit Document: {{Step 4: Link to doc}}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmbqfri2usg7epjx6bv1y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmbqfri2usg7epjx6bv1y.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Part 3: The Test Run
&lt;/h3&gt;

&lt;p&gt;Before pushing this live, Workspace Studio has a built-in &lt;strong&gt;Test run&lt;/strong&gt; feature.&lt;/p&gt;

&lt;p&gt;When you click "Test run", it lets you select an existing file that is currently sitting in your target Google Drive folder. It will execute the entire pipeline against that specific file—extracting the text, prompting the Gem, and generating the Doc—without actually enabling the background listener.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foq6azuw6esr5darp4fqh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foq6azuw6esr5darp4fqh.png" alt=" " width="799" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you verify the output formatting is exactly how you want it, you just click "Turn on" to set the automation live.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1c4thsskxekvzedl4v3n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1c4thsskxekvzedl4v3n.png" alt=" " width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once the workflow finishes executing, open the newly created document inside Google Drive or click the link delivered to your Google Chat workspace.&lt;/p&gt;

&lt;p&gt;The output is split exactly into the two requested formats—one comprehensive LinkedIn post and one structured Twitter thread—while strictly respecting our anti-fluff boundaries:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy8kizmuc6lucfwaphsdw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy8kizmuc6lucfwaphsdw.png" alt=" " width="800" height="528"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Why This Test Success Matters
&lt;/h4&gt;

&lt;p&gt;Looking closely at the output, the Custom Gem followed every single negative constraint and structural guardrail perfectly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Zero Marketing Fluff: There are no instances of generic buzzwords like "delve," "tapestry," or "game-changer."&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Engineering Tone: The language is conversational but technically grounded, describing the setup as a "3-step architecture" and an "event-driven flow."&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Emoji Discipline: The post uses exactly two structural numbering emojis (1️⃣, 2️⃣) instead of being cluttered with unnecessary fire or rocket graphics.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Perfect Formatting: Both formats lead with a distinct problem-focused hook, detail the underlying pipeline mechanics, and close with a clear call to action.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;By moving away from manual chat interfaces and embedding Custom Gems directly into Google Workspace Studio, you transform an LLM from a passive assistant into an active, automated node in your development stack.&lt;/p&gt;

&lt;p&gt;You write the architecture rules once, and the engine runs seamlessly in the background whenever new data enters your pipeline.&lt;/p&gt;

</description>
      <category>workspacestudio</category>
      <category>googleworkspace</category>
      <category>automation</category>
      <category>geminigems</category>
    </item>
    <item>
      <title>Building an AI Sales RFP Assistant with Google Workspace Studio &amp; NotebookLM</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Mon, 08 Jun 2026 08:08:51 +0000</pubDate>
      <link>https://dev.to/gde/building-an-ai-sales-rfp-assistant-with-google-workspace-studio-notebooklm-3cl</link>
      <guid>https://dev.to/gde/building-an-ai-sales-rfp-assistant-with-google-workspace-studio-notebooklm-3cl</guid>
      <description>&lt;p&gt;If you are a Sales Engineer or Account Executive, you know that responding to a Request for Proposal (RFP) is a massive time sink. When a potential client asks, "Can you prove you've done this before?", you have to dig through Google Drive, read half a dozen old case studies, and manually copy-paste metrics to draft a response.&lt;/p&gt;

&lt;p&gt;In this tutorial, we are going to automate the hardest part of RFP writing: the research.&lt;/p&gt;

&lt;p&gt;Using &lt;strong&gt;Google Workspace Studio&lt;/strong&gt; and &lt;strong&gt;NotebookLM&lt;/strong&gt;, we are going to build an AI Research Assistant. When a salesperson drops an RFP into a Google Form, the workflow will instantly search your company's past case studies, map the client's requirements to your proven metrics, and generate a customized Google Doc draft for the sales team to review.&lt;/p&gt;

&lt;p&gt;Prefer to watch instead of read? Check out the video version of the guide here.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/0fA2OgAXLlQ"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  The Traditional Workflow:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Receive an RFP.&lt;/li&gt;
&lt;li&gt;Search Google Drive for "Cloud Migration Case Study".&lt;/li&gt;
&lt;li&gt;Read through three old PDFs to find the one that mentions "cost savings."&lt;/li&gt;
&lt;li&gt;Copy the metrics into a new Google Doc.&lt;/li&gt;
&lt;li&gt;Spend an hour drafting the executive summary.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The New AI Workflow:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Submit the RFP requirements via a Google Form.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workspace Studio&lt;/strong&gt; asks &lt;strong&gt;NotebookLM&lt;/strong&gt; to cross-reference the client's needs against your uploaded case studies.&lt;/li&gt;
&lt;li&gt;Workspace Studio instantly creates a new Google Doc with a customized, metric-driven draft and pings the sales team in Google Chat.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Step-by-Step Build Guide
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prerequisites: Setting up NotebookLM
&lt;/h3&gt;

&lt;p&gt;Before building the automation, we need to build the brain.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;NotebookLM&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Create a new Notebook named "Past Proposals &amp;amp; Case Studies".&lt;/li&gt;
&lt;li&gt;Upload your company's best marketing materials, case studies, and winning RFPs. &lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 1: Configure the Starter (Google Forms)
&lt;/h3&gt;

&lt;p&gt;Open Google Workspace Studio. We want to trigger this flow whenever the sales team has a new lead.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose a starter.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;When a form response comes in&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyy77opsj1ejhdmsvj9md.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyy77opsj1ejhdmsvj9md.png" alt=" " width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Select the specific Google Form your team uses for RFP Intake. (Your form should ask for things like Client Name, Industry, and Core Requirements).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxsap5op3o4pzkexst03z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxsap5op3o4pzkexst03z.png" alt=" " width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: The Reasoning Engine (NotebookLM)
&lt;/h3&gt;

&lt;p&gt;This is where we map the incoming form data to our internal docs.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on Choose a step: NotebookLM -&amp;gt; Ask NotebookLM.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbuy0tfhtylpxa3th6q2t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbuy0tfhtylpxa3th6q2t.png" alt=" " width="799" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Point it to the notebook you created in Step 0.&lt;br&gt;
3.Click the + Variables button to inject the form responses into your prompt.&lt;/p&gt;

&lt;p&gt;Here is the exact prompt I used:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You are an RFP drafter. Review the client requirements below. &lt;br&gt;
Search our past case studies and map our existing capabilities to these requirements. Pull the exact ROI metrics from our past work. Draft a 3-paragraph executive summary addressing their specific needs.&lt;br&gt;
Client Name: {{Step1: Client Name}}&lt;br&gt;
Client Industry: {{Step1: Client Industry}}&lt;br&gt;
Core Requirements: {{Step1: Core RFP Requirements}}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flq3ucbkefndlqgm7w291.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flq3ucbkefndlqgm7w291.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Generating the Output (Google Docs)
&lt;/h3&gt;

&lt;p&gt;We want a collaborative document, not just a block of text in an email.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on Add a step: Google Docs -&amp;gt; Create Document.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkwia3plawr6se0ctqks0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkwia3plawr6se0ctqks0.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;New doc name:&lt;/strong&gt; RFP Draft - {{Step1: Client Name}}&lt;br&gt;
3.&lt;strong&gt;Content to add:&lt;/strong&gt; Map the {{NotebookLM Output}} variable here.&lt;br&gt;
4.&lt;strong&gt;Location for new doc:&lt;/strong&gt; Select a specific Drive folder.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftwr77uqno3hzp6t5vmvo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftwr77uqno3hzp6t5vmvo.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: The Alert (Google Chat)
&lt;/h3&gt;

&lt;p&gt;Finally, let’s send a chat message when the draft is ready.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on Add step: Google Chat -&amp;gt; Notify me in Chat.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl9sd2qyk74dm3ubv9hrp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl9sd2qyk74dm3ubv9hrp.png" alt=" " width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Map it to your channel and use this payload:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;🎉 New RFP Draft Generated! &lt;br&gt;
The initial research for {{Step1: Client Name}} is done. &lt;br&gt;
Review and edit the draft here: {{Step3: Link to doc}}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8d140fsxbf738hu7mwu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8d140fsxbf738hu7mwu.png" alt=" " width="799" height="441"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Test Run
&lt;/h2&gt;

&lt;p&gt;Workspace Studio has a built-in test runner at the bottom of the canvas. To test it, I submitted a mock RFP for a fictional bank asking for a cloud migration with a strict 99.99% SLA and a 25% cost reduction.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbuav3580stgkobadxgs0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbuav3580stgkobadxgs0.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hit Test run. 15 seconds later, my Google Chat pinged with a link to a newly generated Google Doc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7px2xonmvd5ur8rc4woc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7px2xonmvd5ur8rc4woc.png" alt=" " width="800" height="604"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the exact output NotebookLM generated and dumped into the Doc:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc91a0ky0sf7ccjlx1l7f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc91a0ky0sf7ccjlx1l7f.png" alt=" " width="800" height="490"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Look closely at how NotebookLM structured that response. It didn't just summarize a document; it actively reasoned against the prompt. The mock RFP asked for a 25% cost reduction and a 99.99% SLA. NotebookLM searched the knowledge base, ignored the irrelevant cybersecurity and data analytics case studies, and extracted the exact metrics from our cloud migration case study.&lt;/p&gt;

&lt;p&gt;It confidently stated: "we stabilized the client's environment to a guaranteed 99.999% SLA" and "yielded a verified 42.4% reduction in TCO." It even included citation markers (e.g., [1], [3]) so you can trace exactly which source document it pulled the data from.&lt;/p&gt;

&lt;p&gt;By using Workspace Studio as the orchestration layer and NotebookLM as the grounded reasoning engine, we bypassed the biggest issue with LLMs in enterprise environments: hallucination.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond RFPs: Scaling This Pattern
&lt;/h2&gt;

&lt;p&gt;The architecture we just built is essentially a "Form-Triggered Research Agent," and you can apply this exact same template to dozens of other use cases across your organization:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;HR Onboarding:&lt;/strong&gt; Trigger a flow when a new hire submits their role and department via a form. NotebookLM reads your massive employee handbook and auto-generates a customized 30-day onboarding checklist in a Google Doc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Customer Support:&lt;/strong&gt; When a complex technical ticket is logged, Workspace Studio asks NotebookLM to search your internal troubleshooting wikis and drafts a technical response directly in Chat for the support engineer to review.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Legal Contract Drafting:&lt;/strong&gt; Intake a vendor's basic details via a form, and have NotebookLM query your standard legal templates to generate an initial MSA draft.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The days of writing boilerplate Python scripts to string together basic RAG (Retrieval-Augmented Generation) pipelines are fading. With native integration inside Workspace Studio, you can build, test, and deploy grounded enterprise workflows in minutes.&lt;/p&gt;

&lt;p&gt;(Standard disclaimer: As impressive as this is, NotebookLM explicitly warns in the UI that it can be inaccurate. Always have a human review the metrics before sending a proposal to a client!)&lt;/p&gt;

</description>
      <category>workspacestudio</category>
      <category>googleworkspace</category>
      <category>automation</category>
      <category>notebooklm</category>
    </item>
    <item>
      <title>Automating Document Review with Google Workspace Studio and NotebookLM</title>
      <dc:creator>Aryan Irani</dc:creator>
      <pubDate>Thu, 04 Jun 2026 08:53:08 +0000</pubDate>
      <link>https://dev.to/gde/automating-document-review-with-google-workspace-studio-and-notebooklm-4p6e</link>
      <guid>https://dev.to/gde/automating-document-review-with-google-workspace-studio-and-notebooklm-4p6e</guid>
      <description>&lt;p&gt;If you work in IT, Legal, or Procurement, you know the pain of the Vendor Security Review. A vendor emails you a 50-page PDF outlining their privacy terms, and you have to manually cross-reference their document against your company’s internal Standard Operating Procedures (SOPs).&lt;/p&gt;

&lt;p&gt;It is tedious, time-consuming, and highly prone to human error. What if they sneaked in a clause about 72-hour breach notifications when your policy strictly mandates 24 hours?&lt;/p&gt;

&lt;p&gt;In this tutorial, we are going to fix that. We will build a fully automated workflow using &lt;strong&gt;Google Workspace Studio&lt;/strong&gt; and &lt;strong&gt;NotebookLM&lt;/strong&gt; that intercepts these documents, reads them, reasons against your internal rules, and instantly alerts you of any violations in Google Chat.&lt;/p&gt;

&lt;p&gt;Check out the official update around the &lt;a href="https://workspaceupdates.googleblog.com/2026/05/notebooklm-in-workspace-studio.html" rel="noopener noreferrer"&gt;NotebookLM and Google Workspace Studio Integration&lt;/a&gt;. &lt;/p&gt;

&lt;h3&gt;
  
  
  The Traditional Workflow:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Receive an email with a vendor PDF.&lt;/li&gt;
&lt;li&gt;Download the PDF.&lt;/li&gt;
&lt;li&gt;Open your 30-page internal compliance rulebook.&lt;/li&gt;
&lt;li&gt;Spend 45 minutes using Ctrl+F and reading legalese to find discrepancies.&lt;/li&gt;
&lt;li&gt;Write up a summary email of the risks and send it to the team.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The New AI Workflow:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Receive an email with a vendor PDF.&lt;/li&gt;
&lt;li&gt;Workspace Studio automatically saves the file, extracts the text, and asks NotebookLM to grade the vendor against your rulebook.&lt;/li&gt;
&lt;li&gt;10 seconds later, you receive a bulleted risk summary in Google Chat.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why Workspace Studio &amp;amp; NotebookLM?
&lt;/h2&gt;

&lt;p&gt;This architecture is incredibly powerful because it separates the automation from the reasoning.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Workspace Studio&lt;/strong&gt; acts as the connective tissue (the hands). It handles the Gmail triggers, Drive storage, text extraction, and Chat messaging.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;NotebookLM&lt;/strong&gt; acts as the grounded reasoning engine (the brain). By uploading your company SOPs directly into a Notebook, you ensure the AI's analysis is strictly grounded in your unique corporate rules, eliminating hallucinations.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Beyond Vendor Compliance: Make it Your Own!
&lt;/h2&gt;

&lt;p&gt;While we are building a &lt;strong&gt;Vendor Compliance checker&lt;/strong&gt; today, you can tweak this exact architecture to automate dozens of other workflows simply by changing the source document in NotebookLM and adjusting the prompt:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HR / Recruiting:&lt;/strong&gt; Upload your ideal Job Description to NotebookLM. Have Studio intercept emails with resumes, and output a candidate grading summary to Chat.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Legal / Contract Review:&lt;/strong&gt; Upload your standard Master Services Agreement (MSA). Have Studio intercept third-party redlines and flag unapproved changes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sales / RFP Responses:&lt;/strong&gt; Upload your product documentation. Have Studio intercept incoming RFPs and draft the initial technical responses.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Step-by-Step Build Guide
&lt;/h2&gt;

&lt;p&gt;Let's build the workflow!&lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisites: Setting up NotebookLM
&lt;/h3&gt;

&lt;p&gt;Before building the automation, we need to create the "brain."&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Head over to NotebookLM.&lt;/li&gt;
&lt;li&gt;Create a new Notebook and name it "Compliance &amp;amp; SOPs".&lt;/li&gt;
&lt;li&gt;Upload your company's baseline rulebooks (e.g., your Data Privacy Standards, ISO 27001 requirements, etc.).&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Pro Tip: You can manage up to 300 sources per notebook, with each source containing up to 500,000 words. You can dump all your governance documents here!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 1: Configure the Starter (Gmail)
&lt;/h3&gt;

&lt;p&gt;Open Google Workspace Studio and create a new flow. We need to trigger this automation whenever a new document arrives.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click Choose a starter.&lt;/li&gt;
&lt;li&gt;Select Gmail -&amp;gt; New Email.&lt;/li&gt;
&lt;li&gt;Configure the trigger conditions to catch vendor emails:

&lt;ul&gt;
&lt;li&gt;Subject includes: "Vendor Assessment"&lt;/li&gt;
&lt;li&gt;Has Attachment: Yes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5nomg4z4ysjunr54p22i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5nomg4z4ysjunr54p22i.png" alt=" " width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Save to Drive
&lt;/h3&gt;

&lt;p&gt;We need a place to securely store the raw PDF for record-keeping.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click + Choose a step.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Google Drive&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Save Attachment&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Destination Folder:&lt;/strong&gt; Select a specific, private folder in your Drive.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0vjx8bb1p2sbhvadvxpe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0vjx8bb1p2sbhvadvxpe.png" alt=" " width="800" height="441"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Important Security Note: Ensure the destination folder is restricted to your team. Currently, this Studio step cannot save attachments directly to Shared Drives.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 3: Extract Text (Gemini)
&lt;/h3&gt;

&lt;p&gt;NotebookLM operates in a secure sandbox and cannot click external Drive links passed to it. We need to extract the raw text from the file first. Studio makes this easy with Gemini.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;+ Add step&lt;/strong&gt; and choose the &lt;strong&gt;Extract&lt;/strong&gt; action (powered by Gemini).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Content to analyze: Click "Variables" and map the {{Saved File URL}} (from the Google Drive step). The Extract step natively supports reading URLs!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;What to extract: Scroll down to the &lt;strong&gt;Custom content name&lt;/strong&gt; section.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Custom content name:&lt;/strong&gt; Document Text&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description for Gemini:&lt;/strong&gt; Extract the entire text content of this document exactly as it is.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frqqedf7q61pkkbfudb98.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frqqedf7q61pkkbfudb98.png" alt=" " width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Ask NotebookLM
&lt;/h3&gt;

&lt;p&gt;This is where the magic happens. We pass the extracted text to NotebookLM and ask it to find discrepancies against our SOP.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click + Add step and choose &lt;strong&gt;NotebookLM&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Ask NotebookLM&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Select a notebook:&lt;/strong&gt; Choose the Notebook you created earlier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Enter a prompt:&lt;/strong&gt; Construct your prompt like this:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;You are an expert IT Compliance Auditor. Analyze the vendor terms provided below against our company compliance guidelines (your source document). &lt;br&gt;
Identify any missing clauses or violations regarding data privacy, security certifications, breach notifications, and data residency. &lt;br&gt;
Do not include conversational filler. Output ONLY a Markdown formatted list. For each violation, use a 🔴 emoji, state the vendor's policy, and state what our SOP requires instead.&lt;br&gt;
Vendor Terms Context: {{Step3: Document Text}}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fscuyzn6bwsrifcyyk8yj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fscuyzn6bwsrifcyyk8yj.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Send to Google Chat
&lt;/h3&gt;

&lt;p&gt;Finally, we deliver this risk assessment directly to the team so they can review it without leaving their chat window.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click + Add step and choose &lt;strong&gt;Notify me in Chat&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Message Payload: Format it nicely using markdown and variables:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;🚨 &lt;em&gt;New Vendor Compliance Assessment&lt;/em&gt; 🚨&lt;br&gt;
&lt;em&gt;Received From:&lt;/em&gt; {{Step1: Sender email address}}&lt;br&gt;
&lt;em&gt;Document Reviewed:&lt;/em&gt; {{Step1: Full list-Email Attachments file name}}&lt;br&gt;
&lt;em&gt;NotebookLM Risk Summary:&lt;/em&gt;&lt;br&gt;
{{Step4: Content created by NotebookLM}}&lt;br&gt;
&lt;em&gt;Review the raw document here:&lt;/em&gt; &lt;br&gt;
{{Step2: Links to the files}}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F66x3tn9togqqubuweoru.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F66x3tn9togqqubuweoru.png" alt=" " width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Running a Test (The Moment of Truth)
&lt;/h3&gt;

&lt;p&gt;Before you fully turn the workflow on for your entire organization, Google Workspace Studio gives you a powerful way to test it using real data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Send a Test Email: First, send yourself an email with a sample vendor PDF attached. Use the subject line we defined earlier (e.g., "New Vendor Assessment: CloudService Inc").&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open the Test Panel: At the bottom of your Studio canvas, click the Test run button.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select Your Email: A side panel will appear. Studio will automatically scan your Gmail inbox and let you select the test email you just sent from a dropdown.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Hit Start: Click the blue Start button. Note: A test run takes real actions! It will actually save the file to Drive and post the message in Chat.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcx5eruhspvqz3ysbk4ho.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcx5eruhspvqz3ysbk4ho.png" alt=" " width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The Result
&lt;/h3&gt;

&lt;p&gt;Within seconds, my Google Chat space lit up. Instead of having to read a 50-page vendor PDF manually, NotebookLM instantly output this incredibly detailed risk assessment:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpl7o1kug0py7ueq9fkot.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpl7o1kug0py7ueq9fkot.png" alt=" " width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;And just like that, we’ve bridged the gap between basic "if-this-then-that" automation and actual cognitive reasoning.&lt;/p&gt;

&lt;p&gt;By combining the automation engine of &lt;strong&gt;Google Workspace Studio&lt;/strong&gt; with the grounded, hallucination-free reasoning of &lt;strong&gt;NotebookLM&lt;/strong&gt;, we didn't just automate a task—we automated a decision-making process. This architecture is highly scalable and can fundamentally change how enterprise teams handle documents, contracts, resumes, and RFPs.&lt;/p&gt;

&lt;p&gt;What will you build? Once you have the foundation set up, the possibilities are endless. If you end up tweaking this workflow for your own HR, Legal, or Sales team, let me know in the comments below!&lt;/p&gt;

</description>
      <category>workspacestudio</category>
      <category>googleworkspace</category>
      <category>notebooklm</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
