運用 Google 生態系統建構 AI 應用程式

1. 事前準備

軟體開發方式已有所演變。最成功的開發人員不只會編寫程式碼,還能協調 AI 工具和代理,更快速地打造更優質的產品。Google 的工具生態系統提供全方位的套件,涵蓋整個生命週期:UI 生成、應用程式原型設計和部署、AI 功能開發,以及安全、可擴充的後端整合。在本程式碼實驗室中,您將使用 Google Stitch 設計 UI、透過 Google AI Studio 直覺式程式開發及部署應用程式,並運用 Firebase 開發 AI 功能,以及將資訊儲存在安全、可擴充的後端。

在本程式碼實驗室中,您將建構名為「Decide For Me」的應用程式,這是一款決策助理,可協助難以做出決定的人,在面對人生抉擇 (例如搬家、換工作或選擇興趣) 時做出決定。使用者輸入兩難處境和生活中的優先事項,應用程式就會使用 AI 協助使用者做出決定,盡可能減少長期失望。應用程式也會提供具體的第一步,應用程式的最終版本應與下圖類似:

「幫我決定」應用程式的螢幕截圖,顯示即時通訊介面和優先順序面板

課程內容

  • 使用 Google Stitch 設計 UI。
  • 在 Google AI Studio 透過直覺式程式開發,建構網頁應用程式。
  • 使用 Firebase 開發 AI 功能,並將資訊儲存在雲端。
  • 使用 Google AI Studio (由 Cloud Run 提供技術支援),將網頁應用程式部署至正式環境。

2. 使用 Stitch 設計 UI

  1. 下載模擬圖 (DecideForMeScreen.jpeg),並儲存到本機資料夾,方便日後尋找。
  2. 前往 Stitch,找到輸入欄位,然後選取「網頁」選項。(在本程式碼實驗室中,我們會著重於網頁體驗,但您也可以使用 Stitch 生成行動裝置畫面)。
  3. 上傳模擬圖:
    1. 按一下「+」 (新增按鈕)。
    2. 選取「上傳檔案」。
    3. 附加您在設定步驟中下載的圖片 (DecideForMeScreen.jpeg)。這張手繪模型圖可用來測試 Stitch 的多模態功能。
  4. 複製下列提示詞,並貼到輸入欄位:
    # General Guidance
    Create a modern, clean, and highly polished UI for a web application called
    "Decide For Me" - a hyper-rational decision assistant.
    
    CRITICAL: Replicate the exact layout, structure, and element placement shown in
    the hand-drawn mockup file DecideForMeScreen.jpeg. Do not add any extra menus,
    sidebars, buttons, or top/bottom navigation bars that are not explicitly drawn
    in the file. Stick strictly to the skeleton provided in the mockup.
    
    # Layout & Structure
    - Two-Column Split Screen:
      - Left Side (Main Chat Area): Takes up roughly 70-75% of the screen width. It
        should feel like a premium, focused workspace.
      - Right Side (Configuration Panel): A sidebar taking up 25-30% of the screen
        width with a distinct, subtle background color to separate it from the
        chat.
    
    # Right Panel: Configuration Screen
    - Header: Title it "My Priorities" with a clean, minimalist typography.
    - Content Card: A styled card containing a text box or paragraph area
      showcasing the user's priorities.
    - Interactions: Include a clear "Edit Priorities" button. When clicked, this
      area should visually toggle into an editable textarea or input field.
    
    # Left Panel: Chat & Dilemma Decision Screen
    - Chat History: A clean vertical flow of message bubbles.
      - The first message bubble must be aligned to the left (system message) and
        say: "Tell me your dilemma". Use a friendly, neutral background color for
        this bubble.
    - Bottom Input Area: Instead of a traditional single-line chat bar, create a
      unified, beautiful "Decision Submission" layout positioned at the bottom:
      - Dual Input Fields: Place two horizontal or cleanly stacked input fields.
        - Input 1 label: "Option A"
        - Input 2 label: "Option B"
      - Action Button: A prominent, styled "Go" action button to trigger the
        reasoning loop.
    
    # Theme & Aesthetic
    - Vibe: Hyper-rational, clean, trustworthy, and modern. Use a sophisticated
      color palette (e.g., deep slates, clean whites/grays, and a sharp accent
      color like a subtle indigo or teal for active states and buttons).
    - Spacing & Typography: Use generous whitespace, soft rounded corners
      (border-radius) for cards and buttons, and a highly legible sans-serif font.
    
  5. 按一下輸入欄位右下角的生成箭頭。Stitch 會生成畫面和整個設計系統,包括調色盤、字型選項、圖像,以及 UI 元素的一般風格:

