

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

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

建立自訂使用者介面範本 (步驟 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.` 