Loading...
No results found.

Google Cloud Skills Boost

Apply your skills in Google Cloud console


Get access to 700+ labs and courses

Get Started with Vertex AI Studio

Lab 1 hour universal_currency_alt No cost show_chart Introductory
info This lab may incorporate AI tools to support your learning.
Get access to 700+ labs and courses

GSP1154

Google Cloud self-paced labs logo

Overview

Vertex AI is a comprehensive machine learning development platform that provides both predictive and generative AI capabilities. It allows you to train, evaluate, and deploy predictive machine learning models for forecasting purposes. Additionally, you can utilize the platform to discover, tune, and serve generative AI models to produce content. For instance, insurance companies constantly seek to improve efficiency in areas like claims processing and risk assessment. Vertex AI Studio offers a powerful way to rapidly prototype generative AI solutions for such challenges.

Vertex AI Studio lets you quickly test and customize generative AI models so you can leverage their capabilities in your applications. It provides a variety of tools and resources, including an intuitive user interface (UI), that make it easy to start with generative AI, even if you don't have an extensive background in machine learning.

This lab guides you through Vertex AI Studio, where you'll unlock the potential of cutting-edge generative AI models like Gemini. You will step into the role of helping an insurance company prototype a risk analysis assistant. You'll learn how to take a prompt idea towards a deployable application, design sophisticated prompts to achieve specific generative outcomes, and use multimodal capabilities to analyze various types of data, including images—all directly in the Google Cloud console. No need for APIs or Python SDKs for these core tasks.

Objectives

In this lab, you learn how to:

  • Create applications from prompts.
  • Design effective prompts.
  • Engineer and manage prompts.
  • Use multimodal prompts.

Setup and requirements

Before you click the Start Lab button

Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.

This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.

To complete this lab, you need:

  • Access to a standard internet browser (Chrome browser recommended).
Note: Use an Incognito (recommended) or private browser window to run this lab. This prevents conflicts between your personal account and the student account, which may cause extra charges incurred to your personal account.
  • Time to complete the lab—remember, once you start, you cannot pause a lab.
Note: Use only the student account for this lab. If you use a different Google Cloud account, you may incur charges to that account.

How to start your lab and sign in to the Google Cloud console

  1. Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the left is the Lab Details pane with the following:

    • The Open Google Cloud console button
    • Time remaining
    • The temporary credentials that you must use for this lab
    • Other information, if needed, to step through this lab
  2. Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).

    The lab spins up resources, and then opens another tab that shows the Sign in page.

    Tip: Arrange the tabs in separate windows, side-by-side.

    Note: If you see the Choose an account dialog, click Use Another Account.
  3. If necessary, copy the Username below and paste it into the Sign in dialog.

    {{{user_0.username | "Username"}}}

    You can also find the Username in the Lab Details pane.

  4. Click Next.

  5. Copy the Password below and paste it into the Welcome dialog.

    {{{user_0.password | "Password"}}}

    You can also find the Password in the Lab Details pane.

  6. Click Next.

    Important: You must use the credentials the lab provides you. Do not use your Google Cloud account credentials. Note: Using your own Google Cloud account for this lab may incur extra charges.
  7. Click through the subsequent pages:

    • Accept the terms and conditions.
    • Do not add recovery options or two-factor authentication (because this is a temporary account).
    • Do not sign up for free trials.

After a few moments, the Google Cloud console opens in this tab.

Note: To access Google Cloud products and services, click the Navigation menu or type the service or product name in the Search field. Navigation menu icon and Search field

Task 1. Create applications from prompts

In this task, you'll see how quickly you can take an idea for a generative AI assistant and turn it into a working prototype using Vertex AI Studio. You'll focus on our insurance use case: creating a prompt that helps an insurance professional summarize client information for a risk analysis report and then prepare this prompt as a simple application.

  1. In the Google Cloud console, from the Navigation menu (Navigation menu), select Vertex AI > Vertex AI Studio > Overview.

Vertex AI Studio Overview page

  1. From the Vertex AI menu, under Vertex AI Studio, select Create prompt. This will bring you to the prompt editor page.

Vertex AI Studio

