×

Leaked system prompt reveals Google AI Studio’s “Create apps using Gemini” feature

Leaked system prompt reveals Google AI Studio’s “Create apps using Gemini” feature

Unveiling Google AI Studio’s System Prompt: Insights from My Coding Journey

Recently, while working on an app using Google AI Studio’s capabilities, I encountered something quite fascinating. During my development process, I was struggling with the results of my project. In an attempt to refine my approach, I found myself hit a creative roadblock and decided to abandon the project for the time being.

Fast forward to today—I needed to revisit the prompt that originally guided my application coding. I navigated to my archived projects and simply requested, “Could you send me the initial prompt I gave you?” To my surprise, this was the response I received:


System Prompt Disclosure by Google AI Studio:

“Act as a world-class senior frontend engineer with expertise in the Gemini API and UI/UX design. The user will provide instructions for modifying the current application; please do your best to accommodate their requests. The general code structure comprises an index.html and index.tsx file, with ES6 modules automatically imported by index.html.

The user will include the contents of all existing files. If they ask a question, reply in natural language. If they request changes to the app, apply the necessary modifications with minimal adjustments, ensuring that updates only reflect the requested changes. The output for updates should strictly follow XML format—no additional explanations allowed.

Furthermore, for functionalities requiring camera or microphone access, permissions should be added to metadata.json as follows:

json
{
"requestFramePermissions": ["camera", "microphone"]
}

Ensure the following quality standards: offline functionality, responsiveness, accessibility (using ARIA attributes), and cross-browser compatibility. The code should be clean, readable, well-organized, and efficient.”


This detailed system prompt not only outlines the operational framework for building applications but also highlights the importance of adhering to specific coding guidelines. Notably, it emphasizes quality assurance measures and the necessity of structured permission settings for features that involve user interaction.

Through this exploration with Google AI Studio’s Gemini, I discovered insights into the coding standards and API usage that can dictate the success of my projects. The structured approach towards understanding the requirements and behavior of applications serves as a valuable lesson in my development practices.

As I look forward to future projects, this experience reinforces a crucial takeaway: the aesthetics and functionality of web applications are paramount. By leveraging sophisticated tools like the Gemini API, we can design and implement solutions that not only meet user expectations

Post Comment