Menu
Amazon Lex
Developer Guide

Amazon Lex and AWS Lambda Blueprints

The Amazon Lex console provides example bots (called bot blueprints) that are preconfigured so you can quickly create and test a bot in the console. For each of these bot blueprints, Lambda function blueprints are also provided. These blueprints provide sample code that works with their corresponding bots. You can use these blueprints to quickly create a bot that is configured with a Lambda function as a code hook, and test the end-to-end setup without having to write code.

You can use the following Amazon Lex bot blueprints and the corresponding AWS Lambda function blueprints as code hooks for bots:

  • Amazon Lex blueprint — OrderFlowers

    • AWS Lambda blueprints — lex-order-flowers (Node.js code) and lex-order-flowers-python

  • Amazon Lex blueprint — ScheduleAppointment

    • AWS Lambda blueprints — lex-make-appointment (Node.js code) and lex-make-appointment-python

  • Amazon Lex blueprint — BookTrip

    • AWS Lambda blueprints — lex-book-trip (Node.js code) and lex-book-trip-python

To create a bot using a blueprint and configure it to use a Lambda function as a code hook, see Exercise 1: Create an Amazon Lex Bot Using a Blueprint (Console). For an example of using other blueprints, see Additional Examples: Creating Amazon Lex Bots.