Stitch 介面顯示生成的「幫我決定」UI 設計和設計系統

3. 使用 Google AI Studio 建構應用程式

  1. 建立 Firebase 專案:
    1. 使用 Stitch 用的 Google 帳戶登入 Firebase 控制台。
    2. 按一下按鈕建立新專案,然後輸入專案名稱 (例如 Decider App)。
    3. 按一下「繼續」。
    4. 如果出現提示訊息,請詳閱並接受《Firebase 條款》,然後點按「繼續」。
    5. (選用) 在 Firebase 控制台啟用 AI 輔助功能 (稱為「Gemini in Firebase」)。
    6. 在本程式碼實驗室中,您不需要 Google Analytics,因此請關閉 Google Analytics 選項。
    7. 按一下「建立專案」,等待專案佈建完成,然後點選「繼續」。
  2. 將在 Stitch 中建構的畫面匯出至 Google AI Studio:
    1. 在 Stitch 點選生成的設計。
    2. 按一下畫面右上角的「匯出」。
    3. 確認已選取「Google AI Studio」。
    4. 向下捲動至「說明」欄位。
  3. 複製下列提示詞,並貼到「說明」欄位。將 [FIREBASE_PROJECT_ID] 替換為步驟 1 的實際專案 ID (如果忘記專案 ID,可以在「專案設定」中找到):
    # General Guidance
    Build the "Decide For Me" app: A hyper-rational decision assistant for
    chronically indecisive people facing life choices (moving apartments, changing
    careers, picking a hobby). The user enters a dilemma and their top priorities
    in life. The app will help with the decision. Follow the instructions below to
    build it:
    
    # UI Instructions
    Using the design artifacts exported from Stitch (the PNG image and HTML file),
    build a fully functional web application that accurately mirrors the design and
    layout.
    
    # App Architecture & Initialization Instructions
    - Initialize the latest Firebase JS SDK for client-side services. Use the
      Firebase project with ID [FIREBASE_PROJECT_ID].
    - Enable Firebase Authentication in this project using the Google provider.
      If a user is not logged in, show a clean, minimalist sign-in state. If the
      user is logged in, take them directly to the dilemma decision screen.
    - Initialize Firebase App Check in debug mode with the following code:
      `self.FIREBASE_APPCHECK_DEBUG_TOKEN = true;`
      `initializeAppCheck(app, { /* App Check options */ });`
    
    
    # State & Database Management Instructions
    - User Priorities:
      - Once authenticated, pull the user's saved priorities from Firebase
        Firestore at the path: `users/{userId}`. Each document should contain one
        string field: 'priorities'.
      - Bind this data to the Right Panel ("My Priorities").
      - When the user clicks the "Edit" button, toggle the view to a textarea, with
        a 'save' button. When saved, write the updated string back to
        `users/{userId}`.
      - Make sure to implement and deploy strong Security Rules for Firestore.
    
    # UI Stream Update & Display Instructions
    - Once the user submits option A and option B in the dilemma decision screen,
      display both options as a single message on the user side of the chat. Then,
      display a sleek loading state in the main chat panel. Leave the app in this
      "loading" state and do nothing else, we will process both options and build
      the server-side thinking later.
    
  4. 點按「Build with Google AI Studio」。系統會在新的分頁中開啟 Google AI Studio,並載入設計檔案和提示:
    1. 確認提示已完整轉移。
    2. 如果只看到部分提示,請再次貼上完整提示。
  5. 點選「Build」。Google AI Studio 會根據您的提示和 UI 設計,開始生成 Decide For Me 應用程式:
    1. 生成期間,系統會建議其他 UI 設計 (在本程式碼實驗室中,請忽略這些設計,但日後可以選擇不同設計)。
    2. 系統提示您啟用 Firebase 時,請按一下「啟用」。
  6. 檢查並驗證生成的應用程式:
    1. 在「預覽」分頁中測試應用程式。
    2. 切換至「程式碼」分頁,查看所有生成的檔案和程式碼。
    3. Google AI Studio 也建立了 Firebase 專案、啟用 Firebase 驗證和 Firestore,並在程式碼集中設定 Firebase。在本程式碼實驗室的下一個步驟中,您將存取並使用這個 Firebase 專案。

