

终止支持通知：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_cn/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_cn/lex/latest/dg/gs2-create-bot-slot-types.html)

## 下一个步骤
<a name="gs2-next-step-configure-intent"></a>

[配置目的](gs2-create-bot-configure-intent.md)