Skip to main content

1. 產生並預覽畫面

最常見的工作流程:產生畫面(在同一步驟中建立檔案),然後查看結果。
省略 fileId 會自動建立新檔案。改為傳遞現有 fileId 以將畫面新增至該檔案。 向 AI 助手的提示:
Generate a Flowstep design: a mobile sign-in screen for a developer tool with email/password and a Google SSO button in dark theme, then show me the image.

2. 視覺化 React 元件

上傳 .jsx.tsx 檔案作為附件並要求 Flowstep 產生相符的設計。Flowstep 讀取原始程式碼並產生畫面 — 無需執行應用程式。
向 AI 助手的提示:
Read src/components/settings/ApiKeys.tsx, upload it as an attachment, and generate a Flowstep screen that matches the component layout. Show me the rendered image.

3. 反覆調整 MCP 產生的畫面

edit-designregenerate-design 需要僅存在於用 designs 陣列產生的畫面上的設計內容。對於不含設計內容的產生畫面,因應措施是將畫面呈現為附件並使用影像呼叫 create-new-design
對於有設計內容的畫面,直接呼叫 edit-design,在 message 中帶著變更,在 targets 中帶著畫面。

4. 展開畫面到完整流程

將後續畫面新增至現有設計。
重複步驟 2,搭配 operationVariant: "error_state""empty_state" 以新增邊界情況畫面。
operationVariantexpand-design 的強制參數。基礎畫面也必須已用 designs 陣列(設計內容)產生 — 對於不含它的畫面,使用範例 3 的附件因應措施。

5. 在批次工作前稽核配額

在開始多個產生前檢查剩餘容量。
如果 daily 較低,安排批次在 00:00 UTC 後當它重設時執行。