

支援終止通知：2025 年 9 月 15 日， AWS 將停止對 Amazon Lex V1 的支援。2025 年 9 月 15 日之後，您將無法再存取 Amazon Lex V1 主控台或 Amazon Lex V1 資源。如果您使用的是 Amazon Lex V2，請改參閱 [Amazon Lex V2 指南](https://docs.aws.amazon.com/lexv2/latest/dg/what-is.html)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 建立槽類型
<a name="gs2-create-bot-slot-types"></a>

建立 `OrderPizza` 意圖所使用的槽類型 (參數值)。

**建立槽類型**

1. <a name="slotTypeStart"></a>從左側選單中，選擇 **Slot types (槽類型)** 旁的加號 (\$1)。

1. 在 **Add slot type (加入槽類型)** 對話方塊中，加入以下資訊：
   + **Slot type name** (槽類型名稱) – Crusts
   + **Description** (說明) – 供應的餅皮
   + 選擇 **Restrict to Slot values and Synonyms (限制為槽值和同義詞)**
   + **值** – 輸入 **thick**。按下 Tab 鍵並在 **Synonym (同義詞)** 欄位內輸入 **stuffed**。選擇加號 (\$1)。輸入 **thin**，然後再次選擇加號 (\$1)。

   對話方塊看起來應該如下圖所示：  
![\[編輯槽類型對話方塊。\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/images/gs1-25a.png)

1. 選擇 **Add slot to intent (加入槽至意圖)**。

1. <a name="slotTypeFinish"></a>在 **Intent (意圖)** 頁面上，選擇 **Required (必要)**。將槽的名稱由 **slotOne** 變更為 **crust**。切換至 **What kind of crust would you like?** 提示：

1. 使用下表的值重複[Step 1](#slotTypeStart) 到[Step 4](#slotTypeFinish)：    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/lex/latest/dg/gs2-create-bot-slot-types.html)

## 後續步驟
<a name="gs2-next-step-configure-intent"></a>

[設定意圖](gs2-create-bot-configure-intent.md)