The UI contains three main sections:

  • System Instructions (located at the top): a set of instructions that the model processes before it processes prompts. When a system instruction is set, it applies to the entire request. It works across multiple user and model turns when included in the prompt. We recommend that you use system instructions to tell the model how you want it to behave and respond to prompts.
  • Configuration (located on the right): This section allows you to select models (including 3rd party models), configure parameters, use Tools (such as grounding), and set advanced options.
  • Prompt (located at the bottom): Here, you can create a prompt that utilizes multimodal capabilities.
  1. Once the new untitled prompt page loads, click on Untitled Prompt in the top left corner and rename your prompt to Insurance Risk Summary - Prototype.

  2. In the main canvas, click into the System instructions text box and enter the following to give your AI assistant a role relevant to our insurance scenario:

    You are an expert AI assistant for an insurance underwriting department. Your primary goal is to help underwriters by accurately and concisely summarizing client information and highlighting potential risk factors. Maintain a professional and objective tone. Focus only on the information provided in the prompt. Do not invent details.
  3. Below the system instructions, in the main prompt area at the bottom of the page, paste the following:

    Customer Notes for 'SafeHarbor Warehousing': "The applicant is seeking coverage for their 50,000 sq ft warehouse. The business is 5 years old. The building is a concrete tilt-up structure, originally built in 2010. They store a variety of non-hazardous dry goods. Fire safety measures include a full sprinkler system, a centrally monitored fire alarm, and documented annual inspections by a certified third party. Security measures include a 24/7 centrally monitored burglar alarm, comprehensive security camera coverage of the interior and exterior, a fully fenced perimeter, and nightly patrols by a contracted security guard service. The company reports no major property or liability losses in their 5-year history. They have specifically asked to ensure their new automated shelving and retrieval system, installed last month, is adequately covered under the policy." Your Task: 1. Briefly summarize the key details of the 'SafeHarbor Warehousing' business and its existing safety measures. 2. Based *only* on the notes provided, identify any immediate questions an underwriter should ask or potential risk factors they should consider further. Present the summary first, then the questions/risk factors as bullet points.
  4. In the Configuration section on the right:

    • Ensure the model is selected. You can click Switch model if you need to change it.
    • If not already set, toggle the Advanced options, and for Region, select .
  5. Click the Submit arrow button (typically at the bottom right of the prompt input area or by pressing CTRL+Enter). Review the model's response.

  6. At the top of the page, click the Save button. In the "Save prompt" dialog, the name Insurance Risk Summary - Prototype should be pre-filled. Confirm the Region is correct () and click Save.

  7. Now, you'll explore how this drafted prompt can be turned into a prototype application. At the top right of the page, click the Build with code button. From the dropdown menu that appears, select Deploy as app (Powered by Cloud Run).

build with code button in Vertex AI prompt

  1. In the "Deploy to Cloud Run" dialog that appears:

    • You may need to Enable services if prompted (e.g., Cloud Build API, Cloud Run API). Click Enable if necessary and wait for the services to be enabled.
    • Check the Acknowledgement for publicly deploying your app.
    • Click Create App.
  2. The deployment process will begin and might take a few minutes. You may see status updates in the UI that resemble the following:

manage web app popup dialog

  1. Once completed, click the Close button in the Manage web app box. Then, to open your newly deployed application, click the Build with code button again at the top right of the page. From the dropdown menu, now select Open app (Powered by Cloud Run). This will open your "Vertex AI GenAI App" in a new browser tab.

Vertex AI Studio, Build with Code Button > Open App

  1. You should now see a page titled "Welcome to Vertex AI GenAI App!" with your prompt title, "Insurance Risk Summary - Prototype," displayed.

Vertex AI Gen AI Application home page

  1. In the "Chatbot" section, in the "Type a message..." input field at the bottom, enter a new test message. For example:

    New Customer Inquiry: "Applicant 'Coastal Goods Delivery' has a fleet of 10 delivery vans, all equipped with GPS and telematics. They operate within a 100-mile radius of their depot. Drivers undergo annual safety training. They had one minor fender bender last year, no injuries, $1500 damages. What are the primary risk considerations?" Please summarize key points and identify potential risks.
  2. Click the submit arrow button to send your message to the application.

  3. Observe the response from your deployed GenAI app. It should process your input based on the logic and system instructions you defined in Vertex AI Studio.

