You can create a human review workflow or a worker task template programmatically. The APIs you use depend on whether you are creating a Amazon Rekognition, Amazon Textract, or custom task type. This topic provides links to API reference documentation for each task type and programming task.
The following APIs can be used with Augmented AI:
Amazon Augmented AI
Use the Augmented AI API to start, stop, and delete human review loops. You can also list all human review loops and return information about human review loops in your account.
Learn more about human review loop APIs in the Amazon Augmented AI Runtime API Reference.
Amazon Rekognition
Use the HumanLoopConfig parameter of the [ DetectModerationLabels](https://docs.aws.amazon.com/rekognition/latest/dg/API_DetectModerationLabels.html)
API to initiate a human review workflow using Amazon Rekognition.
Amazon SageMaker
Use the Amazon SageMaker API to create a FlowDefinition
, also known as a human review workflow. You can also create a HumanTaskUi
or worker task template.
For more information, see the https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateFlowDefinition.html or the https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateHumanTaskUi.html API documentation.
Amazon Textract
Use the HumanLoopConfig parameter of the AnalyzeDocument API to initiate a human review workflow using Amazon Textract.
The following tutorials provide example code and step-by-step instructions for creating human review workflows and worker task templates programmatically.
- Tutorial: Get Started Using the Amazon A2I API
- Create a Human Review Workflow (API)
- Create and Start a Human Loop
- Using Amazon Augmented AI with Amazon Rekognition in the Amazon Rekognition Developer Guide
- Using Amazon Augmented AI with Amazon Textract AnalyzeDocument in the Amazon Textract Developer Guide