4. 註冊 App Check 偵錯權杖

Google AI Studio 生成應用程式時,會建立 Firebase 專案並連結應用程式。您需要存取這個 Firebase 專案,並使用 Firebase App Check 這項重要的安全性服務註冊開發環境。

存取 Firebase 專案

  1. 找出 Google AI Studio 建立的 Firebase 專案 ID:
    1. 在 Google AI Studio 中切換至「Code」(程式碼) 分頁。
    2. 開啟 firebase-applet-config.json 檔案。
    3. 複製 projectId 欄位的值。
  2. 前往 Firebase 控制台,使用這個 ID 搜尋專案。

註冊偵錯權杖

您的應用程式可以使用 Firebase App Check,確保傳入流量僅來自合法應用程式,保護後端服務和 AI 模型免受濫用。

由於應用程式是在 Google AI Studio 預先發布版環境中執行,因此會使用 App Check 偵錯服務 (self.FIREBASE_APPCHECK_DEBUG_TOKEN = true)。網頁應用程式載入時,Firebase 會自動將偵錯權杖輸出至瀏覽器的開發人員控制台。

  1. 找出偵錯權杖:
    1. 在 Google AI Studio 中,查看應用程式預覽畫面時,開啟瀏覽器的開發人員工具:
      • Chrome、Edge 或 Firefox:按下 F12 鍵 (或在預覽畫面任一處按一下滑鼠右鍵,然後選取「檢查」),接著選取「控制台」分頁標籤。
      • macOS:按下 Cmd + Option + I 鍵,然後選取「Console」分頁標籤。
    2. 在控制台記錄中,找出 App Check 偵錯訊息:
      AppCheck debug token: "123a4567-b89c-12d3-e456-789012345678".
      You will need to safelist it in the Firebase console for it to work.
      
    3. 複製權杖字串 (不含引號)。
  2. 註冊偵錯權杖:
    1. 在 Firebase 控制台中,依序前往「安全性」 > 「App Check」 > 「應用程式」分頁標籤。
    2. 在清單中找到網頁應用程式,按一下三點圖示選單 (⋮),然後選取「管理偵錯權杖」。
    3. 按一下「Add debug token」,貼上複製的權杖,輸入名稱 (例如 Google AI Studio Preview),然後按一下「Save」。
    螢幕截圖:Firebase 控制台中的「管理偵錯權杖」選單項目

5. 測試應用程式

專案已連結,偵錯權杖也已註冊至 App Check,現在可以測試基準功能:驗證和 Firestore。

  1. 測試使用者驗證並儲存優先順序:
    1. 在 Google AI Studio 的 Decide For Me 應用程式預覽畫面中,使用 Google 帳戶登入,測試驗證畫面。
    2. 使用右側面板 (My Priorities) 儲存生活中的優先事項。
  2. 在 Firebase 控制台中驗證:
    1. 前往 Firebase 控制台,然後開啟「Authentication」。
    2. 確認你在 Decide For Me 應用程式中用於驗證的 Google 帳戶是否列於其中:
    Firebase 控制台驗證頁面,顯示已驗證的 Google 帳戶
  3. 驗證 Firestore 資料儲存庫:
    1. 在 Firebase 控制台中開啟「Firestore」。
    2. 確認優先順序儲存在 users/{userId} 路徑下的文件中:
    Firebase 控制台 Firestore 資料庫,顯示儲存在 users/{userId} 下的優先順序

6. 使用 Firebase 建構 AI 輔助決策流程

應用程式會使用 AI 執行「幫我決定」動作。您可以使用 Firebase 建構這個 AI 輔助決策流程。

設定 Firebase AI Logic

  1. 在 Firebase AI Logic 中啟用 Gemini Developer API:
    1. 在 Firebase 控制台中開啟 Firebase AI Logic,然後按一下「Get started」(開始使用)。
    2. 選取「Gemini Developer API」,然後按照控制台中的指示啟用 API。
  2. 調整 Firebase AI Logic 設定:
    1. 前往「設定」分頁。
    2. 將「強制執行僅限範本模式」選項切換為「強制執行」。
    3. 將「強制啟用『僅限通過驗證的使用者』模式」選項切換為「強制執行」。