Note: As indicated by the warning on the app page, this application allows unauthenticated access by default. In a production scenario, you would configure appropriate security settings. For this lab, the default is fine for exploration.
  1. You have now completed the full cycle:
    • Designed a prompt in Vertex AI Studio.
    • Deployed it as a serverless application using Cloud Run with a few clicks.
    • Directly opened and interacted with your generative AI model through a web interface. This demonstrates the power of Vertex AI Studio for rapid prototyping and deployment of generative AI capabilities.

Click Check my progress to verify the objectives.

Create a prompt application with Vertex AI Studio.

Task 2. Design effective prompts

In Task 1, you prototyped an initial prompt. Now, you'll dive deeper into refining prompts to get more precise, controlled, and useful outputs from the generative models. This is a core skill in prompt engineering. You will continue with your insurance theme by trying to extract specific information from a claims document or improving the summarization quality.

Zero-shot prompting

You'll start by creating a new prompt to explore detailed prompt design.

  1. Ensure you are in the main Vertex AI Studio area. If you were viewing your deployed app from Task 1, close that browser tab to return to the Google Cloud console.

  2. From the Navigation menu (Navigation menu), select Vertex AI > Vertex AI Studio > Create prompt.

  3. If you started with a new prompt page (showing "Prompt Samples"), click on Untitled Prompt in the top left corner and rename it Insurance Claim Data Extraction.

  4. Familiarize yourself with the scenario for this section: An insurance adjuster often receives unstructured notes or emails about a new claim and needs to quickly extract key pieces of information to enter into their claims management system.

  5. In the System instructions box, enter the following:

    You are an AI assistant specializing in parsing and extracting specific data points from unstructured insurance claim notifications. Your goal is to identify and list key information accurately. If a piece of information is not found, clearly state "Not found". Output the extracted information in a key: value format, with each key on a new line.
  6. In the main prompt area, paste the following example of an unstructured claim note:

    Claim Notification Received: "Hi team, just got a call from Mrs. Eleanor Vance, policy #POL458892. She reported a kitchen fire that occurred on May 12th, 2025, around 3 PM. The main damage seems to be to the oven and surrounding cabinets. She mentioned smoke damage in the kitchen and dining area too. She thinks the total damage might be around $7,500. Her contact is 555-0123. No injuries reported, thankfully." Extract the following: - Policy Number - Claimant Name - Date of Loss - Time of Loss - Type of Loss - Brief Description of Damage - Estimated Loss Amount - Injuries Reported
  7. In the Configuration section on the right:

    • Select the model.
    • Set Temperature to 0.1 (for more factual, less creative extraction).
    • Set Output token limit to a reasonable number, like 1024.
    • Ensure the Region is .
  8. Click the Submit arrow button. Review the output. This first attempt without explicit examples is called zero-shot prompting.

  9. Once you are done reviewing the response from your zero-shot attempt, click the Clear icon on the top toolbar to clear the entire prompt canvas. This is necessary because examples can typically only be added to a fresh prompt.

Few-Shot prompting

Often, providing a few examples (few-shot prompting) can significantly improve the model's performance, especially for specific formatting or nuanced extraction.

  1. On the bottom right of the Prompt section, click the Add Examples (Add Examples button) button.

This will open a new window where you can add examples for the prompt.

