Google AI Studio back-end

I’ve been spending a lot of time with Google AI Studio, and I genuinely think Google has built something special here. The model access, tooling, and overall direction feel right.

Where I’m hitting friction is the last mile.

I’m wrestling with:

  • Wiring the backend cleanly

  • Standing up Firebase and Cloud infrastructure the right way

  • Stress-testing for scalability and production readiness

The product side feels strong. The infrastructure glue is where things slow down.

Curious if anyone here has:

  • Found strong tutorials, reference architectures, or battle-tested guides

  • Worked with teams or consultants who specialize in this stack

  • Built production systems on Google AI Studio and can share lessons learned

Not looking for hype. I’m looking for practical experience, smart resources, or people who’ve already scraped their knuckles on this stuff.

Appreciate any pointers, war stories, or introductions.


1 Like

Hi, I see no responses yet. I do not have answers, but I share the same interest and concern. Spent a lot of time going back and forth between different backend solutions for anything built in Google AI Studio, especially as we are trying to collaborate, just using prompts, coding on the AI Studio interface. I have not found a reliable way of ensuring that Google AI Studio doesn’t break the backend/app on any random common request. I’m really trying to look for prompts that ensure that Google AI Studio works better with Firestore and Google Cloud Run, and the only prompt I have found and that does actually help is “Do not code anything.“ Anyone with more good suggestions, do keep them coming :folded_hands:

And one special request would definitely be, how do you get AI Studio to make changes to a certain feature WITHOUT adjusting other components that you did not intend to change. I find it’s initiative very agressive and rogue and and trying to ‘tame’ it by prompting but not having much succes.

You need to add “Do not change anything else and do not delete anything else” in every single prompt. I have built numerous apps with backend without it going haywire and removing stuff all the time. Even tho it still happens the reduction is probably 80-90%

1 Like

For backend, I use Supabase. The apps i do is relative simple apps tho but here is what I learnt so far:

-Write down everything that you add into SQL editor in a separate document. This way you can give it to AI if it becomes weird.
-You need to around every 20 prompt, to refactor (cleaning up code and mistakes).
-Tell it to document code structure in a document and tell it to reference that and update it if changes are made.

Here is my refactoring prompt. Only do one section at a time:

# Code Review

Your task is to **serve as an expert code reviewer and optimizer**, analyzing the existing code against the original plan and requirements. Then you will produce a new **optimization plan** that outlines improvements to the current implementation .

## **Required Inp u ts* *

1. **IMPLEMENTATION _PLAN**

- The plan used for building the curre nt code.

2. **TECHNICAL_SPECIF ICATION**

- The detailed technical specification that informed the initial imple mentation.

3. **PROJEC T_REQUEST**

- The original description of project objectives or r equirements.

4. **PR OJECT_RULES**

- Any constraints, guidelines, or “rules” yo u must follow.

5. ** EXISTING_CODE**

- The code that was implemented following th e o r ig inal pla n.

-–

# # * *Task Overview**

1. **Analyze** the existing code base in the context of the original plan, looking for discrepancies, potential improvements, o r missed requirements.

2. **Focus** on key areas:

- Code or ganization and structure

- Code q uality and best practices

- UI/UX improvements

3. **Wrap** this analysis in `` tag s to capture your insights.

4. **Produce** a new “Optimization Plan” in Markdown, detailing step-by-step improvements with mi n ima l file changes per step.

Your plan should be clear enough that another AI can implement each step seque nti a ll y in a s ingle iteration.

-–

# # **Detailed Process Ou tline**

1. **Review Inputs**

- Ingest `<project_request>`, `<project_rules>`, ``, ``, and ``.

2. **Perform Analysis **

- Within `` tags, comment on:

1. **Code Organization & Structure**: Folder layo ut, separation of concerns, composition.

2. **Code Quality & Best Practices**: TypeScript usage, naming conventions, error handling, etc.

3. **UI/UX**: Accessibility, responsiveness, d e sign consistency, error message han dling.

3. **Generate Optimization Plan**

- Use markdown formating with the output template.

- Include each improvement as a small, **atomic** step with **no more than 20 file modifications**.

- Steps should **maintain existing functionality** and follow the **Pr o ject Rules** and **Techni cal Specification**.

4. **Provide Guidance**

- Ensure your plan states any **success cr iteria** or acceptance conditions for each step.

- End your pla n wi th a **logical next step** if n eeded.

-–

## **Output Template**

Below is an example of how your final outpu t s h ou ld look once you generate your analysis and plan:

```markdown

Here is my detailed review of the current cod ebase:

1. Code Organization: Observations, sug g estions…

2. Code Quality: Observatio ns , i mpro vemen ts.. .

3. UI/ UX: Observa tion s, improvements…

# Optimization Plan

## Code Structure & O rganiz ation

- [ ] St ep 1: [Brief title]

- **Task**: [Explanati on]

- * *Fi les**:

- `path/to/file1.ts`: [Descriptio n of changes]

- …

- **Step Dependenci es** : [No ne or references]

- **User In struct i ons ** : [M anua l s teps if any]

[ Additional categor ies an d steps…]

```

-–

## **Co ntex t**

<implementation_ plan>

{{IMPLEMENTATION_PLA N}}

< /implementation_plan>

{{TECHNI CAL_SPECIFICA TION }}

</technical_ specif ication>

{ {PRO JECT _REQ UEST}}

</proje ct_request>

<project_r ules>

{{PROJECT_RULES}}

</project_rules>

<existing_code>

{{EXISTING_CODE}}

</existing_code>

That is great input ano, thanks so much