How to write an AI prompt

Google · 3 months ago

At a glance

Length
3 min
Channel
Google
Video from
Apr 2026
Rating
⭐⭐ Great video · 2/2
Best for
Anyone building apps or prototypes with AI code generation tools.

What this video answers

  • Why do open-ended prompts produce poor results?
  • Do I need technical skills to write good prompts?
  • How should visual references be included?
  • Can this approach work for complex projects?
  • What happens if my first prompt doesn't produce what I want?

Overview of Google's AI Prompt Writing Tutorial

Google's tutorial on writing effective AI prompts walks viewers through a practical approach to generating functional software using natural language. The core premise is that vibe coding—describing what you want and letting AI build it—is achievable for anyone, but success depends entirely on how well you communicate your vision to the model. Rather than treating prompt writing as intuitive, the video presents it as a learnable skill with concrete strategies.

The tutorial demonstrates these principles using a tangible example: building a fully playable 3D racing game from scratch using only natural language descriptions. This hands-on approach grounds the abstract concept of prompt engineering in something viewers can understand and replicate with their own projects.

Key Strengths in Prompt Writing Techniques

  • Granularity beats vagueness: Open-ended requests produce generic outputs. The video emphasizes breaking requests into structured bullet points and themes rather than single sentences.
  • Technical guidance matters: Even non-technical users benefit from naming preferred technologies or asking the AI to select the best tools for the job, which helps the model make smarter decisions.
  • Visual references accelerate clarity: Including sketches, screenshots, or reference images alongside text establishes visual style and layout expectations that text alone cannot convey.
  • Practical demonstration: Using a 3D racing game as the worked example gives viewers a concrete proof that complex projects are achievable through well-crafted prompts.
Featured image for the guide to How to write an AI prompt by Google

Who Should Watch This Tutorial

This video suits anyone interested in rapid app development without deep coding knowledge—entrepreneurs prototyping ideas, hobbyists exploring AI capabilities, and small teams looking to ship projects faster. If you've tried AI code generation before and been disappointed by generic or half-baked results, this tutorial directly addresses why that happened and how to fix it.

It's especially valuable for people who understand their problem domain but lack the technical vocabulary to describe it to machines. The video teaches you that vocabulary and the mental frameworks to use it effectively.

Frequently Asked Questions About AI Prompt Writing

Why do open-ended prompts produce poor results?

Vague requests give the AI model too much freedom to make arbitrary choices. Without constraints or structured direction, it defaults to the most common or generic solution. Being specific removes ambiguity and forces the model to align with your actual intent.

Do I need technical skills to write good prompts?

No. The video demonstrates that naming technical keywords or suggesting tools helps guide the model, but you don't need to understand the underlying code. The key is being intentional about what you're asking for and how you organize that request.

How should visual references be included?

Upload or attach sketches, mockups, screenshots, or reference images alongside your text description. These establish visual style, layout, and design expectations that words often struggle to convey clearly.

Can this approach work for complex projects?

The tutorial's example of a 3D racing game suggests yes. The limiting factor is not project complexity but prompt clarity and the AI model's capabilities. Well-structured requests with granular details can handle sophisticated applications.

What happens if my first prompt doesn't produce what I want?

The video treats prompt writing as iterative. If initial output is off-target, the lesson is to refine your request by adding more structure, constraints, or technical direction, then regenerate. Better prompts yield better results.

A still from the video How to write an AI prompt by Google
See all coding videos →
See the BEST NEW products on Amazon!

Key Terms

Vibe coding
Creating functional software by describing what you want in natural language rather than writing code directly.
Prompt
The text instruction you give to an AI model to request a specific output or task.
Granular
Broken down into specific, detailed parts rather than kept general or broad.
3D racing game
An interactive video game with three-dimensional graphics where players operate vehicles on tracks.

Sources: Vibe coding · Prompt · Granular · 3D racing game — definitions cross-referenced with Wikipedia

Justin’s Take

Google's tutorial fills a genuine gap: it treats prompt writing as a learnable craft rather than magic, and it backs that up with a real working example. Most people fumble with AI generation because they've never been taught the grammar of asking for code.

What works best here is the emphasis on structure and specificity over hoping the AI "just gets it." If you've felt frustrated with AI tools before, this video will likely change how you approach them. Highly worth watching.

Great video · 2 out of 2

Justin
Justin

I started Helicopterstour.com because I genuinely believe there’s no better way to see the world than from the sky. I used to work on the Pride of America cruise ship in Hawaii, helping guests book shore excursions all over the islands. Two Vacation Hero Awards 2,000+ Guests/Week Pride of America · NCL Hawaii Shore Excursions 1000+ Tours Reviewed

