Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.3 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.3 KB

Chat Pickle

js-semistandard-style

A Cucumber pattern for testing conversational flows against AWS Lex

Describe conversational flows using Gherkin syntax.

Run them as tests against the AWS Lex service to verify that those conversations work end to end.

Getting Started

Setup a Lex Chatbot

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.

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. You can either use these credentials with the Custom AWS Config steps below, or load them in your .aws directory.

Lex Execution IAM Credentials

Custom AWS Config

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'
});

Run

npm test