Skip to main content

Quick Overview

This video is a hands-on developer tutorial presented by Luke Schlangen for Google Cloud Tech. It walks through an official Google codelab demonstrating how to build and launch a portfolio website using generative AI tooling. The demonstration explains how to leverage Google AI Studio Build Mode alongside Google Cloud Run to go from a natural language prompt to a deployed web application.

Key Points

  • 1.Google AI Studio Build Mode allows developers to rapidly prototype full-stack and frontend web applications using natural language prompts.
  • 2.The build interface automatically generates code, provides selectable visual design themes, and displays a live interactive preview sandbox.
  • 3.Generative AI outputs are non-deterministic, meaning identical prompts can yield different code, layouts, and simulated background details.
  • 4.Developers can iterate on generated applications by asking the assistant in natural language to add, modify, or remove specific UI sections and features.
  • 5.Web applications created in Google AI Studio can be deployed directly to Google Cloud Run with a hosted URL ending in ai.studio or mapped to a custom domain.
  • 6.Completing the builder lab awards the Completed Builder Journey learning badge on Google Developer profiles.

Summary

Luke Schlangen presents a step-by-step walkthrough of the Google Cloud codelab titled Launch your portfolio website with AI. The lab focuses on using Google AI Studio Build Mode to rapidly build and deploy a personal portfolio website through natural language prompts. The process begins in Google AI Studio, accessible at ai.dev, by navigating to the Apps panel and creating a new application.

A starter prompt is supplied to generate a responsive personal website containing sections for biography, project showcase, skills, and professional profiles. Schlangen customizes this prompt with his own name and web domain, luke.mn, while removing requests for a blog and contact form. He highlights that AI models are non-deterministic, meaning identical prompts will produce different outputs across runs due to built-in system temperature and randomness.

During code generation powered by Gemini 3.5 Flash Lite, the platform offers multiple design aesthetics to choose from, including Bold Typography, Clean Minimalism, Elegant Dark, Professional Polish, and Sophisticated Dark. Selecting a design automatically queues a follow-up prompt, though users can skip this step to proceed with the initial layout. Once generation completes, the interface displays both the underlying code, built with React and Next.js, and an interactive live preview sandbox.

Schlangen tests the rendered user interface by attempting to submit a mock message through a generated contact form. Observing that the form and an AI chat widget lack backend functionality and that the model hallucinated inaccurate past employment details at Apex Digital Systems, he uses natural language in the chat panel to instruct the assistant to remove the contact and Ask AI sections. The AI assistant diagnoses build issues, resolves dependency errors, and updates the application code automatically.

To publish the finished website, Schlangen opens the Publish panel, selects his Google Cloud project named full-stack-improv, and customizes the public URL slug to create a live address under the ai.studio domain. The application deploys to Google Cloud Run within minutes. Schlangen concludes by reviewing optional steps for configuring custom domain DNS records, outlining cleanup procedures to delete project resources, and claiming the Completed Builder Journey milestone badge on Google Developer profiles.

Setting Up and Initial Prompting

Luke Schlangen introduces the codelab for building a portfolio website using Google AI Studio Build Mode. Users access the interface through ai.dev, where a pre-populated prompt requesting a personal portfolio website with a biography, project showcase, skills, and links can be customized with specific names, URLs, and desired features.

Interactive Previews and AI Iteration

As the Gemini model compiles the application code, the interface offers visual design presets such as Bold Typography, Clean Minimalism, and Elegant Dark. The interactive sandbox allows live testing, during which Schlangen tests the form functionality and prompts the model to remove unneeded contact and Ask AI sections.

Deploying to Cloud Run and Domain Mapping

Once refined, the application is deployed directly to Google Cloud Run by selecting a target Google Cloud project and configuring an app URL slug on the ai.studio subdomain. The codelab additionally provides instructions for mapping custom domains using Cloud Run DNS records and cleaning up cloud resources.

The Bottom Line

The tutorial establishes how Google AI Studio Build Mode simplifies frontend development by translating prompt descriptions into working Next.js code and deploying it smoothly onto Google Cloud Run. It illustrates how developers can iterate on AI-generated interfaces, fix compilation issues, and adjust placeholder content. The demonstration leaves advanced custom domain DNS propagation and full backend database integration for viewers to explore in subsequent builder labs.

FAQ

What is Google AI Studio Build Mode and how does it generate a portfolio website?

Google AI Studio Build Mode is an AI-assisted development environment that uses Gemini models to convert natural language descriptions into functional frontend web code, complete with an interactive preview sandbox.

Why does Google AI Studio Build Mode produce different results when using the same prompt?

The system relies on large language models that exhibit non-determinism and temperature variations, introducing controlled randomness that leads to differing layouts, text, and code structures across generations.

How can developers modify or remove components in the Google AI Studio preview sandbox?

Developers can type natural language instructions into the chat prompt box, such as asking to remove specific sections or add features, and the AI agent will adjust the source code and repair any compilation errors.

What cloud platform does Google AI Studio use to host and publish generated web applications?

Applications are deployed directly to Google Cloud Run under a designated Google Cloud project, providing a publicly accessible URL hosted on the ai.studio subdomain.

How do developers map a custom domain name to a Google AI Studio app deployed on Cloud Run?

Developers can use the Cloud Run Domain Mappings page in the Google Cloud Console to enter their domain, add the provided DNS records at their registrar, and wait for automated SSL certificate provisioning.

Worth watching for

Developers, engineers, and AI practitioners looking to learn how to rapidly prototype, iterate on, and deploy web applications using Google AI Studio and Google Cloud Run.

  • google-ai-studio
  • cloud-run
  • gemini
  • web-development
  • prototyping
  • google-cloud