add examples

  1. In the "Examples" interface that appears:

    • For the INPUT of your first example, paste the following unstructured note:
    Claim Notification Received: "Email from John Sterling (policy POL77521) re: water damage at his shop. Happened sometime last night, May 10th, 2025. A pipe burst in the ceiling. Stockroom is flooded, some damage to inventory. He's not sure on the cost yet, maybe $5k-$10k? No one was there, so no injuries." Extract the following: - Policy Number - Claimant Name - Date of Loss - Time of Loss - Type of Loss - Brief Description of Damage - Estimated Loss Amount - Injuries Reported
    • For the OUTPUT of your first example, paste the following perfectly formatted extraction:
    Policy Number: POL77521 Claimant Name: John Sterling Date of Loss: May 10th, 2025 Time of Loss: Night Type of Loss: Water damage Brief Description of Damage: Pipe burst in ceiling, stockroom flooded, some damage to inventory. Estimated Loss Amount: $5,000 - $10,000 Injuries Reported: No
    • Click the Add examples button to save this example and return to the main prompt.
  2. Re-add System Instructions: Since clearing the prompt also cleared the system instructions, paste them again into the System instructions box at the top:

    You are an AI assistant specializing in parsing and extracting specific data points from unstructured insurance claim notifications. Your goal is to identify and list key information accurately. If a piece of information is not found, clearly state "Not found". Output the extracted information in a key: value format, with each key on a new line.
  3. Provide the New Input and the Prompt:

    • In the area labeled (Input) Write value here, paste the original claim notification for Mrs. Eleanor Vance that you want the model to process now:
    Claim Notification Received: "Hi team, just got a call from Mrs. Eleanor Vance, policy #POL458892. She reported a kitchen fire that occurred on May 12th, 2025, around 3 PM. The main damage seems to be to the oven and surrounding cabinets. She mentioned smoke damage in the kitchen and dining area too. She thinks the total damage might be around $7,500. Her contact is 555-0123. No injuries reported, thankfully."
  4. In the area labeled Write your prompt here (below the Input field), you need to provide the instruction for the model. This tells the model what to do with the (Input) text, using the Examples as a guide. Enter the following:

    Extract the following data points from the provided claim notification: - Policy Number - Claimant Name - Date of Loss - Time of Loss - Type of Loss - Brief Description of Damage - Estimated Loss Amount - Injuries Reported
  5. Ensure your configurations (Model, Temperature, Token Limit, Region) are still set as desired (e.g., Temperature at 0.1).

  6. Click the Submit arrow button again. Compare this new output to the previous zero-shot attempt. Note if the accuracy or formatting has improved significantly due to the few-shot example and the structured input method.

Experimenting with prompt configurations

Now, you'll explore how different parameters in the Configuration panel (on the right) can affect the model's response. Ensure your "Insurance Claim Data Extraction" prompt with the few-shot example is active.

  1. Experiment with Temperature:

    • Explanation: Temperature controls randomness. Lower values (e.g., 0.0-0.2) make the output more focused and deterministic. Higher values (e.g., 0.7-1.0) encourage more diverse or creative responses.
    • Try it: Change Temperature to 0.7. Click Submit and note any changes. Then, change Temperature back to 0.1.
  2. Experiment with Output Token Limit:

    • Explanation: This sets the maximum number of tokens (parts of words) the model can generate for its response.
    • Try it: Set Output token limit to a very small number, like 20. Click Submit and observe the truncated output. Reset it to a suitable value (e.g., 1024, or the default).
  3. Experiment with Top-P:

    • Explanation: Top-P (nucleus sampling) also controls randomness. It considers only the most probable tokens whose combined probability mass exceeds the Top-P value. A value of 1.0 considers all tokens. Lowering Top-P (e.g., to 0.8) makes the output more focused, similar to lowering temperature.
    • Try it: With Temperature at 0.1 (or slightly higher, like 0.5, to better observe Top-P effects), set Top-P to 0.8. Click Submit. Then set Top-P to 1.0, click Submit, and observe if there are subtle differences.
  4. Briefly review other settings in the Advanced configuration panel:

    • Safety Filter Settings: These are active by default to help block harmful content. For this lab, you'll use the default settings.

Click Check my progress to verify the objectives.

Prompt engineering in Vertex AI Studio.

Task 3. Engineer and manage prompts

