始める前に
- ラボでは、Google Cloud プロジェクトとリソースを一定の時間利用します
- ラボには時間制限があり、一時停止機能はありません。ラボを終了した場合は、最初からやり直す必要があります。
- 画面左上の [ラボを開始] をクリックして開始します
Deploy Google Cortex Framework for supply chain
/ 10
Execute Dataform pipelines to create new data products
/ 15
Start a chat conversation about a BigQuery table
/ 15
Convert a chat to a BigQuery data agent
/ 15
Build and configure the Gemini Enterprise app
/ 15
Publish the conversational agent in Gemini Enterprise
/ 15
Explore the conversational supply chain scenario through a chat with your agent
/ 15
Deploy Google Cortex Framework for supply chain
/ 10
Execute Dataform pipelines to create new data products
/ 15
Start a chat conversation about a BigQuery table
/ 15
Convert a chat to a BigQuery data agent
/ 15
Build and configure the Gemini Enterprise app
/ 15
Publish the conversational agent in Gemini Enterprise
/ 15
Explore the conversational supply chain scenario through a chat with your agent
/ 15
In this lab, you explore the integration of enterprise ERP data with advanced generative AI to create a conversational supply chain management system. You learn how to transform complex, raw SAP data into an AI-ready foundation and deploy intelligent agents capable of reasoning across both SAP logistics data and non-SAP data sources such as sustainability and weather data.
In this lab, you learn how to perform the following tasks:
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:
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 right is the Lab setup and access panel with the following:
Note that the lab timer is located near the top of the page, showing the remaining time.
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.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab setup and access panel.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab setup and access panel.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
Cloud Shell is a virtual machine that is loaded with development tools. It offers a persistent 5GB home directory and runs on the Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources.
Click Activate Cloud Shell at the top of the Google Cloud console.
Click through the following windows:
When you are connected, you are already authenticated, and the project is set to your Project_ID,
gcloud is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.
Output:
Output:
gcloud, in Google Cloud, refer to the gcloud CLI overview guide.
It is early 2026. Scoops & Smiles is seeing a surge in pre-orders for the "Champion's Crunch" flavor. However, critical supply chain and inventory data resides within complex SAP enterprise systems. To ensure the Hamburg distribution center is stocked, you must deploy a "Conversational Supply Chain" AI assistant that allows your logistics team to ask natural language questions like, "Which vendors are at risk of missing our June delivery window?" or "Compare our current stock of cocoa against the Hamburg forecast."
Modernizing SAP data architectures requires seamless interoperability between SAP's rich business context and Google Cloud's AI and analytics scale:
Cortex Framework standardizes data processing inside BigQuery into three distinct architectural layers, supporting both direct replication (ELT/CDC) and zero-copy federation via SAP BDC Connect:
The data foundation layer establishes a clean, unified semantic baseline to feed downstream analytical and AI models:
The foundation layer supports dynamic schemas and extensive field-level annotations, ensuring data models are human-readable and optimized for LLM tool grounding.
Through Dataform pipelines and semantic views, standardized SAP datasets are aggregated, joined, and shaped into structured, domain-oriented data products:
In this task, you validate that the data transfer job is finished, before you explore the raw SAP data in BigQuery.
In a real world deployment, an SAP to BigQuery connection is likely already established using the BigQuery connector for SAP, Google BigQuery Toolkit, SAP Business data Cloud, or other tools. In this scenario, the SAP sample tables have already been copied to your project using BigQuery Data Transfer Service.
In this lab environment, your only actions are to validate that the data transfer job is finished, and then explore the raw SAP data in BigQuery.
In the Google Cloud console, in the Navigation menu (), click BigQuery > Pipeline & Connections.
In the Pipelines table, click on Sample dataset copy to view the details of the data transfer job.
Review the Summary column in the Run history table to verify the transfer status.
After you see that the Summary states The transfer run has completed successfully (represented by a green circle with a checkmark), you can move to the next task.
The transfer run is pending (represented by a dark gray circle), wait 2-3 minutes, and then refresh the page. You may have to refresh the page more than once to see the message that the data transfer job has completed.
The transfer run has failed (represented by a red exclamation mark), press the retry button or the Run transfer now button in the toolbar.
In this section, you verify that the necessary SAP raw tables are accessible within BigQuery.
In the BigQuery menu (left panel), click Studio.
In the Explorer pane, expand your project ID:
Click on the cortex_sap_raw dataset.
There should be a total of 23 tables including ekpo, marc, and mara.
ekpo, marc, and mara, click on each table name to view the details, and then click on the Preview tab to explore the data.In this task, you deploy Cortex Framework 7. This automatically generates a BigQuery Data Foundation, turning those raw tables into optimized data products.
In the Google Cloud console, click Activate Cloud Shell.
Set the required variables:
Create them? [Y/n], enter Y.Target datasets are missing and could not be created: 'qwiklabs-gcp-XXX-XXXXXXXX.cortex_sap_products', 'qwiklabs-gcp-XXX-XXXXXXXX.cortex_sap_foundation' , wait 3 minutes to allow permissions from step 5 to fully provision, and then repeat step 9 to run the deployment.
When you see a final message stating All workflow steps completed successfully, you can proceed to the next task. That message will resemble the following:
Click Check my progress to verify the objective.
In this task, you execute Dataform pipelines to create new data products from the raw data in BigQuery.
In the BigQuery menu (left panel), click Dataform.
Click on the created repository named cortex-repository.
Click on the workspace named dev.
Click Start execution > Execute actions.
For Select actions to execute, enable the checkbox for Select all.
After you select all, there are 29 actions selected.
Leave all other values as the default values, and click Start execution.
When prompted to Choose an account, select
Click Executions.
Verify the status is completed with a message of Success (represented by a green circle with a checkmark).
Please note that it might take a few minutes to complete the execution.
When the execution is successfully completed, there are 29 actions with a status of Success (green checkmark).
In this task, you verify that the data products were successfully created.
In the BigQuery menu (left panel), click Studio.
In the Explorer pane, expand your project ID:
Click on the cortex_sap_products dataset.
There should be a total of 10 tables including purchasing_documents_items.
purchasing_documents_items, click on the table name to view the details, and then click on the Preview tab to explore the data.Click Check my progress to verify the objective.
In this task, you use the Conversational Analytics Agent to interact with your data.
Remain on the BigQuery tab for the purchasing_documents_items table.
At the top of the BigQuery console, click Chat (next to Query) to open the Gemini chat.
Enter this prompt:
The response includes a message similar to Here are the top 10 open Purchase Order (PO) items ranked by their net order value in USD, likely followed by a data table and/or chart of the details.
Click Check my progress to verify the objective.
In this task, you transform your conversational session into a reusable agent.
In addition to the SAP Cortex datasets, your BigQuery instance includes a dataset named supply_chain_external. This dataset was automatically created and preloaded with data during the lab startup. It contains a snapshot of current weather events that we can now integrate with SAP supply chain data. While a real-world scenario might use live weather APIs, we provided this static snapshot to keep the lab simple and performant.
In the Explorer pane, expand your project ID:
Click on the supply_chain_external dataset.
Click on the weather_events table, and click Chat to start the chat with this table.
Ask this question:
You receive a few weather events as a response.
For Agent name, enter: cortex_sap_agent
Click Add source.
Click cortex_sap_products to see all data products located in this dataset.
Select the following data products to combine weather data with the supply chain data:
Click Confirm.
Configure agent instructions by adding the following text to the Instructions box.
The following text is an example of instructions you could use, but feel free to modify and experiment.
Click Save.
Click Publish, and then click Publish agent to confirm.
Click Close to close the Share window, which you do not need at this time.
Click Create conversation (next to Publish and Share).
Test the agent by entering the following prompts, one at a time:
Click Check my progress to verify the objective.
In this task, you build and configure the Gemini Enterprise app.
In the Google Cloud console, in the search bar, type AI Applications, and select AI Applications from the list of results.
Click Create a new app.
In the Create App dialog, choose the Gemini Enterprise type by clicking Learn More.
For App name, enter: cortex-sap-agent-app
Leave the remaining settings as their defaults.
Click Create.
In the Gemini Enterprise navigation menu (left panel), click on Integration.
For Choose an identity provider for your entire project, select Use Google Identity.
Click Confirm Workforce Identity.
Open your application by clicking on the link in the Your Gemini Enterprise webapp is ready section on the Integration page.
The link resembles https://vertexaisearch.cloud.google.com/home/cid/0d3c899a-695f-4168-860b-77be164c0a87?hl=en_US , and the application opens in a new browser tab.
Although the application is not yet connected to any data sources, you can still interact with it.
Hello there! to start the conversation.Leave this browser tab open as you proceed to the next task.
Click Check my progress to verify the objective.
In this task, you register the conversation analytics agent created in the previous step in Gemini Enterprise as an a2a agent using its agent card.
The official Google Cloud documentation for agents provides a detailed description on how to add an a2a agent in Gemini Enterprise. This process consists of two main steps: configuring authorization details and registering the agent in Gemini Enterprise. Let us approach them below.
Return to the original browser tab for the Google Cloud console.
In the Google Cloud console, in the Navigation menu (), click APIs & Services > OAuth consent screen.
Click Get started, and enter the following information for the consent screen:
Click Create.
In the Google Cloud console, in the Navigation menu (), click APIs & Services > Credentials.
Click Create credentials, and select OAuth client ID.
For Application type, select Web application.
In the Authorized redirect URIs section, click Add URI, and enter: https://vertexaisearch.cloud.google.com/oauth-redirect
Click Create.
The downloaded JSON includes the Client ID, Authorization URI, Token URI, and Client secret for the selected Google Cloud project. You need these details to create an authorization resource.
Return to your BigQuery console by opening the Navigation menu (), and clicking BigQuery.
In the BigQuery menu (left pane), click on Agents, and then click on the tile for the cortex_sap_agent agent.
Click Edit Agent under the Details menu (right panel).
Click Publish to see the agent details.
In the section for Additional channels > Integrate via A2A (Agent2Agent), click Copy JSON.
Return to the AI application again by searching AI Applications in the search bar, and selecting AI Applications from the list of results.
Click on cortex-sap-agent-app.
In the Gemini Enterprise navigation menu (left panel), click Agents.
Click Add Agent.
In the Choose an agent type section, click Add for Custom agent via A2A.
In the Agent card JSON field, paste the agent card JSON that you copied earlier in step 5.
Click Preview agent details, and then click Next.
Select Custom OAuth.
For Client ID, enter the client_id from the JSON file that you downloaded in the previous section (for example, 263636146694-34c9a7di8ojodnu50gj952itcsshrrl0.apps.googleusercontent.com).
For Client secret, enter the client_secret from the JSON file (for example, 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).
For Authorization URL, enter the auth_uri from the JSON file (for example, https://accounts.google.com/o/oauth2/auth), and the append the following string to the end: ?access_type=offline&prompt=consent
The Authorization URL now resembles https://accounts.google.com/o/oauth2/auth?access_type=offline&prompt=consent.
For Token URL, enter the token_uri from the JSON file (for example, https://oauth2.googleapis.com/token).
For Scopes, enter the following two values separated by a single space:
After the agent is successfully created, the page refreshes to show you the Agents table with all created agents, including cortex_sap_agent.
Click Check my progress to verify the objective.
In this task, you explore the conversational supply chain scenario by asking questions to the agent.
In the Agents table, identify the row for the agent named cortex_sap_agent. Scroll to the column named Actions, click More options (three dots icon) to see the options, and then click Preview.
Start the conversation by entering Hello there! into the chat.
If prompted for authorization, click Authorize, and select the lab's username:
You can now ask questions about the data. The real power of this integration becomes clear when you ask the agent to reason across multiple domains simultaneously. For example, these questions below illustrate how overlaying external variables, like severe weather, onto your core SAP supply chain records gives you a complete operational picture. By combining these datasets, you can move from reacting to delays to proactively pinpointing at-risk suppliers, calculating the exact value of exposed purchase orders, and drafting mitigation plans before the storm even hits.
Click Check my progress to verify the objective.
You have successfully bridged the gap between SAP and Agentic AI. You are now ready to redefine business processes with Google Cloud and SAP!
...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 October 27, 2026
Lab Last Tested October 27, 2026
Copyright 2026 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.
このコンテンツは現在ご利用いただけません
利用可能になりましたら、メールでお知らせいたします
ありがとうございます。
利用可能になりましたら、メールでご連絡いたします
1 回に 1 つのラボ
既存のラボをすべて終了して、このラボを開始することを確認してください