> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-HK/llms.txt # Workflow\.commit() `.commit()` 方法會完成 Workflow 並傳回最終結果。 ## 使用範例 ```typescript workflow.then(step1).commit() ``` ## 傳回值 **workflow** (`Workflow`): 用於串連方法的 Workflow 實例 ## 相關內容 - [控制流程](https://mastra.zisheng.pro/zh-HK/docs/workflows/control-flow)