Once you have a working prompt, you'll often want to experiment with changes to the instructions or model configurations to see if you can improve the response. The "Compare" feature in Vertex AI Studio is designed for this. For this section, you'll use the prompt we just created.

  1. Ensure you are in the main Vertex AI Studio area. If you were viewing your deployed app from Task 1, close that browser tab to return to the Google Cloud console.

  2. Navigate to create a new prompt. From the Navigation menu (Navigation menu), select Vertex AI > Vertex AI Studio > Create prompt.

  3. Click on Untitled Prompt in the top left corner and rename this new prompt to Comparison Base - Restaurant Risks.

  4. Set up this simple base prompt:

    • In the System instructions box, enter:
    You are an insurance risk analyst assistant. Your task is to identify potential risk factors from a given scenario. Be concise.
    • In the main prompt area (where you "Write your prompt here"), paste the following:
    Scenario: "The applicant, 'The Fiery Grill,' is a new upscale restaurant specializing in wood-fired oven pizzas and open-flame grilling. They have installed a brand new, custom-built fire suppression system for their cooking area, but it has not yet been certified by a third party. The restaurant plans to feature live acoustic music on weekend evenings and has a small, raised stage area. They also want to offer valet parking." Based on this scenario, list three primary risk factors an underwriter should consider.
    • In the Configuration section on the right:
      • Select the model.
      • Set Temperature to 0.2.
      • Ensure the Region is .
  5. Click the Submit arrow button. Review the model's initial response.

  6. Click the Save button. Confirm the name Comparison Base - Restaurant Risks and save it. You generally need to save a prompt before you can effectively use it in some comparison workflows, especially if you plan to compare with a saved prompt later.

  7. Now, with this Comparison Base - Restaurant Risks prompt and its response displayed, click the Compare button on the top toolbar.

    Note: If prompted, Exit without saving then click Continue.
  8. The "Compare" interface will open. Your Comparison Base - Restaurant Risks prompt, its configurations, and its latest response will typically be displayed in a column on the left.

Compare prompts page overview

Comparing by modifying prompt instructions

You'll now see how changing the instructions affects the output for "The Fiery Grill." In the Compare view, the comparison panes may not have a separate "System Instructions" field; if so, you'll prepend any system-level guidance to the main prompt.

  1. In the central area of the Compare interface (or to the right of your first prompt), click the + Compare new prompt button.

  2. A new prompt editing pane will appear on the right.

  3. Configure this new (second) prompt as a variation:

    • In the single large text box for the prompt in this right-hand pane, paste the following combined instructions and scenario:
    You are an expert insurance risk analyst assistant. Your task is to identify potential risk factors from a given scenario. For each risk factor, also briefly suggest a potential mitigation strategy or question for the underwriter. Be clear and structured. Scenario: "The applicant, 'The Fiery Grill,' is a new upscale restaurant specializing in wood-fired oven pizzas and open-flame grilling. They have installed a brand new, custom-built fire suppression system for their cooking area, but it has not yet been certified by a third party. The restaurant plans to feature live acoustic music on weekend evenings and has a small, raised stage area. They also want to offer valet parking." Based on this scenario, list three primary risk factors an underwriter should consider.
    • Configurations for this variation:
      • Ensure the Model is the same as the first prompt: .
      • Keep Temperature at 0.2.
      • Keep other configurations (Token Limit, Region, etc.) identical to the first prompt to isolate the effect of the instruction change.
      • Scroll down in the pane and click Apply.
  4. Once the new prompt variation is set up with its text and configurations in the right-hand pane, click the Submit prompts button (usually located at the top of the "Compare" interface).

  5. Wait for both prompts to generate responses. Review the two responses side-by-side. Does the second prompt now include mitigation strategies or questions, due to the modified instructions?

  6. To save this as a new prompt, Click Save as new, then enter your desired [Prompt name], and then click Save.

Comparing with a different temperature setting

Now, you'll use a comparison pane to test a different temperature.

  1. In the text box inside of the second prompt pane (the one on the right),

    • Prompt Text: Revert the prompt text to the original, simpler version (without the added system instructions about mitigation). Copy and paste the prompt from your Comparison Base - Restaurant Risks (left pane):
    Scenario: "The applicant, 'The Fiery Grill,' is a new upscale restaurant specializing in wood-fired oven pizzas and open-flame grilling. They have installed a brand new, custom-built fire suppression system for their cooking area, but it has not yet been certified by a third party. The restaurant plans to feature live acoustic music on weekend evenings and has a small, raised stage area. They also want to offer valet parking." Based on this scenario, list three primary risk factors an underwriter should consider.

    *If the compare view doesn't have a system instruction box for this pane, ensure the system instructions "You are an insurance risk analyst assistant..." are prepended here if they were cleared, or rely on the original system instructions if they apply globally from the left pane.

    text box

  2. Click the Edit (pencil) icon in the second prompt pane below the text box:

    • Configuration Change: In the configuration settings for this second prompt pane, change the Temperature to 2.0. Ensure the Model is still .
    • Scroll down in the pane and click Apply.
  3. Click Submit prompts again.

  4. Observe the differences in the responses. Does the higher temperature (2.0) in the second prompt cause the list of risk factors to be less focused, more speculative, or significantly different compared to the 0.2 temperature output? Note: setting the temperature this high will likely result in less coherent or relevant output, but it demonstrates the extreme effect of the parameter.

  5. To update the changes, click the Update button located below the second prompt pane.

