This project contains source code and supporting files for supporting email integration as tasks. Manual configuration must be done for using SES to set a receiving rule.
The project includes a cloud formation template with a Serverless Application Model (SAM) transform to deploy resources as follows:
git clone https://github.com/aws-samples/amazon-connect-email-tasks
sam build -u
sam deploy -g
SAM will ask for the name of the application (use "Connect-Email" or something similar) as all resources will be grouped under it; a deployment region and a confirmation prompt before deploying resources, enter y. SAM can save this information if you plan un doing changes, answer Y when prompted and accept the default environment and file name for the configuration.
If no email entity has been created, browse to the SES console, and create a verified entity in SES. You'll need to verify domain ownership for the selected entity, this is done by adding entries to DNS resolution. Contact your DNS administrator to facilitate adding these records.
In the SES console, create a rule for receiving email. Define a recipient condition, select Base64 as the encoding and add an action to publish to the SNS topic created by the deployment.
Configure the Amazon Connect Instance ID and the Contact flow details on the Connect-Email-Task function's environment variables.
Configure the source email address (the one to be used as email sender, this must have been approved as part of the SES configuration) as a Connect-Email-Reply function's environment variable.
Add the Connect-Email-Reply function to the Amazon Connect contacflow list.
Create a new Transfer To Queue contact flow in Amazon Connect. Add a block for invoking the Connect-Email-Reply function. Name it MailReply.
Create a Quick Connect with destination Queue and the MailReply contactflow created in the previous step.