Using artificial intelligence to detect product defects with AWS Step Functions Amazon Web Services