

终止支持通知：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-configure-bot"></a>

为 `PizzaOrderingBot` 自动程序配置错误处理。

1. 导航到 `PizzaOrderingBot` 自动程序。选择**编辑器**，然后选择**错误处理**，如下图所示：  
![\[\]](http://docs.aws.amazon.com/zh_cn/lex/latest/dg/images/gs1-80.png)

1. 使用 **Editor** 选项卡配置自动程序错误处理。
   + 您在 **Clarification Prompts** 中提供的信息将映射到自动程序的 [clarificationPrompt](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-clarificationPrompt) 配置。

     当 Amazon Lex 无法确定用户意图时，该服务会返回包含此消息的响应。
   + 您在 **Hang-up** 短语中提供的信息将映射到自动程序的 [abortStatement](https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-abortStatement) 配置。

     如果服务在发送一定数量的连续请求之后仍无法确定用户的意图，则 Amazon Lex 会返回包含此消息的响应。

   保留默认值。

## 下一个步骤
<a name="gs2-next-step-build-and-test"></a>

[步骤 3：构建和测试自动程序](gs2-build-and-test.md)