Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1.32 KB

README_LEX.md

File metadata and controls

20 lines (12 loc) · 1.32 KB

AWS Lex Example

This sample project, examples/lex, is designed to be pointed at the OrderFlowers and ScheduleAppointment bots as provided by AWS as a blueprint.

Create a config file

You need a chatpickle.config.json (or .js) in the root of your node.js project and it should be formatted like the example provided.

Create a chatpickle/ folder

You also need a chatpickle/ folder in the root of your project. This is where you will put your gherkin feature files which can leverage the extended chatpickle syntax.

Setup a Lex Chatbot

To setup your own OrderFlowers and ScheduleAppointment bots from a blueprint in your AWS account, follow this AWS Lex Guide.

Or if you want to get started with chatpickling a custom lex bot, alter your project's chatpickle config; see example at chatpickle.config.json

Setup IAM Credentials

You will need to create IAM credentials that can invoke your bot. You can use the Amazon managed policies as shown below. Load them in your .aws directory or follow this AWS CLI Configure Guide.

Lex Execution IAM Credentials