Comparing different models and configurations

Now you will try comparing your base model with a different model and settings to observe differences in reasoning or output style.

  1. In the text box inside of the second prompt pane (the one on the right),

    • Prompt Text: Use the same original "Fiery Grill" scenario and request for three risk factors as in your Comparison Base - Restaurant Risks (left pane). (Again, ensure the base system instruction is effectively present for this pane, either by prepending it if necessary or if the UI carries it over implicitly).
  2. Click the Edit (pencil) icon in the second prompt pane below the text box:

    • Configuration Changes for this variation:
      • Change the Model to (select this from the model dropdown for this pane).
      • Set the Temperature to 0.2.
      • Set the Output token limit to 65535 (or the maximum allowed by the model in the UI).
      • Scroll down in the pane and click Apply.
  3. Click Submit prompts.

  4. Review the responses. Compare the output from (left pane) with (right pane).

Notice any differences in the identified risk factors, the detail provided, the structure of the response, or how it seems to reason through the scenario.

  1. Make sure to click on the Update button located below the second prompt pane, to store the new changes.

Other comparison options (brief overview)

Vertex AI Studio offers other ways to add prompts for comparison:

  1. Notice the + Compare saved prompt button in the area where you added a "new prompt" for comparison.

    • Clicking this would allow you to select one of your previously saved prompts from "Prompt Management" to compare against. Note: As indicated in the UI (and to clarify the scope of "conversation history"), prompt comparison has limitations. For instance, it does not support chat prompts, prompts with media, or prompts with conversation history involving more than one exchange.
  2. You may also see a + Ground truth button.

    • This feature allows you to input an "ideal" or "perfect" response for your prompt. If ground truth is provided, the system might offer more detailed evaluation metrics, which can be useful for advanced prompt testing but is beyond the scope of this introductory lab. For our purposes, visual side-by-side comparison is sufficient.
  3. To exit the "Compare" view and return to the main prompt editing interface (for example, to continue working on the version you prefer), click the back arrow at the top left of the "Compare" interface.

Prompt Management

As you experiment with different instructions, examples, and configurations, it's crucial to save your work. Saving prompts allows you to:

  • Organize your experiments.
  • Reuse effective prompts easily.

Vertex AI Studio provides Prompt Management for this purpose.

Saving a prompt

Assume you've just finished an iteration you want to save, for example, one of the prompt variations from your comparison exercises, or a refined version of your "Insurance Claim Data Extraction" prompt.

  1. Ensure the prompt you want to save is active in the main prompt editing interface (e.g., you might have just exited the "Compare" view and have a preferred version open, or you are in the Comparison Base - Restaurant Risks prompt).

  2. If you have already saved your prompt, you will notice an Autosave button on the top toolbar. Once you initially save your prompt, Autosave is on by default. If you would like to disable this feature, you can click the button and select Turn off Autosave.

Accessing Prompt Management

Once you have saved prompts, you can manage them in Prompt Management.

  1. Navigate to create a new prompt. From the Navigation menu (Navigation menu), select Vertex AI > Vertex AI Studio > Prompt Management.

  2. You will see a list of your saved prompts, often including their names, media, model, and the last modified date.

  3. From this page, you can view, delete, or export your saved prompts, and access optimization tools to improve your prompts.

Click Check my progress to verify the objectives.

Compare, evaluate, and manage prompts.

Task 4. Use multimodal prompts with Gemini

