1. Overview
Building an interactive AI assistant traditionally required writing application code, wiring tool integrations, and managing deployment infrastructure. Agent Studio on Google Cloud provides a visual, natural-language interface where anyone can design, instruct, ground, and test multi-agent systems side by side in a preview simulator without writing code.
In this beginner-friendly codelab, you configure a Personal Assistant agent and evolve it into a coordinated multi-agent system with three specialized personas:
- The Travel Planner: Organizes trips and structured day-by-day itineraries.
- The Tech Event Scout: Searches for upcoming tech meetups and conferences using live Google Search grounding.
- The Dietitian: Suggests structured meal plans and nutritional guidance tailored to dietary preferences.
Prerequisites
- Basic familiarity with using web applications and browsers
- A basic understanding of large language models and AI agents (no Python or coding background required)
What you'll learn
- How to navigate the Agent Studio console on Google Cloud
- How to define an agent's persona and goal using natural-language instructions
- How to refactor a monolithic prompt into a coordinator and specialized sub-agents
- How to ground your agent with search tools to find real-time event information
- How to test and refine your agent's behavior using the built-in simulator
What you'll need
- A Google account (use a personal
@gmail.comaccount if claiming workshop credits) - A workshop credit link from your instructor (plus a phone camera to scan the QR code) or an active Cloud Billing account
- Google Chrome (an Incognito window is recommended to avoid mixing personal and work accounts)
2. Claim Google Cloud credits (Optional)
If you're completing this codelab on your own and are eligible, use the Google Developer Program credits banner on this page to claim credits without a credit card. If you're attending a workshop with an event credit link from your instructor, follow the event credit steps in this section.
Claim your event credit
You claim workshop event credits through Google Builders Hub (part of the Google Developer Program).
To claim your event credit, follow these steps:
- Open the workshop credit link in an Incognito window and sign in with your personal
@gmail.comaccount. - On the Claim Your Benefit card, click Claim Credit.

- Optional: If you see a prompt to create a Google Developer Program profile, complete the form.
- When the Scan to Verify You're Human dialog appears, scan the QR code with your phone and complete verification. If the QR code doesn't appear, refresh the page and click Claim Credit again.
- Confirm that the Successfully claimed your event credit! message appears, and then click Open Billing Account.

🔍 Check your work
Billing account provisioning can take up to five minutes. To confirm that your credit is active, complete the following steps:
- If the Billing account management page isn't already open, open Google Cloud Billing (or copy the URL into your Incognito window):
https://console.cloud.google.com/billing
- Click the Your billing accounts tab and refresh the page until an account containing GDP Credit shows Active in the Status column.

3. Create a Google Cloud project (Optional)
Create a dedicated Google Cloud project to keep all resources from this codelab isolated so you can remove them cleanly when you finish.
To create a Google Cloud project, follow these steps:
- Open Create a project (or copy the URL into your Incognito window):
https://console.cloud.google.com/projectcreate
- Enter your project details:
- Project name: Enter a descriptive name, such as
google-cloud-workshop. - Billing account (if shown): Select your GDP Credit account (or your active billing account).
- Parent resource: Leave No organization selected (or select your organization if required).
- Project name: Enter a descriptive name, such as
- Note the generated Project ID, and then click Create.

🔍 Check your work
After project creation finishes, open Notifications on the Google Cloud console toolbar, and then click Select Project.

