Amazon Lex is a cloud-based service that allows developers to build conversational interfaces into any application using voice and text. It is the underlying platform that powers Alexa and allows third parties to create "skills" that add functionality. Lex differs from Alexa in that it is not a consumer product itself, but a platform that can be integrated in various ways through SDKs and APIs. The document provides an overview of Lex and how it compares to Alexa, demonstrating how to build a basic bot and connect Lex to a phone number using the Nexmo API.