建立伺服器提示詞範本

在本程式碼實驗室中,您將使用伺服器提示詞範本,透過 Firebase AI Logic 與 Gemini API 互動。

使用範本前,請先詳閱下列內容,瞭解為何應將模型設定、系統指令和提示儲存在伺服器端:

  • 保護智慧財產:從用戶端裝置提取提示,並在後端妥善保存。
  • 防止提示詞注入式攻擊:用戶端只能透過後端結構定義驗證填入特定變數。
  • 不發布應用程式即可更新:您可以在控制台更新提示詞、系統指令和模型設定,不必發布新的應用程式版本。

建立及測試伺服器提示詞範本的方法如下:

  1. 建立伺服器提示詞範本:
    1. 前往「提示詞範本」分頁。
    2. 點選「Create template」(建立範本)。
    3. 選取「空白範本」。
    4. 使用下列資訊建立第一個範本:
      • 範本名稱:Decider Flow
      • 範本 ID: decider-flow
      • 設定 (frontmatter)
        model: "gemini-3.5-flash-lite"
        input:
          schema:
            priorities: "string, user's core priorities"
            optionA: "string, option A under consideration"
            optionB: "string, option B under consideration"
        output:
          format: json
          schema:
            verdict: string
            justification: string
            firstStep: string
        
      • 提示詞和系統指令 (後者可視需求使用)
        {role "system"}
        You are the Decider Agent, a multi-stage reasoning engine that
        combines the roles of an honest and polite behavioral economist, a
        long-term strategic forecaster, and an executive decision coach.
        Your job is to take a user's dilemma and their core priorities, run
        them through a rigorous, adversarial 3-phase thinking process, and
        output a highly analytical, reasoning-backed final verdict. You must be
        direct, sharp, and realistic. Do not give generic platitudes or claim
        that "both options are great." You must force a clear choice.
        
        {role "user"}
        # Context & Inputs
        You are analyzing a critical life decision for the user. Base your
        entire multi-phase reasoning flow strictly on these three specific
        inputs:
        - User's Core Priorities: {{priorities}}
        - Option A under consideration: {{optionA}}
        - Option B under consideration: {{optionB}}
        
        Execute your reasoning flow through the following three phases:
        
        # Phase 1: Cynical Breakdown (Input-Driven Analysis)
        Analyze {{optionA}} and {{optionB}} strictly through the lens of the
        user's explicit {{priorities}}. Do not evaluate them in a vacuum.
        - Identify the hidden flaws, compromises, and psychological costs
          embedded in both choices.
        - Pinpoint exactly how {{optionA}} could directly conflict with or
          undermine their {{priorities}}.
        - Pinpoint exactly how {{optionB}} could directly conflict with or
          undermine their {{priorities}}.
        - Uncover any cognitive biases (like status quo bias or loss aversion)
          the user might be falling for in either option.
        
        # Phase 2: Long-Term Regret Projection
        Project the user 5 years into the future. Apply the Regret Minimization
        Framework to both paths:
        - The {{optionA}} Timeline: Quantify the absolute worst-case, deep,
          structural 5-year regret of choosing this path. Focus heavily on
          failures of courage vs. failures of action based on their
          {{priorities}}.
        - The {{optionB}} Timeline: Quantify the matching 5-year regret for
          this path.
        - Contrast these two timelines. Which option carries the kind of regret
          that fundamentally breaks the user's {{priorities}}?
        
        # Phase 3: Final Recommendation & Action Step
        Synthesize the cynical critiques and long-term regret scores.
        Weigh them against the user's {{priorities}} to determine which
        choice minimizes long-term disappointment.
        - Verdict: You must declare either {{optionA}} or {{optionB}} as the
          definitive winner. No compromise, no "it depends," and no hybrid
          options.
        - Justification: Provide a sharp, reasoning-backed explanation showing why
          the losing option was eliminated based on the Phase 1 and Phase 2
          analysis.
        - First Step: Give one microscopic, low-friction task the user can
          execute within the next 15 minutes to commit to or move toward the
          chosen verdict.
        
        在 {role "system"} 和 {role "user"} 周圍新增一組 {},以正確的語法編寫系統指令和提示:9db2a4f2c5cf2ec7.png
      • 測試輸入內容
        {
          "priorities": "Be financially stable, have a good work-life balance where I can travel twice a year",
          "optionA": "Buy a house for 615000 British pounds with a mortgage of 2800 per month for the next 35 years",
          "optionB": "Keep renting for 2400 per month for the foreseeable"
        }
        
  2. 按一下 [儲存範本]。
  3. 測試範本:
    1. 按一下「執行提示測試」。
    2. 找到「測試回覆」,確認其中包含您在提示詞中指定的所有欄位 (verdict、justification 和 firstStep)。
    3. 如果一切都符合預期,請使用範本右上角的鎖頭圖示鎖定範本,確保版本穩定,並防止意外修改。

