先決條件
取得你的 CometAPI API key
使用 REST API trigger 建立工作流程
- 在 BuildShip 儀表板中,點擊 Create a new workflow → From Scratch。
- 在畫布上,點擊 Add Trigger 並選擇 REST API。這會為工作流程產生一個可呼叫的端點。
加入 CometAPI Text Generator 節點
- 在 REST API trigger 下方,點擊 + Add a new step。
- 在節點庫搜尋框中,輸入
cometapi。 - 在 Community 清單中,選擇 CometAPI Text Generator。


連結 CometAPI 整合
此步驟會告訴節點要使用哪一種 key 管理系統。
- 點擊該節點,在右側開啟 Node Editor。
- 切換到 Settings 分頁。
- 在 Key-based Integration 中,打開下拉選單並選擇 CometAPI。
- 點擊右上角藍色的 Save 按鈕。

將你的 API key 加入節點
- 在 Node Editor 中,切換到 Inputs 分頁(或直接點擊節點)。
- 點擊節點右上角的 🔑 key 圖示以開啟 key 下拉選單。
- 選擇 + Bring your own Key。
- 輸入 Key ID(例如
cometapi-key-1),並將你的sk-xxxxxkey 貼到 Value。 - 點擊 Save。


設定輸入參數
在節點的 Inputs 分頁中:
- Instructions(可選):設定 system role,例如
You are a productivity assistant. - Prompt:點擊
</>圖示,然後選擇 Trigger → Body → prompt 來對應傳入的 request body。 - Advanced → Model:輸入你想使用的目前 model ID。

加入 Return Response 節點並測試
- 在 CometAPI 節點下方,點擊 + Add a new step 並選擇 Return Response。
- 在 Body 欄位中,點擊
</>,然後從 CometAPI Text Generator 節點選擇response變數。 - 點擊右上角的 Test,選擇 JSON 輸入格式,並送出:
- 若 Result 面板中出現成功回應,即表示此工作流程運作正常。


