Skill 2.1.5

Develop collaborative AI systems to enhance FM capabilities with human expertise (for example, by using Step Functions to orchestrate review and approval processes, API Gateway to implement feedback collection mechanisms, human augmentation patterns)

Key Concepts

In Step Functions, the .waitForTaskToken integration pattern pauses an execution and passes a task token to a reviewer, for example through an SNS notification or a review application. When the reviewer approves or rejects, the application calls SendTaskSuccess or SendTaskFailure with the token and the workflow continues. Amazon Augmented AI (A2I) provides managed human review workflows with worker task templates.

API Gateway exposes a feedback endpoint where users rate answers or submit corrections, stored in DynamoDB or S3 for evaluation and improvement. Human augmentation patterns include review of low-confidence outputs only, approval of irreversible actions, and expert editing of drafts that the FM produced.