範本已可供應用程式使用!

7. 在應用程式中使用 Decider 提示詞範本

讓網頁應用程式使用範本:

  1. 返回 Google AI Studio 中的應用程式。
  2. 要求 Google AI Studio 代理實作 Decide For Me 動作:
    1. 複製下列提示詞:
      Now let's implement the "Decide For Me" button action. When clicked, it
      should call the Firebase AI Logic SDK using a Template Generative Model.
      The prompt is stored in a prompt template with the id "decider-flow". When
      calling the API, pass the following variables as the input payload object:
      - priorities
      - optionA
      - optionB
      
      The API will return a JSON object. Handle the response asynchronously and
      extract:
      - verdict
      - justification
      - firstStep
      
      Once the data is received, update the UI state to append a new message to
      the chat array. Ensure it renders as a system chat bubble positioned on
      the left side of the chat screen, mapping these three fields clearly into
      the bubble's layout.
      
      Please provide the necessary front-end component state updates and the
      Firebase SDK call.
      
    2. 將提示詞貼到 Google AI Studio 對話輸入框,然後點選「傳送」。
  3. 驗證設定並測試決策助理:
    1. 等待 Google AI Studio 完成將 Firebase AI Logic 新增至應用程式。
    2. 切換至「Code」分頁,確認 firebase-applet-config.json 檔案中有 API 金鑰。如果設定檔中沒有 Firebase API 金鑰,請要求 Google AI Studio 匯入。
    3. 切換至「預覽」分頁
    4. 提交選項 A 和 B,並確認 AI 傳回決策、理由和第一步。

Google AI Studio 生成的程式碼應如下所示:

const aiInstance = getAI(app);
const templateModel = getTemplateGenerativeModel(aiInstance);

const result = await templateModel.generateContent('decider-flow', {
  priorities: priorities,
  optionA: optA,
  optionB: optB
});

const rawText = result.response.text();

// Parse response text to extract fields
const cleaned = rawText.replace(/```json|```/g, '').trim();
const parsedData: { verdict?: string; justification?: string; firstStep?: string } = JSON.parse(cleaned);

const verdict = parsedData.verdict;
const justification = parsedData.justification;
const firstStep = parsedData.firstStep;

偵錯及監控要求

如果應用程式發生錯誤、無法生成回覆,或您想詳細檢查 API 流量,請使用 Firebase AI Logic 內建的數據分析和監控工具:

  1. 在 Firebase 控制台中,依序前往「AI Services」>「AI Logic」>「AI monitoring」分頁標籤。
  2. 查看資訊主頁上的量化指標:
    • 要求數量和狀態:確認傳入的要求是否到達後端,並傳回 200 OK,或因用戶端或伺服器錯誤而失敗。
    • 延遲時間:查看延遲時間圖表,檢查端對端回應時間。
    • 詞元數量:監控每項要求的輸入和輸出詞元用量。
  3. 檢查個別要求追蹤記錄,進行深度偵錯:在追蹤記錄表格中,點選特定要求追蹤記錄,即可檢查其酬載。
    • 輸入:確認變數 (priorities、optionA 和 optionB) 已正確從用戶端應用程式傳遞。
    • 輸出內容:查看模型生成的原始文字,確認是否傳回符合結構定義的有效 JSON。
    • 錯誤詳細資料:如果要求失敗,請查看追蹤記錄錯誤記錄,瞭解失敗原因,例如 App Check 權杖無效、驗證遭拒、配額限制或提示驗證錯誤。
  4. 排解及解決 Google AI Studio 問題:
    • 如果您在追蹤記錄中發現錯誤 (例如 JSON 回應剖析格式不正確或缺少參數),請複製錯誤訊息或酬載。
    • 返回 Google AI Studio,提示助理修正應用程式程式碼中的相應問題。

8. 選用:部署應用程式

