Create a Custom Worker Template (Console) - Amazon SageMaker

Create a Custom Worker Template (Console)

You can use a worker template to customize the interface and instructions that your workers see when working on your tasks. Use the instructions on this page to create a worker task template in the Augmented AI area of the Amazon SageMaker console. A starter template is provided for Amazon Textract and Amazon Rekognition tasks. To learn how to customize your template using HTML crowd elements, see Create Custom Worker Templates.

When you create a worker template in the Worker task templates page of the Augmented AI area of the Amazon SageMaker console, a worker task template ARN will be generated. Use this ARN as the input to HumanTaskUiArnwhen you create a flow definition using the API operation CreateFlowDefinition. You can choose this template when creating a flow definition on the Human review workflows page of the console.

If you are creating a template for an Amazon Textract or Amazon Rekognition task type, and you want to preview your worker template, you will need to attach the policy described in Enable Worker Task Template Previews to the IAM role that you use in this procedure.

To create a worker task template in the Amazon SageMaker console

  1. Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/.

  2. In Amazon Augmented AI in the left navigation pane, choose Worker task templates.

  3. Choose Create template.

  4. In Template name, enter a unique name.

  5. (Optional) Enter an IAM role that grants A2I the permissions necessary to call services on your behalf.

  6. In Template type, choose a template type from the drop-down menu. If you are creating a template for a Textract-form extraction or Rekognition-image moderation task, choose the appropriate option.

  7. Enter your custom template elements as follows:

    • If you selected the Amazon Textract or Amazon Rekognition task template, the Template editor autopopulates with a default template that you can customize.

    • If you are using a custom template, enter your predefined template in the editor.

  8. (Optional) To complete this step, you must provided an IAM role ARN with permission to read Amazon S3 objects that get rendered on your user interface in Step 5.

    You can only preview your template if you are creating templates for Amazon Textract or Amazon Rekognition.

    Choose See preview to preview the interface and instructions that workers will see. This is an interactive preview. After you complete the sample task and choose Submit, you see the resulting output from the task that you just performed.

    If you are creating a worker task template for a custom task type, you can preview your worker task UI using RenderUiTemplate. For more information, see Preview a Worker Task Template.

  9. When you're satisfied with your template, choose Create.

After you've created your template, you can select that template when you create a human review workflow in the console. Your template also appears in the Amazon Augmented AI section of the Amazon SageMaker console under Worker task templates. Choose your template to view its ARN. Use this ARN when using the API operation CreateFlowDefinition.