In this task, you'll use the main prompt interface in Vertex AI Studio with the Gemini model to analyze an image and extract information from it. This demonstrates how to design prompts for various analytical tasks such as description, text extraction, and question answering based on visual content.

  1. In the Google Cloud console, from the Navigation menu (Navigation menu), select Vertex AI > Vertex AI Studio > Create prompt.

  2. At the top left, click Untitled Prompt and rename your prompt to Timetable Image Analysis.

  3. In the Configuration panel on the right:

    • Ensure the model is selected. You can click Switch model if you need to change it.
    • Toggle the Advanced options, and for Region, select .
  4. Download the sample timetable image to your local machine:

    • Right-click the image below and save it: timetable image
  5. In the Prompt section (at the bottom of the page), click the Insert Media (Insert Media icon) button, typically found on the right side of the prompt input area.

  6. In the Select source menu that appears, click Upload and then select the timetable image file you just downloaded from your computer. The image will appear directly in the prompt input area.

Note: You'll notice several options for sourcing your media. These typically include direct Upload, providing a file By URL, importing from Cloud Storage or Google Drive, and even linking a YouTube video. For this lab, you'll focus on the direct upload method.
  1. Now, you can ask the model to perform a few tasks on the image. Below the inserted image in the prompt input field, paste the following prompt:
1. Provide a concise title for this image (under 5 words). 2. Describe the image in one or two sentences. 3. Extract all visible text from the image. Present the flight schedule as a clearly formatted list with columns for "Time" and "City".
  1. Click the Submit arrow button (bottom right of the prompt section) and review the model's response.

  2. Next, you can ask a question that requires reasoning based on the extracted information. Replace the previous text prompt (leave the image in place) with the following:

Based on the flight schedule shown in the image, what percentage of the listed flights depart before 11:30 AM? Show your calculation if possible.
  1. Click the Submit arrow button and examine the response.

  2. Briefly observe the effect of temperature. In the Configuration panel on the right:

    • Adjust the Temperature to 0.8.
    • Resubmit the exact same prompt from step 9 ("Based on the flight schedule... percentage...").
    • Note if the style, confidence, or detail of the explanation changes.
    • After observing, set the Temperature back to a lower value like 0.2 for more predictable responses.
Note: Temperature controls randomness. Lower values (e.g., 0.0-0.2) are good for factual responses, while higher values (e.g., 0.7+) can lead to more diverse or creative outputs, which might be less suitable for precise data extraction or analysis.
  1. Once you're satisfied with your exploration, save your work. Click the Save button on the top toolbar.
    • The name Timetable Image Analysis should be pre-filled.
    • Confirm the Region is .
    • Click Save in the dialog.
Note: After clicking Save, allow a few moments for the prompt to be saved before proceeding if you were to navigate away immediately.

Click Check my progress to verify the objectives.

Analyze images with Gemini in Vertex AI Studio.

Task 5. Explore Vertex AI Media Studio

Beyond text, Vertex AI Studio offers powerful tools for generating various media types directly from text prompts or by refining existing media. In this task, you'll explore generating images, videos, and voice.

  1. Ensure you are in Vertex AI Studio. If you're not already there, navigate from the Navigation menu (Navigation menu) by selecting Vertex AI > Vertex AI Studio > Media Studio. The page should resemble the following:

Vertex AI Media Studio home page

Generating an Image with Imagen

You'll start by generating an image.

  1. On the Media Studio landing page, under the "Start with a text prompt" section, click on Imagen - Generate images.

Vertex AI Media Studio configuration page

  1. In the text prompt area at the bottom, enter a descriptive prompt. For example:

    A close-up, photorealistic image of a single honeybee collecting pollen from a vibrant purple lavender flower, with a softly blurred garden background.
  2. In the Settings panel on the right:

    • Ensure the Model is set to Imagen 4 (or the latest available Imagen model).
    • For Aspect ratio, select 1:1.
    • Set Number of results to 4 for this first generation.
    • Review the Safety settings (e.g., Person generation, Safety filter threshold) and leave them at their defaults or adjust as preferred for this non-person-focused prompt.
  3. Click the Submit button at the bottom right of the prompt area.

  4. After a few moments, your generated images will appear in the main area.

  5. Click on one of the generated image thumbnails to open the detail view.

Image details

  1. In the Image details pane on the right:
    • Observe the available AI actions such as Inpaint (to add/remove elements using a mask), Outpaint (to extend the image), and Export image (which may offer upscaling).
    • Notice if SynthID detected is displayed with a green checkmark.
    • (Optional): select one of the options Inpaint or Outpaint and play around with them to see the capabilities of Imagen.