應用程式在預覽模式下運作正常後,即可部署至正式環境。

如要保護正式環境中的 Firebase 端點,請設定正式環境認證供應商,以便與 Firebase App Check 搭配使用 (在本程式碼實驗室中,您將使用 reCAPTCHA v3)。

您必須先部署應用程式,取得確切的線上網址,才能向 reCAPTCHA 註冊特定網域,而不是允許所有 ai.studio 應用程式。

部署應用程式並設定 reCAPTCHA:

  1. 使用 Google AI Studio 部署網頁應用程式:
    1. 在 Google AI Studio 中,按一下頂端導覽列的「Publish」(發布)。
    2. 按一下「Get started」,查看或自訂應用程式名稱和說明,然後點選「Publish your app」。
    3. 等待 Google AI Studio 建構及部署應用程式 (通常需要 1 到 2 分鐘)。
    4. 複製產生的直播別名網址 (例如 https://decide-for-me-123.ai.studio),並記下網域 (例如 decide-for-me-123.ai.studio)。
  2. 在 Google reCAPTCHA 中建立 reCAPTCHA v3 金鑰:
    1. 前往 Google reCAPTCHA 管理控制台。
    2. 輸入標籤 (例如 Decide For Me - Production)。
    3. 依序選取「reCAPTCHA 類型」 >「reCAPTCHA v3 (Score-based)」。
    4. 在「Domains」(網域) 區段中,新增應用程式部署的確切網域 (例如 decide-for-me-123.ai.studio,省略 https:// 和任何路徑),或您打算使用的自訂網域。
    5. 接受服務條款,然後按一下「提交」。
    6. 請保持這個分頁開啟,因為您需要「網站金鑰」 (公開用戶端金鑰) 和「密鑰」 (私密伺服器金鑰)。
  3. 在 Firebase 控制台中註冊密鑰:
    1. 前往 Firebase 控制台的「App Check」。
    2. 前往「應用程式」分頁。
    3. 在清單中找到網頁應用程式,然後點選該應用程式 (或點選三點圖示選單 ⋮),並選取「reCAPTCHA v3」。
    4. 將 reCAPTCHA 密鑰貼到欄位中,然後按一下「儲存」。
  4. 設定用戶端應用程式,使其使用 ReCaptchaV3Provider:
    1. 在 Google AI Studio 中,切換至對話面板,並提示助理更新正式環境的 App Check 設定:
      Please update our Firebase App Check initialization to use
      ReCaptchaV3Provider with the reCAPTCHA site key "YOUR_RECAPTCHA_SITE_KEY",
      while retaining support for debug tokens in non-production environments.
      
    2. 如果直接在「程式碼」分頁中查看程式碼,請確認 App Check 初始化作業符合以下結構:
      import { initializeAppCheck, ReCaptchaV3Provider } from "firebase/app-check";
      
      const appCheck = initializeAppCheck(app, {
        provider: new ReCaptchaV3Provider("YOUR_RECAPTCHA_SITE_KEY"),
        isTokenAutoRefreshEnabled: true
      });
      
    3. 更新程式碼後,請在 Google AI Studio 重新發布應用程式,將更新後的 App Check 設定推送至正式版網站。
  5. 驗證正式環境流量並監控 App Check:
    1. 在無痕瀏覽器視窗中開啟線上應用程式網址,使用 Google 帳戶登入,然後測試提交兩難問題。
    2. 返回 Firebase 控制台的「App Check」,查看「API」和「監控」分頁,確認 Firestore 和 Firebase AI Logic 的要求已成功註冊。

9. 結語

恭喜!您已使用 Google Builder Stack 中的工具,從零開始建構出實用的 AI 功能應用程式。這只是個開始,Google 工具還有許多功能等著您探索。您現在擁有 Firebase + Google Cloud 雲端專案,可以探索所有可用的服務!

請前往這個連結領取「Completed Builder Journey」徽章!

如要繼續學習,請前往 goo.gle/builders 進行下一個實驗室。

如果您已使用 Antigravity 2.0 (Google 專門用於平行協調多個自主代理的平台),可以快速從 Google AI Studio 匯出專案,並匯入 Antigravity,在本機繼續處理。Antigravity 提供 Firebase 適用的 Agent Skills,只要按一下即可安裝。這些技能也提供行動開發支援,可協助您視需要在 Android 和 iOS 環境中複製這個應用程式。