arrow_back

Deploy and Query Google Agentspace

Sign in Join
Get access to 700+ labs and courses

Deploy and Query Google Agentspace

Lab 1 hour 30 minutes universal_currency_alt 5 Credits show_chart Intermediate
info This lab may incorporate AI tools to support your learning.
Get access to 700+ labs and courses

GENAI082

Overview

In this lab, you will deploy an Agentspace app connected to a Google Drive data store and use the AI assistant to locate information from within your organization.

For this lab, you’ll take on the role of a scientific conference organizer planning a conference to discuss the discovery of an exciting new exoplanet.

Note: To avoid confusion between your professional Google Identity and any other temporary Qwiklabs student accounts, it is strongly recommended that you utilize a new Incognito window for the Google Cloud console and Google Drive tabs you will use in this lab. To do this easily in Chrome, after starting the lab, right-click on the “Open Google Cloud console” button and select “Open link in incognito window”.

Objectives

In this lab, you learn how to:

  • Configure AI Applications authentication
  • Create a Google Drive data store
  • Create an Agentspace app
  • Use the AI assistant to find, summarize, and extract content from a data store
  • Create a calendar invite with an assistant action

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 will be made available to you.

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

What you need

To complete this lab, you need:

  • Access to a standard internet browser (Chrome browser recommended).
  • Time to complete the lab.

Note: If you already have your own personal Google Cloud account or project, do not use it for this lab.

Note: If you are using a Pixelbook, open an Incognito window to run this lab.

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.

Task 1. Add content to Google Drive and Google Calendar

  1. Navigate to Cloud Storage > Buckets and click on the existing bucket with the name:.

  2. Download the files listed below to your local system to use as demo data:

    • PlanetCon_Persephone.docx
    • Persephone Analysis Report.pdf
  3. In the Incognito window where you have logged into the Google Cloud console, create a new tab and navigate to drive.google.com.

  4. Create a new folder in your Qwiklab student account’s drive and name it PlanetCon: Persephone.

  5. Upload the documents you downloaded from Cloud Storage to the folder you just created in Google Drive named PlanetCon: Persephone. These documents relate to the imaginary discovery of a new planet named "Persephone" and the organization of a conference planned for the scientific community to discuss it.

  6. In the same Incognito window, create a new tab, and navigate to calendar.google.com. Accept or dismiss any pop-ups.

  7. Ensure you are authenticated as your Qwiklabs student account by clicking the “s” in the circle in the upper right corner and confirming it is your student-...@qwiklabs.net account.

  8. In the upper left, click + Create and select Event from the dropdown menu.

  9. In the event-creation window that appears, name the event as Astronomers Lunch Planning Meeting, and set a start time of at least one hour from now.

  10. Select Save.

Click Check my progress to verify the objective. Add the downloaded documents to your Drive and an event to your Calendar

Task 2. Configure an Identity Provider

  1. In the Google Cloud Console, navigate to the Agentspace landing page by searching for it at the top of the console.

  2. On the Agentspace card, click Manage.

  1. You will be sent to AI Applications. Click CONTINUE AND ACTIVATE THE API.

  2. Select Settings from the left-hand navigation pane.

  3. On the row for the global location, click the pencil icon .

  4. Select Google Identity as your identity provider.

  5. Select SAVE.

Click Check my progress to verify the objective. Configure an AI Applications identity provider

Task 3. Create Google Drive and Google Calendar Data Stores

  1. From the AI Applications menu, select Data Stores from the left-hand navigation pane.

  2. Select + CREATE DATA STORE.

  3. Locate the Google Drive card and click SELECT.

  4. For Choose drives you want to sync, select All.

    Note: While Agentspace makes it easier to find information across your data sources, it does not grant additional access. You will still only have access to the documents that have been shared with you via existing Drive permissions, and others will only have access to your documents that you have shared with them.
  5. Click CONTINUE.

  6. Keep the default region of global, and give the data store the name Google Drive.

  7. Select CREATE.

  8. Follow the steps in this task again, only this time create a data store for Google Calendar. Name it Google Calendar.

  9. The two data stores should be listed in the AI Applications > Data Stores panel.

Click Check my progress to verify the objective. Create Google Drive and Google Calendar data stores

Task 4. Deploy an Agentspace app

  1. From the AI Applications menu, select Apps from the left-hand navigation pane.

  2. Select + CREATE APP.

  3. Find the Agentspace card and select CREATE.

  4. Name your app Scientific Conferences Agentspace.

  5. For a company name, use Scientific Conferences.

  6. Select CONTINUE.

  7. For connected data stores, select the checkbox for the Google Drive and Google Calendar data stores you created earlier.

  8. Select CREATE.

Click Check my progress to verify the objective. Deploy an Agentspace app

Task 5. Set up an OAuth Consent Screen and Create client

