---
keyword: [Extend, Third Party Technology, AWS]
nav: wcp_docs
parent_url: /wcp_docs/
title: AWS Artificial Intelligence (AI) Services
layout: subsection
---

The AWS AI Services that are integrated with Workday Extend are:

<table><thead><tr><th>AWS Service</th><th>Description</th><th>Related Links</th></tr></thead><tbody><tr><td>Amazon Comprehend</td><td>Amazon Comprehend uses natural language processing (NLP) to extract insights about the content of documents. It develops insights by recognizing the entities, key phrases, language, sentiments, and other common elements in a document.</td><td><a href="https://docs.aws.amazon.com/comprehend/latest/dg/what-is.html">Service Overview</a> <p><a href="https://docs.aws.amazon.com/comprehend/latest/APIReference/welcome.html">API Reference</a></p></td></tr><tr><td>Amazon Rekognition</td><td>Amazon Rekognition makes it easy to add image and video analysis to your applications. You just provide an image or video to the Amazon Rekognition API, and the service can identify objects, people, text, scenes, and activities. It can detect any inappropriate content as well. Amazon Rekognition also provides highly accurate facial analysis, face comparison, and face search capabilities.</td><td><a href="https://docs.aws.amazon.com/rekognition/latest/dg/what-is.html">Service Overview</a> <p><a href="https://docs.aws.amazon.com/rekognition/latest/APIReference/Welcome.html">API Reference</a></p></td></tr><tr><td>Amazon Textract</td><td>Amazon Textract helps you add document text detection and analysis to your applications.</td><td><a href="https://docs.aws.amazon.com/textract/latest/dg/what-is.html">Service Overview</a> <p><a href="https://docs.aws.amazon.com/textract/latest/dg/API_Reference.html">API Reference</a></p></td></tr><tr><td>Amazon Translate</td><td>Amazon Translate is a text translation service that uses advanced machine learning technologies to provide high-quality translation on demand.</td><td><a href="https://docs.aws.amazon.com/translate/latest/dg/what-is.html">Service Overview</a> <p><a href="https://docs.aws.amazon.com/translate/latest/APIReference/welcome.html">API Reference</a></p></td></tr></tbody></table><br/>

## <a id="section_1"></a>Triggering AWS AI Services from Lambda

AWS Lambda integrates with the AWS AI services to take specific actions in response to certain events such as with Amazon S3 or EventBridge

<b>Note:</b> We provide a small code snippet for triggering the AI services from Lambda using Python (boto). Use the link provided after each code snippet to do the same using other languages of your choice. While this page is a starting point, you will likely need to further investigate AWS AI capabilities for your use cases.

<b>Triggering Amazon Comprehend</b>

```
import boto3
import json

comprehend = boto3.client(service_name='comprehend')
text = "It is raining today in Seattle"

print('Calling DetectDominantLanguage')
print(json.dumps(comprehend.detect_dominant_language(Text = text), sort_keys=True, indent=4))
print("End of DetectDominantLanguage\n")
```

Click [here](https://docs.aws.amazon.com/comprehend/latest/dg/using-api-sync.html) for other code samples.

<b>Triggering Amazon Translate</b>

```
import boto3

translate = boto3.client(service_name='translate', use_ssl=True)

result = translate.translate_text(Text="Hello, World", SourceLanguageCode="en", TargetLanguageCode="de")

print('TranslatedText: ' + result.get('TranslatedText'))
print('SourceLanguageCode: ' + result.get('SourceLanguageCode'))
print('TargetLanguageCode: ' + result.get('TargetLanguageCode'))
```

Click [here](https://docs.aws.amazon.com/translate/latest/dg/examples-python.html) for other code samples.

<b>Triggering Amazon Rekognition</b>

```
import json
import boto3

client = boto3.client("rekognition")
response = client.detect_labels(Image = {"S3Object": {"Bucket":"bucket_name", "Name": "image_name"}}, MaxLabels=3, MinConfidence=70)
print(response)
return "Thanks"
```

Click [here](https://docs.aws.amazon.com/rekognition/latest/dg/service_code_examples.html)for other code samples.

<b>Triggering Amazon Textract</b>

```
import json
import boto3
import base64

imageBase64 = 'image in base64'
textract = boto3.client('textract')

response = textract.detect_document_text( 
        Document={ 
        'Bytes': base64.b64decode(imageBase64)
    })

detectedText = ''

for item in response['Blocks']:
    if item['BlockType'] == 'LINE':
        detectedText += item['Text'] + '\n'

print(detectedText)
```

Click [here](https://docs.aws.amazon.com/textract/latest/dg/service_code_examples.html) for other code samples.

## <a id="section_2"></a><b>Triggered AWS AI Services from EventBridge</b>

Amazon EventBridge is a serverless event bus that calls a Lambda function in response to an event to trigger a workflow. The AI services will be triggered from the Lambda function that is initiated in response to an event from the EventBus.

