Describe conversational flows using Gherkin syntax.
Run them as tests against the AWS Lex service to verify that those conversations work end to end.
This repo is designed to be pointed at the OrderFlowersBot as provided by AWS as a blueprint. To setup your OrderFlowersBot, follow the AWS Docs Here.
You will need to create IAM credentials that can invoke your bot. You can use the Amazon managed policies as shown below. You can either use these credentials with the Custom AWS Config steps below, or load them in your .aws
directory.
The following code in main_steps.js
will allow you to use custom AWS config settings. Currently region is set, but accessKey and secretKey are commented out.
AWS.config.update({
accessKeyId: 'foo',
secretAccessKey: 'bar',
region: 'us-east-1'
});
npm test