Customer sends a message from the digital messaging channel to the webhook hosted on Amazon API Gateway. 2 3 4 5 6 7 8 API Gateway sends the message to AWS Lambda. Lambda writes the chat contact context to Amazon DynamoDB. If this is the first message for the contact, Lambda calls the APIs in the following order: StartChatContact, StartContactStreaming, and CreateParticipantConnection. If there is an existing chat, Lambda will send the message to Amazon Connect. Amazon Connect streams Agent/System messages to Amazon SNS. Amazon SNS invokes Lambda. Lambda queries DynamoDB for chat contact context. Lambda delivers the reply message to the customer through APIs from the source channel.