This post is my submission for DEV Education Track: Build Apps with Google AI Studio.
What I Built
I am very interested in birds, particularly those that live around me. I wanted to make an app that would generate a picture of a bird and then quiz me on the birds. I took it a step further to let the user select a state in the United States and only use birds that are native to that state.
The initial prompt:
Please create an app that queries the user to for a name of a state in the United states, then it generates one of the birds that has been observed in that state, generates an image of the bird with Imagen then creates a quiz for the user, four multiple choice options one of them is the bird's actual common name the others are similar birds found in the state the user entered. If the user gets the multiple-choice question right, they get a point. The game ends after 10 questions. The score is displayed in the app and incremented as the game progresses. When the game is over, a button to play again appears.
I had to refine things a little. The logo the AI generated did not look at all like a bird. Also, when you responded to a question, the answer popped up in a modal, but it didn't stay there very long. I wrote another prompt to let the user advance to the next question.
Demo
Demo applet - Google Account and signing in to Google Studio required

Home Screen of Avian Explorer App

Quiz Question Screen of Avian Explorer App
My Experience
It was very surprising how easy it was to build this app with just prompts. It worked very well in Google AI Studio. At a certain point I hit quotes on the Imagen model. I used Imagen because that is the image model that was used in the sample project. Apparently, Imagen costs significantly more to run, so even in Studio the usage is restricted. I think if I used Flash I would not have hit the limits but the images wouldn't have been as nice.
I had some issues when I downloaded the app locally. It seemed like the AI API was making too many requests at once and it would not load the images. I would have to do more research and optimization to get the app to work locally. That was a little disappointing. Overall, the speed of creating an attractive prototype app was impressive.
Top comments (0)