What is SynthID?

SynthID is a technology developed by Google DeepMind that embeds a digital watermark directly into the pixels of AI-generated images. This watermark is designed to be imperceptible to the human eye but detectable by an algorithm. Its purpose is to help identify images as AI-generated, promoting transparency and responsible AI practices, even if the image is later modified (e.g., compressed, filtered).

Generating a Video with Veo

Next, you'll generate a short video. You'll use the quick navigation toolbar within the Media Studio tools.

  1. In the small vertical toolbar on the far left of the page (with icons for different media types: image, audio, music, video), click the video icon (it looks like a video camera) to switch to the video generation tool. This opens the Veo interface.

  2. In the text prompt area at the bottom, enter a prompt for a short video. For example:

Drone shot slowly flying over vast green hills at golden hour.
  1. In the Settings panel on the right:

    • Ensure the Model is set to Veo 2 (or the latest available Veo model).
    • Set the Aspect ratio to 16:9.
    • Keep Number of results at 1.
    • Set Video length to 5 seconds (or a similar short duration).
    • For Output directory, click Browse.
      • If your project's bucket () is listed, select it.
      • If not, or if you need to specify the path, you might need to type gs:///` (ensure the trailing slash) or use the navigation to find your bucket.
      • Click Select to confirm the output directory.
    • Ensure Enable prompt enhancement is checked.
    • Review the Safety settings.
  2. Click the Submit button.

  3. Video generation can take longer than image generation. Once ready, the video will appear and you should be able to play it within the interface.

Veo video generated

  1. (Optional): You can click on the video to explore the AI Actions associated as well, like adding a soundtrack or a voiceover.

Click Check my progress to verify the objectives.

Explore Vertex AI Media Studio.

Generating Voice with Chirp (Optional)

If you wish to explore AI-generated voice:

  1. In the small vertical toolbar on the far left, click the Audio icon (it looks like a microphone) to switch to the voice generation tool. This opens the Chirp interface.

  2. You might be prompted to enable the Cloud Text-to-Speech API if it's not already active for your project. If so, click Enable and wait for the API to be enabled (this might take a moment).

  3. Once the interface is ready, in the text prompt area at the bottom, enter the text you want to synthesize. For example:

Welcome to the world of generative AI on Google Cloud
  1. In the Settings panel on the right:

    • Select a Model (e.g., Chirp 3. HD Voices).
    • Choose your desired Language (e.g., English (US)).
    • Select a Voice from the dropdown list. You can try a few different ones to hear their characteristics.
    • Explore any Advanced options if available and desired.
  2. Click the Submit button.

  3. After processing, you should be able to play the generated audio directly in the interface.

Congratulations!

Congratulations! In this lab, you successfully navigated Vertex AI Studio to prototype a generative AI application for an insurance scenario, from initial design and deployment to advanced prompt engineering and comparison. You practiced refining text outputs for specific analytical tasks and explored the exciting multimodal capabilities for generating images, video, and voice. These foundational skills will empower you to build even more sophisticated generative AI solutions on Google Cloud.

Next steps / learn more

Google Cloud training and certification

...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.

Manual Last Updated May 19, 2025

Lab Last Tested May 19, 2025

Copyright 2025 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.

Before you begin

  1. Labs create a Google Cloud project and resources for a fixed time
  2. Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
  3. On the top left of your screen, click Start lab to begin

Use private browsing

  1. Copy the provided Username and Password for the lab
  2. Click Open console in private mode

Sign in to the Console

  1. Sign in using your lab credentials. Using other credentials might cause errors or incur charges.
  2. Accept the terms, and skip the recovery resource page
  3. Don't click End lab unless you've finished the lab or want to restart it, as it will clear your work and remove the project

This content is not currently available

We will notify you via email when it becomes available

Great!

We will contact you via email if it becomes available

One lab at a time

Confirm to end all existing labs and start this one

Use private browsing to run the lab

Use an Incognito or private browser window to run this lab. This prevents any conflicts between your personal account and the Student account, which may cause extra charges incurred to your personal account.