4. Set up your environment
Make sure your active Google Cloud project is selected in the top-left project picker of the Google Cloud console, and then enable the Agent Platform API so you can use Agent Studio.
Enable the Agent Platform API
- Open Agent Platform API in Cloud Marketplace (or copy the URL into your Incognito window):
https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com
- Confirm your workshop project is selected in the top toolbar, and click Enable (if it already displays Manage, the API is already enabled).
5. Create Your First Agent
Create an agent
With the Agent Platform API enabled, create your first agent in Agent Studio:
- Open Agent Studio (or copy the URL into your Incognito window):
https://console.cloud.google.com/agent-platform/studio/agent-designer/list
- On the Welcome page, click + Create Agent.
- You are redirected to the Agent Designer console.
- Click My Agent and fill in these configuration settings:
- Name: Personal Assistant
- Description: A versatile, friendly, and practical personal assistant.
- Instructions:
You are a versatile, friendly, and practical personal assistant. Your primary goal is to assist the user with three specific domains: Travel Planning, Tech Event Scouting, and Diet/Nutrition advice. You adjust your tone to be helpful, professional, and clear.
- Model: Gemini 3.8 Flash
- Tools: Google Search and URL Context
- Click Save (at the top right corner of the screen)
- Once the agent is saved, click Preview.
- Test your agent by asking something like "Hello, what can you do?". The agent responds based on the instructions above.
Understanding built-in tools
Agent Studio provides built-in tools that connect your agent to external data:
- Google Search: Allows the agent to query the web in real time to retrieve up-to-date information (such as upcoming tech events).
- URL Context: Allows the agent to focus its reasoning on the content of specific user-provided web pages to keep its answers grounded.
6. Test the Agent
Since this personal assistant agent covers travel planning, tech event scouting, and diet advice, test each feature one by one.
First, test a travel planning request:
I want to plan a 3-day trip to Tokyo next month.
Next, ask to scout tech events:
Find me some upcoming events in Singapore on Luma.
Finally, request a meal plan:
Can you help me design a healthy meal plan?
You will notice that the agent's responses are generic because it doesn't know anything about you yet. It might suggest a breakfast with meat (even if you are vegetarian) or plan a travel itinerary filled with modern shopping malls (even if you prefer historical temples).
To operate as a true personal assistant, the agent must be customized to understand your individual preferences.
7. Personalize the Monolithic Agent
Expand the agent's capabilities by adding detailed guidelines for all three personas (Travel, Events, and Diet) into a single main agent's instructions (a monolithic agent design).
- Click Flow to return to the Agent Designer console.
- Click Personal Assistant to open its configuration.
- Replace the existing Instructions text entirely with this expanded monolithic prompt:
You are a highly personalized assistant. You always use a helpful, clear, and professional tone. Keep the following user profile and preferences in mind for every interaction:
- USER DIET: The user is strictly vegetarian and prefers high-protein options. Never suggest recipes containing meat, poultry, or fish. Focus on rich plant-based proteins (e.g., tofu, lentils, Greek yogurt).
- USER TRAVEL: The user prefers structured trips, historical landmarks, and local culinary experiences. Always prioritize these elements in itineraries.
- USER TECH INTERESTS: The user is based in Singapore and is interested in Artificial Intelligence events on Luma, Eventbrite, and Meetup.
### Domain 1: Travel Planner
When the user asks to plan a trip, generate a structured, day-by-day travel itinerary with clear headings and bullet points, keeping the USER TRAVEL preferences in mind.
### Domain 2: Tech Event Scout
When the user asks to find tech events, search specifically for upcoming AI or Web Development events in Singapore on Luma or Meetup, keeping the USER TECH INTERESTS in mind.
### Domain 3: Personal Dietitian
When the user requests nutrition or meal planning advice, draft a structured meal plan with simple food recommendations, keeping the USER DIET preferences in mind. Always include a disclaimer stating this is for educational purposes only.
- Open the Preview panel. If a conversation is active, click New Session at the top right to clear the history.
- Chat with the agent again using the same prompts:
- I want to plan a 3-day trip to Tokyo next month.
- Find me some upcoming events in Singapore on Luma.
- Can you help me design a healthy meal plan?
The agent now applies the preferences from the system prompt before answering.
While this personalized monolithic agent works, consider the challenges as the agent grows:
- Prompt Bloat: Adding favorite airlines, exercise routines, and work schedules makes a single prompt block long and increases the chance the model misses constraints.
- Tool Overexposure: Only the Event Scout needs Google Search. Enabling Google Search on a monolithic agent exposes it to the Dietitian and Travel Planner too, triggering unnecessary web searches.
- Maintenance Difficulty: Updating dietary preferences shouldn't risk breaking travel rules.
To resolve this, you split those profiles into specialized sub-agents.
8. Transition to a Multi-Agent System
Divide the personalized assistant into a team of three specialized sub-agents, with Personal Assistant acting as the coordinator.
- Click Flow to return to the Agent Designer console.
- Click Personal Assistant to open its configuration.
- Replace Instructions with a coordinating prompt:
You are a personal assistant coordinator. Your goal is to understand the user's intent and route the conversation to the correct specialist sub-agent:
- Route to the Travel Planner sub-agent if the user wants to plan a trip, vacation, or itinerary.
- Route to the Tech Event Scout sub-agent if the user is looking for tech events, meetups, or conferences.
- Route to the Personal Dietitian sub-agent if the user is asking for diet, meal planning, recipes, or nutrition advice.
- Change the Model to Gemini 3.5 Flash (lightweight routing does not need a larger model).
- Remove Google Search and URL Context from Tools.
- Click anywhere on the Agent Designer canvas to save the agent.
9. Create the Personalized Sub-Agents
Now build the three specialized sub-agents and equip each one with only its own domain preferences and tools.
Create Travel Planner sub-agent
- Click Flow to return to the Agent Designer console.
- Locate Personal Assistant and click the + button at the bottom of its card.
- Click Subagent and fill in these configuration settings:
- Name: Travel Planner
- Description: Handles queries related to trip itineraries, travel preferences, and packing tips.
- Instructions:
You are a detail-oriented Travel Planner.
PREFERENCE: The user prefers structured trips, historical landmarks, and local culinary experiences.
When the user asks to plan a trip:
1. Build a structured, day-by-day travel itinerary matching the destination they mention.
2. Ensure the itinerary is tailored around historical sites and local dining experiences.
3. Include practical travel tips such as packing recommendations and typical local weather estimates for that region.
4. Keep the suggestions organized with clear headings and bullet points.
- Set Model to Gemini 3.8 Flash.
- Remove URL Context from Tools, keeping Google Search enabled.
- Click anywhere on the Agent Designer canvas to save the sub-agent.
Create Tech Event Scout sub-agent
- Click Flow to return to the Agent Designer console.
- Locate Personal Assistant and click the + button at the bottom of its card.
- Click Subagent and fill in these configuration settings:
- Name: Tech Event Scout
- Description: Searches for upcoming tech meetups, events, and conferences on Luma, Meetup, and Eventbrite.
- Instructions:
You are a proactive Tech Event Scout.
PREFERENCE: The user is based in Singapore and is interested in Artificial Intelligence and Web Development events on Luma and Meetup.
When the user asks to find tech events:
1. Use the Google Search tool to search for actual, upcoming AI or Web Development events in Singapore on Luma or Meetup.
2. Present 3 to 4 upcoming events. For each event, provide:
- The event title
- Date and location
- The platform hosting it (Luma or Meetup)
- A brief description of what the event covers
3. Remind the user to verify the event registration page for official details before finalizing plans.
- Set Model to Gemini 3.8 Flash.
- Remove URL Context from Tools, keeping Google Search enabled.
- Click anywhere on the Agent Designer canvas to save the sub-agent.
Create Dietitian sub-agent
- Click Flow to return to the Agent Designer console.
- Locate Personal Assistant and click the + button at the bottom of its card.
- Click Subagent and fill in these configuration settings:
- Name: Dietitian
- Description: Provides structured meal planning, recipes, and dietary suggestions.
- Instructions:
You are an encouraging and practical Dietitian.
PREFERENCE: The user is strictly vegetarian and prefers high-protein options. Never suggest recipes containing meat, poultry, or fish.
When the user requests nutrition or meal planning advice:
1. Draft a simple, structured 3-day meal plan featuring high-protein, vegetarian food items (e.g., tofu, beans, greek yogurt, eggs).
2. Include a brief list of primary ingredients to help them with grocery planning.
3. Always include this disclaimer: "This advice is for educational and general planning purposes. Please consult a healthcare professional or registered dietitian for personalized medical advice."
- Set Model to Gemini 3.8 Flash.
- Remove Google Search and URL Context from Tools.
- Click anywhere on the Agent Designer canvas to save the sub-agent.
Once all three sub-agents are configured, your agent graph looks like this in Agent Designer:

10. Test the Multi-Agent System
Verify that your coordinator routes smoothly across all three specialist sub-agents in a single multi-turn conversation.
Click New Session in the Preview panel if you want a clean conversation history, then test all three prompts:
- I want to plan a 3-day trip to Tokyo next month.
- Find me some upcoming events in Singapore on Luma.
- Can you help me design a healthy meal plan?
Once your agent switches across all three domains accurately, you are ready to deploy it to Agent Runtime.
11. Deploying Your Agent (Optional)
Once you are satisfied with your agent's behavior in the preview simulator, you can deploy it to Agent Runtime so external applications or users can call it.
Deploy from Agent Studio
- At the top of the Agent Studio console, click Deploy.
- Select a target region and deploy to Agent Runtime.
- Wait 2 to 5 minutes for provisioning to complete.
Test the deployed agent
Once deployment finishes, test the live runtime in Agent Runtime > Playground:
- Open Agent Runtime (or copy the URL into your Incognito window):
https://console.cloud.google.com/agent-platform/runtimes
- Click your deployed agent (Personal Assistant) in the runtime list.
- Select the Playground tab and send a test query to confirm coordinator and sub-agent routing in the live environment.
Troubleshooting deployment failures
In sandbox or workshop projects, you might occasionally see an error similar to:
Creating agent runtime for Personal Assistant in us-west1 1 minute ago gcp-experiments Deployment failed: Reasoning Engine resource [projects/415458962931/locations/us-west1/reasoningEngines/4162566304806469632] failed to start and cannot serve traffic. Please refer to our troubleshooting pages (e.g., https://docs.cloud.google.com/gemini-enterprise-agent-platform/troubleshooting/agent-deployment) to debug and fix the error.
If you encounter this error, check the following:
- Verify Project Billing: Confirm your Google Cloud project has an active billing account linked.
- IAM Permissions: Confirm your user account or service agent has the Agent Platform User (
roles/aiplatform.user) role. - Retry in Agent Runtime: Open Agent Runtime in the left navigation menu to check status or retry deployment.
12. Clean up (Optional)
To avoid ongoing charges on your Google Cloud billing account, delete any deployed runtime and agent resources when you finish.
Delete the runtime (if you deployed)
- Open Agent Runtime (or copy the URL into your Incognito window):
https://console.cloud.google.com/agent-platform/runtimes
- Click the three vertical dots (More actions) next to Personal Assistant, and select Delete.
Delete the agent
- Open Agent Studio (or copy the URL into your Incognito window):
https://console.cloud.google.com/agent-platform/studio/agent-designer/list
- Click the three vertical dots (More actions) next to Personal Assistant, and select Delete.
Shut down the Google Cloud project
If you created a dedicated project solely for this codelab and want to delete all resources in it:
- Open Project Settings (or copy the URL into your Incognito window):
https://console.cloud.google.com/iam-admin/settings
- Confirm your codelab project is selected at the top of the page, click Shut down, enter the Project ID, and click Shut down anyway.
13. Congratulations
Congratulations! You built a multi-purpose personal assistant system using Agent Studio without writing code.
What you accomplished
- Configured an agent in Agent Studio with built-in Google Search grounding
- Evolved a single monolithic system prompt into a coordinator and three domain sub-agents
- Tested multi-turn routing across travel, event scouting, and nutrition tasks in the simulator
As a next step, explore connecting your agents to enterprise data sources, MCP tools, or custom web frontends.