javydekoning / amazon-lex-teams-adapter

Python Lambda function which integrates Amazon Lex with Microsoft Teams.
3 stars 1 forks source link

Amazon Lex - Microsoft Teams integration.

NOTE: I'm no longer actively working on this. The below was used just to test the integration.

This project contains source code for integration Amazon Lex with Microsoft Teams using AWS Lambda. To deploy this project, you already need to have:

Step 1: Get Tenant ID

Find tenant ID through the Azure portal

Step 2: Get MSAppID and MSAppClientSecret from Azure portal

Step 3: Deploy Lambda function

Deploy the SAM template using SAM CLI to get started. You can do so as follows:

sam build --use-container --cached
sam deploy --guided

You'll be asked for the following parameters:

Variable Default Value Usage
LexBotName chatops Name of the Lex bot to integrate with
LexBotAlias dev Alias for the Lex bot to integrate with
MSAppId xxx Step 2
MSAppClientSecret xxx Step 2
MSTenantID xxx Step 1

When the deployment is finished you will receive a API Gateway endpoint URL for LexAdapter. Note this url, you need it in Step 4.

Step 4: Register the app with the Microsoft Bot Framework

Step 5: Add bot to Microsoft Teams

All done!