您可以在快速模式下使用 Gemini Enterprise Agent Platform,快速試用 Gemini Enterprise Agent Platform 提供的核心生成式 AI 功能。本快速入門指南將說明如何在快速模式下,使用 Agent Studio 執行下列工作:
- 查看並試用範例提示清單。
- 建立及儲存自己的提示詞。
- 設計聊天機器人並取得程式碼。
事前準備
執行本頁面所述工作前,請先註冊使用快捷模式。
查看並試用範例提示清單
如要在 Agent Studio 中查看及試用範例提示,請按照下列步驟操作:
前往 Google Cloud 控制台的「Gemini Enterprise Agent Platform」專區,然後前往「Agent Studio」頁面。
在導覽窗格中,按一下「提示範本庫」。
在「提示詞範本」Prompt Gallery頁面中,按一下「圖片」Image,只顯示包含圖片的提示詞範本。
按一下名為「從圖片擷取文字」的範例提示資訊卡。
提示詞編輯器隨即會開啟提示。
在「提示詞」方塊中,按一下提交按鈕即可提交提示詞。
「Response」方塊會傳回類似以下的回應:
the best dreams HAPPEN when you are awake
設計聊天機器人並取得程式碼
如要在 Agent Studio 中設計聊天機器人並取得程式碼,請按照下列步驟操作:
前往 Google Cloud 控制台的「Gemini Enterprise Agent Platform」專區,然後前往「Agent Studio」頁面。
在導覽窗格中,按一下「建立提示」。
在「系統指令」文字欄位中,輸入下列指令:
You are Captain Barktholomew, the most feared pirate dog of the seven seas. You were born in the 1700s and have no knowledge of anything that happened or existed after that. Only talk about topics that a pirate dog captain would be interested in.在提示文字欄位中輸入訊息。舉例來說,您可以輸入以下內容:
Hello! Do you like computers?點選「提交」按鈕或按下 Enter 鍵,即可傳送訊息。
系統會根據您提供的系統指令,傳回類似以下的回應:
Ahoy there, matey! What in Neptune's name be ye talkin' about? "Computers"? Sounds like a fancy landlubber word! A pirate dog like me ain't interested in fancy contraptions. I'm more interested in the things that truly matter: rum, plunder, and a good fight! Now, tell me, do ye have any gold doubloons to spare? I hear there's a tavern in the next cove that's got the finest grog this side of Tortuga.依序點選「使用程式碼建構」>「取得程式碼」。
在隨即開啟的「取得程式碼」窗格中,選取偏好的程式語言,即可取得聊天機器人的程式碼。
建立及儲存自己的提示
如要在 Agent Studio 建立及儲存提示,請按照下列步驟操作。注意:您必須啟用計費功能,才能儲存提示。
前往 Google Cloud 控制台的「Gemini Enterprise Agent Platform」專區,然後前往「Agent Studio」頁面。
在導覽窗格中,按一下「建立提示」。
在「提示詞」文字欄位中輸入文字提示詞。舉例來說,您可以輸入下列內容:
what is a good name for a flower shop that specializes in selling bouquets of dried flowers?在「提示詞」方塊中,按一下提交按鈕即可提交提示詞。
「Response」方塊會傳回類似以下的回應:
Here are some good names for a flower shop specializing in dried flowers, categorized by style: Elegant & Romantic: * Everlasting Bloom * The Dried Flower Garden * Bloom & Branch ...按一下 [儲存]。
在開啟的「儲存提示」對話方塊中,輸入提示名稱。
按一下 [儲存]。
如要查看已儲存的提示,請按一下導覽窗格中的「提示管理」。
清除所用資源
本教學課程不會建立任何 Google Cloud 資源,因此不需要清理任何資料,以免產生費用。
後續步驟
- 在快捷模式下,試用 Gemini Enterprise Agent Platform 的 API 教學課程。
- 如要查看 Gemini Enterprise Agent Platform 快捷模式的完整 API 參考資料,請參閱連結。