

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 API 创建自定义工作流程
<a name="sms-custom-templates-step4"></a>

在创建了自定义 UI 模板（步骤 2）和处理 Lambda 函数（步骤 3）时，您应该将模板放在 Amazon S3 存储桶中，并且文件名格式为：`<FileName>.liquid.html`。使用 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateLabelingJob.html) 操作配置您的任务。您将使用存储在 S3 上 `{{<filename>}}.liquid.html` 文件中的自定义模板 ([创建自定义工作人员任务模板](sms-custom-templates-step2.md)) 的位置作为 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_HumanTaskConfig.html](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_HumanTaskConfig.html) 对象内 [https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UiConfig.html](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UiConfig.html) 对象中 `UiTemplateS3Uri` 字段的值。

对于中描述的 AWS Lambda 任务[使用自定义标签工作流程处理数据 AWS Lambda](sms-custom-templates-step3.md)，注释后任务的 ARN 将用作`AnnotationConsolidationLambdaArn`字段的值，注释前任务将用作该字段的值 `PreHumanTaskLambdaArn.` 