<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gadilov on Medium]]></title>
        <description><![CDATA[Stories by Gadilov on Medium]]></description>
        <link>https://medium.com/@gadilov?source=rss-eb1f26150f93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*SuHk4B5PV5oC8iYh</url>
            <title>Stories by Gadilov on Medium</title>
            <link>https://medium.com/@gadilov?source=rss-eb1f26150f93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:26:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gadilov/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Ultimate Play: From Raw Data to Real-Time Insights with Gemini]]></title>
            <link>https://medium.com/google-cloud/the-ultimate-play-from-raw-data-to-real-time-insights-with-gemini-450b88a36d6a?source=rss-eb1f26150f93------2</link>
            <guid isPermaLink="false">https://medium.com/p/450b88a36d6a</guid>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[gcp-app-dev]]></category>
            <category><![CDATA[vertex-ai]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Gadilov]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 06:23:09 GMT</pubDate>
            <atom:updated>2025-09-28T08:28:42.674Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p><strong>Building a Serverless Google Cloud Pipeline for Instant Community Intelligence</strong></p><p><strong>Authors: </strong><a href="https://www.linkedin.com/in/michaelgadaev/?originalSubdomain=il">Michael Gadaev</a>, Ariel Toli Gadilov</p><p>What if you could predict the next big trend in the gaming world the moment it starts? For any media agency, staying ahead of community sentiment isn’t just an advantage; it’s essential for survival. Consider a popular franchise like Madden NFL. Every day, countless gameplay videos, patch reviews, and fan reactions are uploaded to YouTube.</p><p>The traditional approach of scraping data, loading it into a warehouse, and running batch analysis jobs is too slow to keep up. By the time you have your insights, the conversation has already moved on.</p><p>We were faced with this exact problem. Our team needed immediate answers to crucial questions:</p><ul><li>What’s the sentiment around the new “Franchise Mode” gameplay?</li><li>Which features are players praising, and which are drawing criticism?</li><li>What are the key discussion points from top creators after a new patch?</li></ul><p>We realized that traditional data scraping is dead. We needed to empower our scraper to be an AI analyst from the very beginning. This is the story of how we built exactly that, leveraging the power of Gemini and Google Cloud to create a pipeline that delivers AI-enriched insights in near real-time.</p><h3>The Blueprint: An Architecture for Speed and Intelligence</h3><p>Instead of analyzing data after the fact, our architecture enriches it with AI insights the moment it’s collected. The process is automated, serverless, and designed for scalability.</p><p><strong>Process Diagram:</strong> 📈</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*-yF9f0gyKqLxo4xw09SdGQ.png" /></figure><p><strong>Process Flow:</strong></p><ol><li><strong>Cloud Scheduler</strong> triggers the <strong>Cloud Run Service (Python Scraper)</strong> hourly.</li><li>The scraper fetches new YouTube video URLs from target channels.</li><li>It calls the <strong>Vertex AI </strong>Gemini API with the video data.</li><li>A structured JSON analysis is received back from Gemini.</li><li>The enriched JSON is loaded directly into a <strong>BigQuery</strong> Table.</li><li>A <strong>BigQuery</strong> View then cleans the JSON for easy visualization in <strong>Looker Studio</strong>.</li></ol><p>To bring this to life, we’ll use a suite of powerful Google Cloud services:</p><ul><li><a href="https://cloud.google.com/run/docs"><strong>Cloud Run</strong></a>: The perfect serverless platform for our Python service.</li><li><a href="https://cloud.google.com/vertex-ai/docs"><strong>Vertex AI</strong></a>: Our gateway to the Gemini family of models.</li><li><a href="https://cloud.google.com/scheduler/docs"><strong>Cloud Scheduler</strong></a>: Our cron job in the cloud to automate execution.</li><li><a href="https://cloud.google.com/bigquery/docs"><strong>BigQuery</strong></a>: Our analytics warehouse where we’ll store the clean, structured JSON objects from Gemini.</li><li><a href="https://cloud.google.com/looker/docs/studio"><strong>Looker Studio</strong></a>: Our visualization tool for building interactive dashboards.</li></ul><p><strong>Full Code &amp; Schema</strong> 🛠️</p><p><a href="https://github.com/vikont123/youtube_scraper">https://github.com/vikont123/youtube_scraper</a></p><h3>Step 1: Crafting the Brain — The Gemini Prompt (prompts.py)</h3><p>The entire pipeline’s effectiveness hinges on a high-quality, reliable prompt. To turn Gemini into a specialized analyst, we followed a few key principles:</p><ul><li><strong>Assign a Role:</strong> We start by telling the model its persona: “<em>You are a sophisticated AI analyst specializing in the gaming industry…</em>”. This sets the context for the entire task.</li></ul><pre>youtube_gaming_prompt = &quot;&quot;&quot;<br>You are a sophisticated AI analyst specializing in the gaming industry, with a focus on community feedback and video content analysis for games like Madden NFL. Your task is to perform a comprehensive analysis of the provided YouTube video and produce a single, valid JSON object as the output. Do not include any explanatory text or markdown formatting before or after the JSON.<br><br>If any section does not yield results (e.g., comments are disabled), return the corresponding value as null (for objects) or an empty array [] (for lists).<br><br>### JSON Output Structure ###<br><br>{<br>  &quot;video_details&quot;: {<br>    &quot;video_title&quot;: &quot;The full title of the video.&quot;,<br>    &quot;channel_name&quot;: &quot;The name of the YouTube channel that uploaded the video.&quot;,<br>    &quot;upload_date&quot;: &quot;The date the video was published, in YYYY-MM-DD format.&quot;,<br>    &quot;video_url&quot;: &quot;The URL of the video being analyzed.&quot;,<br>    &quot;video_language&quot;: &quot;The primary language spoken in the video.&quot;,<br>    &quot;executive_summary&quot;: &quot;A concise, 2-3 sentence neutral summary of the video&#39;s main topic and purpose.&quot;<br>  },<br>  &quot;transcript_analysis&quot;: {<br>    &quot;entities&quot;: [<br>      {<br>        &quot;entity_text&quot;: &quot;The exact text of the entity from the transcript.&quot;,<br>        &quot;entity_text_eng&quot;: &quot;The English translation (if not in English).&quot;,<br>        &quot;entity_type&quot;: &quot;Entity category: Person, Organization, Game, Game_Feature, Event.&quot;,<br>        &quot;timestamp&quot;: &quot;The approximate start time (e.g., &#39;00:02:41&#39;) where the entity was mentioned.&quot;<br>      }<br>    ],<br>    &quot;sentiment_analysis&quot;: {<br>      &quot;primary_sentiment&quot;: &quot;Overall sentiment of the spoken content: &#39;Positive&#39;, &#39;Negative&#39;, &#39;Neutral&#39;, or &#39;Mixed&#39;.&quot;,<br>      &quot;sentiment_score&quot;: &quot;A numerical score from -1.0 (most negative) to 1.0 (most positive).&quot;,<br>      &quot;detected_tones&quot;: [&quot;An array of detected tones, e.g., &#39;Instructional&#39;, &#39;Critical&#39;, &#39;Enthusiastic&#39;, &#39;Humorous&#39;, &#39;Analytical&#39;.&quot; ],<br>      &quot;analysis_summary&quot;: &quot;A brief, one-sentence explanation for the sentiment and tone classifications.&quot;<br>    }<br>  },<br>  &quot;comment_section_analysis&quot;: {<br>    &quot;overall_comment_sentiment&quot;: &quot;Aggregate sentiment of top comments: &#39;Overwhelmingly Positive&#39;, &#39;Mostly Positive&#39;, &#39;Mixed&#39;, &#39;Mostly Negative&#39;, &#39;Overwhelmingly Negative&#39;.&quot;,<br>    &quot;sentiment_score&quot;: &quot;A numerical score from -1.0 to 1.0 representing aggregate comment sentiment.&quot;,<br>    &quot;key_themes&quot;: [&quot;Main topics discussed in comments, e.g., &#39;Debate over passing mechanics&#39;, &#39;Praise for graphics&#39;, &#39;Bugs and glitches report&#39;.&quot; ],<br>    &quot;analysis_summary&quot;: &quot;A brief, one-sentence summary of the general reaction in the comments.&quot;<br>  },<br>  &quot;gaming_analysis_focus&quot;: {<br>    &quot;primary_game_feature_discussed&quot;: &quot;The main game feature being discussed (e.g., &#39;Franchise Mode&#39;, &#39;Passing Mechanics&#39;, &#39;Player Models&#39;). If none, return null.&quot;,<br>    &quot;attitude_towards_feature&quot;: &quot;The video&#39;s explicit or strongly implied attitude towards the feature: &#39;Positive&#39;, &#39;Negative&#39;, &#39;Mixed&#39;, &#39;Neutral&#39;, or &#39;Not Applicable&#39;.&quot;,<br>    &quot;confidence_level&quot;: &quot;Confidence in the attitude assessment: &#39;High&#39;, &#39;Medium&#39;, &#39;Low&#39;.&quot;,<br>    &quot;key_praises&quot;: [&quot;A JSON array of short, direct quotes or summarized points from the transcript praising the feature.&quot;],<br>    &quot;key_criticisms&quot;: [&quot;A JSON array of short, direct quotes or summarized points from the transcript criticizing the feature.&quot;]<br>  }<br>}<br>&quot;&quot;&quot;</pre><p>This approach transforms Gemini from a general-purpose tool into a highly specialized and predictable analysis engine.</p><h3>Step 2: Building the Data Foundation in BigQuery</h3><p>Before we write our scraper, we need a place to store the data. We use two main components in BigQuery: a raw table and a clean view.</p><p>First, we create a table to land the raw, AI-enriched JSON data. Storing the full JSON in a single string column is highly efficient for writing data.</p><pre>-- DDL for the main table to store raw, enriched data<br>CREATE OR REPLACE TABLE `my-project.gaming_analytics.youtube_analysis`<br>(<br>    id STRING NOT NULL,<br>    published_at TIMESTAMP NOT NULL OPTIONS(description=&quot;Timestamp of the video&#39;s publication, used for hourly partitioning&quot;),<br>    title STRING,<br>    url STRING OPTIONS(description=&quot;YouTube video URL&quot;),<br>    analysis STRING OPTIONS(description=&quot;The full JSON response from the Gemini AI analysis&quot;),<br>    fetched_at TIMESTAMP OPTIONS(description=&quot;Timestamp when the data was fetched and analyzed&quot;),<br>    source STRING OPTIONS(description=&quot;Source of the data, e.g., &#39;YouTube&#39;&quot;),<br>    channel STRING OPTIONS(description=&quot;YouTube channel handle&quot;)<br>)<br>PARTITION BY TIMESTAMP_TRUNC(published_at, HOUR)<br>OPTIONS(<br>    description=&quot;Table of AI-analyzed YouTube videos, partitioned by publication hour.&quot;<br>);</pre><p>Querying raw JSON can be cumbersome for analysts. To solve this, we create a BigQuery <strong>View</strong>. A view acts as a virtual table that flattens the JSON into clean, structured columns, making it incredibly easy to use with tools like Looker Studio.</p><pre>-- DDL for the view to flatten the JSON for easy analysis<br>CREATE OR REPLACE VIEW `my-project.gaming_analytics.youtube_analysis_view` AS<br>SELECT<br>  id,<br>  published_at,<br>  url,<br>  fetched_at,<br>  source,<br>  channel,<br>  -- Fields extracted from the &#39;analysis&#39; JSON column<br>  JSON_EXTRACT_SCALAR(analysis, &#39;$.video_details.video_title&#39;) AS video_title,<br>  JSON_EXTRACT_SCALAR(analysis, &#39;$.video_details.executive_summary&#39;) AS executive_summary,<br>  JSON_EXTRACT_SCALAR(analysis, &#39;$.transcript_analysis.sentiment_analysis.primary_sentiment&#39;) AS primary_sentiment,<br>  SAFE_CAST(JSON_EXTRACT_SCALAR(analysis, &#39;$.transcript_analysis.sentiment_analysis.sentiment_score&#39;) AS FLOAT64) AS sentiment_score,<br>  JSON_EXTRACT_SCALAR(analysis, &#39;$.comment_section_analysis.overall_comment_sentiment&#39;) AS comment_sentiment,<br>  SAFE_CAST(JSON_EXTRACT_SCALAR(analysis, &#39;$.comment_section_analysis.sentiment_score&#39;) AS FLOAT64) AS comment_sentiment_score,<br>  JSON_EXTRACT_SCALAR(analysis, &#39;$.gaming_analysis_focus.primary_game_feature_discussed&#39;) AS game_feature_discussed,<br>  JSON_EXTRACT_SCALAR(analysis, &#39;$.gaming_analysis_focus.attitude_towards_feature&#39;) AS attitude_towards_feature,<br>  JSON_EXTRACT(analysis, &#39;$.gaming_analysis_focus.key_praises&#39;) AS key_praises,<br>  JSON_EXTRACT(analysis, &#39;$.gaming_analysis_focus.key_criticisms&#39;) AS key_criticisms,<br>  JSON_EXTRACT(analysis, &#39;$.transcript_analysis.entities&#39;) AS entities<br>FROM<br>  `my-project.gaming_analytics.youtube_analysis`;</pre><h3>Step 3: The Intelligent Scraper Code (scrap_youtube.py)</h3><p>Our Python script, scrap_youtube.py, orchestrates the entire process. Let’s walk through its key components.</p><h4>Setup and Dependencies</h4><p>First, we define our dependencies in requirements.txt and our configuration variables in a .env file for easy management.</p><pre># requirements.txt <br>pandas<br>google-cloud-bigquery<br>python-dotenv<br>pytz<br>google-generativeai<br>google-api-python-client<br>pandas_gbq</pre><pre>#.env<br># API Keys for Google Services<br>YOUTUBE_API_KEY=&quot;YOUR_YOUTUBE_API_KEY&quot;<br>GOOGLE_API_KEY=&quot;YOUR_GOOGLE_AI_API_KEY&quot;<br><br># Google Cloud Project Settings<br>project_id=&quot;YOUR_GCP_PROJECT_ID&quot;<br>dataset_name=&quot;YOUR_BIGQUERY_DATASET_NAME&quot;<br>youtube_tbl_name=&quot;TABLE_NAME_FOR_YOUTUBE_DATA&quot;<br><br>credential_file = &#39;/GOOGLE_APPLICATION_CREDENTIALS.json&#39;</pre><h4>The Python Script (scrap_youtube.py)</h4><p>The script is built around several key functions that find data, enrich it with AI, and save the results.</p><ol><li><strong>Finding New Videos (get_channel_videos_last_hour)</strong> This function queries the YouTube Data API for any videos published by a specific channel in the last hour. It compiles a list of URLs and basic metadata.</li></ol><pre>def get_channel_videos_last_hour(api_key, handle):<br>    try:<br>        youtube = build(&#39;youtube&#39;, &#39;v3&#39;, developerKey=api_key)<br>        <br>        search_response = youtube.search().list(<br>            q=handle, type=&quot;channel&quot;, part=&quot;snippet&quot;, maxResults=1<br>        ).execute()<br>        <br>        if not search_response.get(&#39;items&#39;):<br>            print(f&quot;Channel {handle} not found!&quot;)<br>            return []<br>        <br>        channel_id = search_response[&#39;items&#39;][0][&#39;snippet&#39;][&#39;channelId&#39;]<br>        <br>        one_hour_ago = datetime.now(pytz.UTC) - timedelta(hours=1)<br>        one_hour_ago_iso = one_hour_ago.replace(tzinfo=pytz.utc).isoformat()<br>        <br>        video_response = youtube.search().list(<br>            channelId=channel_id,<br>            publishedAfter=one_hour_ago_iso,<br>            type=&quot;video&quot;, part=&quot;snippet&quot;, maxResults=50, order=&quot;date&quot;<br>        ).execute()<br>        <br>        videos = []<br>        for item in video_response.get(&#39;items&#39;, []):<br>            videos.append({<br>                &#39;title&#39;: item[&#39;snippet&#39;][&#39;title&#39;],<br>                &#39;id&#39;: item[&#39;id&#39;][&#39;videoId&#39;],<br>                &#39;url&#39;: f&quot;https://youtu.be/{item[&#39;id&#39;][&#39;videoId&#39;]}&quot;,<br>                &#39;published_at&#39;: item[&#39;snippet&#39;][&#39;publishedAt&#39;],<br>                &#39;channel&#39;: handle<br>            })<br>        <br>        print(f&quot;Found {len(videos)} video(s) from {handle} in the last hour&quot;)<br>        return videos<br>    except Exception as e:<br>        print(f&quot;Error processing channel {handle}: {e}&quot;)<br>        return []</pre><p><strong>2. The AI Magic (get_video_details)</strong> For each video URL we find, this function sends it along with our prompt to the Gemini API. It receives the structured JSON analysis in return.</p><pre>def upload_videos_to_bigquery(videos_list, project_id, dataset_id, table_id):<br>    if not videos_list:<br>        print(&quot;Video list is empty. No data to upload to BigQuery.&quot;)<br>        return False<br><br>    df = pd.DataFrame(videos_list)<br><br>    df[&#39;published_at&#39;] = pd.to_datetime(df[&#39;published_at&#39;])<br>    df[&#39;fetched_at&#39;] = pd.to_datetime(df[&#39;fetched_at&#39;])<br><br>    expected_columns = [<br>        &#39;id&#39;, &#39;published_at&#39;, &#39;title&#39;, &#39;url&#39;, &#39;analysis&#39;, <br>        &#39;fetched_at&#39;, &#39;source&#39;, &#39;channel&#39;<br>    ]<br>    for col in expected_columns:<br>        if col not in df.columns:<br>            df[col] = None<br>    df = df[expected_columns]<br><br>    bq_client = bigquery.Client(project=project_id)<br>    table_ref = bq_client.dataset(dataset_id).table(table_id)<br><br>    schema = [<br>        bigquery.SchemaField(&quot;id&quot;, &quot;STRING&quot;, mode=&quot;REQUIRED&quot;),<br>        bigquery.SchemaField(&quot;published_at&quot;, &quot;TIMESTAMP&quot;, mode=&quot;REQUIRED&quot;),<br>        bigquery.SchemaField(&quot;title&quot;, &quot;STRING&quot;),<br>        bigquery.SchemaField(&quot;url&quot;, &quot;STRING&quot;),<br>        bigquery.SchemaField(&quot;analysis&quot;, &quot;STRING&quot;),<br>        bigquery.SchemaField(&quot;fetched_at&quot;, &quot;TIMESTAMP&quot;),<br>        bigquery.SchemaField(&quot;source&quot;, &quot;STRING&quot;),<br>        bigquery.SchemaField(&quot;channel&quot;, &quot;STRING&quot;),<br>    ]<br><br>    job_config = bigquery.LoadJobConfig(<br>        write_disposition=&quot;WRITE_APPEND&quot;,<br>        schema=schema,<br>    )<br><br>    try:<br>        print(f&quot;\n[*] Uploading {len(df)} rows to BigQuery table {dataset_id}.{table_id}...&quot;)<br>        job = bq_client.load_table_from_dataframe(df, table_ref, job_config=job_config)<br>        job.result()<br>        print(f&quot;[*] Successfully loaded {job.output_rows} rows.&quot;)<br>        return True<br>    except Exception as e:<br>        print(f&quot;Error uploading DataFrame to BigQuery: {e}&quot;)<br>        return False</pre><p><strong>4. Orchestration (process_multiple_channels and main)</strong> Finally, the main function orchestrates the entire process: it iterates through a list of target channels, calls the functions above in sequence, and kicks off the BigQuery upload.</p><pre>def process_multiple_channels(api_key, google_api_key, channel_handles):<br>    all_videos = []<br>    <br>    for handle in channel_handles:<br>        print(f&quot;\nProcessing channel: {handle}&quot;)<br>        recent_videos = get_channel_videos_last_hour(api_key, handle)<br>        <br>        for video in recent_videos:<br>            print(f&quot;  Analyzing: {video[&#39;title&#39;][:50]}...&quot;)<br>            analysis_result = get_video_details(video[&#39;url&#39;], google_api_key)<br>            <br>            video[&#39;analysis&#39;] = analysis_result<br>            video[&#39;fetched_at&#39;] = datetime.now(pytz.UTC)<br>            video[&#39;source&#39;] = &#39;youtube&#39;<br>        <br>        all_videos.extend(recent_videos)<br>    <br>    return all_videos<br><br>if __name__ == &quot;__main__&quot;:<br>    CHANNEL_HANDLES = [&quot;@MaddenNFLDirect&quot;, &quot;@IGN&quot;, &quot;@gamespot&quot;] # Example channels<br>    <br>    print(&quot;🚀 Starting YouTube video processing...&quot;)<br>    <br>    all_processed_videos = process_multiple_channels(<br>        YOUTUBE_API_KEY, GOOGLE_API_KEY, CHANNEL_HANDLES<br>    )<br>    <br>    if all_processed_videos:<br>        print(f&quot;\n🔄 Uploading {len(all_processed_videos)} videos to BigQuery...&quot;)<br>        success = upload_videos_to_bigquery(all_processed_videos, PROJECT_ID, DATASET_ID, TABLE_ID)<br>        if success:<br>            print(&quot;✅ Successfully uploaded all videos to BigQuery!&quot;)<br>        else:<br>            print(&quot;❌ Failed to upload videos to BigQuery.&quot;)<br>    else:<br>        print(&quot;⚠️  No new videos found to upload.&quot;)<br>    <br>    print(&quot;\n🎉 Processing completed!&quot;)</pre><h3>Step 4: Deployment and Automation</h3><p>With the code ready, we deploy it to Cloud Run and automate it with Cloud Scheduler.</p><ol><li><strong>Containerize the Application:</strong> We create a Dockerfile to package our Python script and its dependencies into a portable container. This ensures it runs identically anywhere.</li><li><strong>Deploy to Cloud Run:</strong> A single gcloud run deploy command uploads our container and launches it as a serverless service with a secure HTTPS endpoint.</li><li><strong>Schedule with Cloud Scheduler:</strong> We create a scheduler job in the Google Cloud console to send an HTTPS request to our Cloud Run endpoint every hour, fully automating the pipeline without managing any servers.</li></ol><h3>Step 5: Powering Analytics with a <a href="https://cloud.google.com/bigquery/docs">BigQuery</a> View</h3><p>The pipeline is designed to first land all the raw, AI-enriched JSON data into a main <a href="https://cloud.google.com/bigquery/docs"><strong>BigQuery</strong></a><strong> table</strong>. While it’s efficient to store the full JSON in a single column, querying it directly can be cumbersome for business users or data analysts who would need to use JSON_VALUE for every request.</p><p>That’s where a <strong>BigQuery View</strong> comes in. A view is a saved, virtual table that we build on top of our main table. It acts as a transformation layer, pre-processing the raw JSON and presenting it as clean, structured columns. This is a game-changer because it becomes the single, easy-to-use source for all your analytics needs.</p><p>By creating a view, we unlock powerful capabilities:</p><ul><li><strong>Looker Studio Dashboards</strong>: You can connect Looker Studio directly to this view. All the fields (like video_title, primary_sentiment, attitude_towards_feature) will appear as ready-to-use dimensions and metrics, making dashboard creation a simple drag-and-drop process.</li><li><a href="https://cloud.google.com/contact-center/insights/docs/analytics"><strong>Conversational Analytics</strong></a>: With tools like <a href="https://cloud.google.com/looker/docs/studio/about-looker-studio-pro"><strong>Looker Studio Pro</strong></a> or the <a href="https://cloud.google.com/gemini/docs/conversational-analytics-api/overview"><strong>Conversational Analytics API</strong></a>, your team can ask questions in plain English. Because the view has clearly named columns like game_feature_discussed, a query like <em>“What was the sentiment for Franchise Mode last week?”</em> can be easily translated into SQL that runs against this view.</li><li><strong>Foundation for </strong><a href="https://cloud.google.com/bigquery/docs/vector-search-intro"><strong>Vector Search</strong></a>: The view provides a clean starting point for more advanced AI applications. You could easily create an embeddings model in BigQuery that takes the text from the executive_summary or key_criticisms columns of this view, converts it into vectors, and enables powerful similarity searches like <em>“find me other videos with similar complaints.”</em></li></ul><h3>Beyond YouTube: Building a Unified Analytics Hub</h3><p>This YouTube pipeline is just the beginning. The true power of this architecture is its scalability. You can apply the exact same pattern (Scrape -&gt; Analyze with Gemini -&gt; Store in BigQuery) to build a comprehensive analytics hub tracking sentiment across multiple platforms:</p><ul><li><strong>Telegram:</strong> Monitor fan channels and developer announcements.</li><li><strong>News Websites (RSS):</strong> Analyze reviews and articles from top gaming publications.</li><li><strong>Twitter (X):</strong> Track real-time reactions and viral posts from players and influencers.</li></ul><p>With serverless technologies and generative AI, you can build this powerful system quickly and without a large team. You’re not just collecting data; you’re generating strategic insights on demand.</p><p>Ready to get started? Take this code, adapt it, and start turning data into decisions today.</p><p>And if you run into any challenges along the way, remember that <strong>Google Cloud specialists are always ready to help you bring your boldest ideas to life.</strong></p><p><strong>Full Code &amp; Schema</strong> 🛠️</p><p><a href="https://github.com/vikont123/youtube_scraper">https://github.com/vikont123/youtube_scraper</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=450b88a36d6a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/the-ultimate-play-from-raw-data-to-real-time-insights-with-gemini-450b88a36d6a">The Ultimate Play: From Raw Data to Real-Time Insights with Gemini</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>