Exercise 3: Publish a Version and Create an Alias - Amazon Lex V1

If you are using Amazon Lex V2, refer to the Amazon Lex V2 guide instead.

 

If you are using Amazon Lex V1, we recommend upgrading your bots to Amazon Lex V2. We are no longer adding new features to V1 and strongly recommend using V2 for all new bots.

Exercise 3: Publish a Version and Create an Alias

In Getting Started Exercises 1 and 2, you created a bot and tested it. In this exercise, you do the following:

  • Publish a new version of the bot. Amazon Lex takes a snapshot copy of the $LATEST version to publish a new version.

  • Create an alias that points to the new version.

For more information about versioning and aliases, see Versioning and Aliases.

Do the following to publish a version of a bot you created for this exercise:

  1. In the Amazon Lex console, choose one of the bots you created.

    Verify that the console shows the $LATEST as the bot version next to the bot name.

  2. Choose Publish.

  3. On the Publish botname wizard, specify the alias BETA, and then choose Publish.

  4. Verify that the Amazon Lex console shows the new version next to the bot name, as in the following image.

    The console showing the new bot alias.

Now that you have a working bot with published version and an alias, you can deploy the bot (in your mobile application or integrate the bot with Facebook Messenger). For an example, see Integrating an Amazon Lex Bot with Facebook Messenger.