Video by Google on YouTube. If you enjoyed it, please subscribe to their channel and show your support for the great video.

Description

Want to build your own app just by describing it? Vibe coding lets you generate functional software using natural language, though the precision of your prompt dictates the quality of your output.
In this tutorial, we walk through building a fully playable 3D racing game using these core prompting strategies:

- Be Granular and Specific: Open-ended prompts produce generic results. Break your request into structured bullet points or themes to define your vision.
- Dictate Technical Keywords: Guide the model by choosing the underlying technology. Even if you aren't technical, tell the model to find the best language or tools for your specific use case.
- Be Granular and Specific: Open-ended prompts produce generic results. Break your request into structured bullet points or themes to define your vision.
- Dictate Technical Keywords: Guide the model by choosing the underlying technology. Even if you aren't technical, tell the model to find the best language or tools for your specific use case.
- Include Visual References: Upload sketches, screenshots, or reference art alongside your text to establish the visual style and layout.

Learn more: https://ai.google.dev/gemini-api/docs/aistudio-build-mode
Build your ideas with Gemini: aistudio.google.com/apps
Ship your site or builds here: http://ai.google.dev/gemini-api/docs/aistudio-build-mode#deploy-or
#VibeCoding #BuildWithGemini #AIStudio

Subscribe to our Channel: https://www.youtube.com/google
Find us on X: https://twitter.com/google
Watch us on TikTok: https://tiktok.com/@google
Follow us on Instagram: https://www.instagram.com/google
Join us on Facebook: https://www.facebook.com/Google

Video transcript Accessibility

A full written transcript of this video, provided for accessibility. Select any timestamp to jump the video to that moment.

A great prompt is the difference between this and this. Let's go to ai.studio/build. This is our vibe coding product, and it's a great place to build your first app by just describing it. I think some things people miss when they're prompting for the first time is how much you can actually guide the model.

If I was to type an open ended prompt like, make me a racing game, here's what I would get. Now let's actually add that specificity. I'm not just saying, hey, make me a racing game. I'm actually saying in a bullet list where there's a small car, blue color car, I want a round track where you can go all the way around

and there's a finish line. I want a boost there that I can pick up. By specifying these things, I'm getting closer to an output that I want, and I expect. Sometimes it's worth knowing which key words actually will trigger the model into building the thing in the best possible way.

If you're making a video game and you want it to be 3D, you should probably use the word three.js in your prompt. Three.js is a popular 3D game library, the models really know how to work well with it. And, you know, you may be wondering, well, I don't want to have to keep scouring these videos to find the right keywords to say.

And I think my pro tip for that is go talk to the model and say, what are the best web technologies to make 3D games? And it'll tell you three.js is one of those things that you can use. So here's what it looks like with a more specific prompt. You can see it now has the blue car.

We've got a boost that you can pick up and move with the car. The track is kind of what we were asking for, so we've gotten a lot closer to the output we were intending. I think another tip that I love giving people is you'll be surprised by how far an image reference can go. If you upload an image alongside your prompt, you can actually guided

visually in a way where it's the picture you're probably seeing in your head that you want to give the model, and I say, hey, look at the screenshot. Here's a specific detail that I really like from it. And make sure you bring that to our app. And the other thing is, you know, don't settle for just the first prompt that still might

have gotten you to that first output, but part of vibe coding is, well, doing the vibe check of the thing you've built, right? So if I'm playing this game and I realize maybe I want the car to handle a little differently on the road, or I want the boost to be even faster, right? I can actually go and play the game and then just go back

to the prompt box and iterate on those very specific things, right? So I can then go and say, hey, I like the boost, but I wish it was even faster or last a little longer for my car. And then it's just a bit of back and forth with the model til you get to a game that's feeling just right and exactly like your vision.

That's how I add more specificity to my prompts to get the output I'm looking for. Also, an AI studio is our app gallery and is packed with templates and examples of. I could add apps that you can remix and make your own. It's an amazing place for inspiration and to see what's possible with our models

and we can't wait to see you try these tips out for yourself and tell us where you're going to make in the comments.

How videos are chosen here

Every video on Helicopterstour.com is hand-picked and reviewed by Justin — nothing is added automatically. Each one gets an original written guide and an honest rating: ⭐ 1 out of 2 means a good video worth your time, and ⭐⭐ 2 out of 2 means a great one we would recommend to anyone. The videos belong to their creators — every page links back to the original channel so you can subscribe and support them.

Contact us

Get new videos in your inbox

A short email when we publish something new. No spam — unsubscribe anytime.