In order for the AI assistant to take actions on a user’s behalf, the user must grant access to your enterprise search and assistant app. To configure the OAuth consent screen and client, follow the following steps:

  1. Navigate to the Google Auth Platform.

  2. Click GET STARTED.

  3. For App Name, enter Scientific Conferences Agentspace.

  4. For the user support email, select your Qwiklabs student account.

  5. Select Next.

  6. In the Audience section, select an Internal Audience.

  7. Select Next.

  8. In the Contact Information section, provide an email address, which can be your real professional email address or your Qwiklabs student account.

  9. In the Finish section, agree to the terms.

  10. Select Create to create your OAuth consent screen.

  11. Your Google Auth Platform dashboard will display a banner that you haven’t created any clients yet. Select Create OAuth Client. If you don’t see this banner, select Clients on the left and then + Create Client.

  12. Select an Application type of Web application.

  13. Name the client Agentspace Client.

  14. Under Authorized redirect URIs, add https://vertexaisearch.cloud.google.com/oauth-redirect

  15. Click Create.

  16. Once the OAuth client is created, close the pop-up by clicking OK. Then, select the OAuth Client named Agentspace Client. Copy the Client ID and Client Secret, and save them in a text document—you will need them shortly to enable actions.

Click Check my progress to verify the objective. Set up an OAuth Consent Screen and create a client

Task 6. Enable a Google Calendar Action

To configure the action, you’ll need to enable the Google Calendar API. To do so:

  1. In the search bar at the top of the Cloud Console, search for the Google Calendar API and select it.

  2. Click Enable if the API is not already enabled.

  3. You can now add the action to your app. Return to the AI Applications console.

  4. Click on the name of your AI Applications App: Scientific Conferences Agentspace.

  5. Select Actions from the left-side navigation.

  6. Select ADD ACTION.

  7. Find the Calendar card and click CONNECT.

  8. Enter an Action connector name of calendar_action.

  9. Enter the Client ID and Client Secret of the OAuth client you created above.

  10. Select the checkbox to enable the Create calendar event action to allow the assistant to create meetings based on requests in the Agentspace search bar.

  11. Click FINISH SETUP.

Click Check my progress to verify the objective. Enable a Google Calender action

Task 7. Query your Agentspace Assistant

  1. Take a 10-minute break for the app, its data stores, and actions to finish creating. You can see that your action is finished creating when you select calendar_action from the app's Actions menu and see that it has a connector state of Active.

  2. Then, navigate to AI Applications > Apps > Scientific Conferences Agentspace.

  3. Select Preview from the left-hand navigation pane to view the experience your users will see.

  4. This home page is designed to give users easy access to the content and events they will find most useful. You will see a few sections:

    • Agents: Use some Google-provided agents or create your own to help with tasks like research, iterating on ideas, or more.
    • Prompts: Get suggestions for ways you can use the AI Assistant.
    • For You: See recent files you've interacted with and upcoming calendar events. You should now see the files you added to your Drive and the upcoming Astronomers Lunch Planning Meeting you created.
    Note: If your data stores are still indexing, the files may require a little time to become accessible.
  5. In the search bar, enter the following query: what topics will be discussed at planetcon?

  6. You should see an answer as well as relevant documents in the side bar.

  7. Click the Google Agentspace logo (which you can replace with your own logo from the Configurations menu) to return to the homepage.

  8. Enter a different prompt in the primary search bar: what is the size of Persephone compared to Earth?

  9. You should see a result that extracts the information you are looking for from the Persephone Analysis Report.pdf document you uploaded to your drive. Remember, there is no real exoplanet Persephone, so you know the model is not relying on training data, but is finding information in your uploaded data. You can further validate this by clicking the link icon and the card that appears below the response to be taken directly to the file that serves as the source of this information.

  10. Click the Google Agentspace logo again to return to the homepage.

  11. When you don’t have time to review a document, you can use the Agentspace AI assistant to create a useful summary for you. In the search bar, enter the following query: summarize the document Persephone Analysis Report.

  12. Review the assistant’s response.

  13. In the search bar, enter the following: Create a 1-hour meeting tomorrow at 10am for exoplanet-research@qwiklabs.net to review conference presentation proposals.

  14. The assistant will prepare a template calendar event for you to approve.

  15. Authorize the application using the OAuth Consent Screen you configured using your Qwiklabs student account.

  16. Confirm the appearance of the event on your Google Calendar tab (or navigate to calendar.google.com in a new tab).

Task 8. Open the hosted link to your application

  1. From your AI Applications app’s menu, select Integration from the left-hand navigation pane.

  2. Under The link to your web app, click OPEN to preview the hosted application. This is the application for your organization. When configuring Agentspace in production, you could use a DNS record to configure this home page to be accessible from a subdomain of your website, like agentspace.my-domain.com.

Congratulations!

In this lab, you’ve learned how to deploy Agentspace to utilize Google’s combined expertise in search, generative AI, and cloud infrastructure to ease knowledge exchange throughout your organization.

Manual Last Updated June 26, 2025

Lab Last Tested June 26, 2025

Copyright 2023 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

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.